public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:emacs-common-gentoo commit in: /
Date: Thu, 25 Feb 2021 17:39:39 +0000 (UTC)	[thread overview]
Message-ID: <1614274411.778477df4be714c3dc02e04cb7e116b15167e83e.ulm@gentoo> (raw)

commit:     778477df4be714c3dc02e04cb7e116b15167e83e
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 25 17:33:31 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Feb 25 17:33:31 2021 +0000
URL:        https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=778477df

Add subdirectories of the modules directory to load-path

* subdirs.el.in: Renamed from subdirs.el. Check for subdirectories
of the modules directory too.
* Makefile (DISTFILES): Update.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ChangeLog     | 6 ++++++
 Makefile      | 4 ++--
 subdirs.el    | 3 ---
 subdirs.el.in | 8 ++++++++
 4 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d0cbd4a..55f4563 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-02-25  Ulrich Müller  <ulm@gentoo.org>
+
+	* subdirs.el.in: Renamed from subdirs.el. Check for subdirectories
+	of the modules directory too.
+	* Makefile (DISTFILES): Update.
+
 2017-02-04  Ulrich Müller  <ulm@gentoo.org>
 
 	* Version 1.6 released.

diff --git a/Makefile b/Makefile
index 6fb696a..7c5bc2e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Copyright 2007-2017 Gentoo Authors
+# Copyright 2007-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2 or later
 
 PN = emacs-common-gentoo
@@ -13,7 +13,7 @@ ICONFILES = sink.png \
 	emacs23_128.png emacs23.svg \
 	emacs25_16.png emacs25_24.png emacs25_32.png emacs25_48.png \
 	emacs25_128.png emacs25.svg
-DISTFILES = site-start.el site-gentoo.el subdirs.el $(DESKTOPFILES) \
+DISTFILES = site-start.el site-gentoo.el subdirs.el.in $(DESKTOPFILES) \
 	$(addprefix icons/,COPYRIGHT.icons $(ICONFILES))
 
 

diff --git a/subdirs.el b/subdirs.el
deleted file mode 100644
index ee1c123..0000000
--- a/subdirs.el
+++ /dev/null
@@ -1,3 +0,0 @@
-;; -*- no-byte-compile: t -*-
-(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
-    (normal-top-level-add-subdirs-to-load-path))

diff --git a/subdirs.el.in b/subdirs.el.in
new file mode 100644
index 0000000..3432bf0
--- /dev/null
+++ b/subdirs.el.in
@@ -0,0 +1,8 @@
+;; -*- no-byte-compile: t -*-
+(when (fboundp 'normal-top-level-add-subdirs-to-load-path)
+  (normal-top-level-add-subdirs-to-load-path)
+  ;; We install dynamic modules in a more FHS compliant location,
+  ;; so add its subdirectories to the load-path, too
+  (let ((default-directory "/usr/@libdir@/emacs/modules/"))
+    (if (file-directory-p default-directory)
+	(normal-top-level-add-subdirs-to-load-path))))


             reply	other threads:[~2021-02-25 17:39 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 17:39 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-25 17:39 [gentoo-commits] proj/emacs-tools:emacs-common-gentoo commit in: / Ulrich Müller
2018-12-09 22:36 Ulrich Müller
2018-09-16 14:49 Ulrich Müller
2017-02-04 14:35 Ulrich Müller
2017-02-04 14:35 Ulrich Müller
2015-02-23 20:44 Ulrich Müller
2015-02-23 20:44 Ulrich Müller
2015-02-23 20:44 Ulrich Müller
2014-08-28 12:14 Ulrich Müller
2013-11-16 12:50 Ulrich Müller
2013-11-16 12:50 Ulrich Müller
2013-11-15 13:31 Ulrich Müller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-common-gentoo@1233 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-common-gentoo " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-common-gentoo@1233 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-common-gentoo " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-common-gentoo@1233 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-common-gentoo " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-common-gentoo@1233 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-common-gentoo " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-common-gentoo@1030 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-common-gentoo " Sebastian Pipping
2012-05-06 16:07 [gentoo-commits] proj/emacs-tools:backups/emacs-common-gentoo@1030 " Sebastian Pipping
2012-05-06 16:06 ` [gentoo-commits] proj/emacs-tools:emacs-common-gentoo " Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1614274411.778477df4be714c3dc02e04cb7e116b15167e83e.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox