From: PJ Weisberg <pjweisberg@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Fix for load-dir.el
Date: Sun, 28 Aug 2011 12:40:28 -0700 [thread overview]
Message-ID: <CAJsNXT=FgcW3t2FY=TpnhYD19pB=p87NuzttuPFxSU7WsB8dxQ@mail.gmail.com> (raw)
I noticed that when load-dir-recursive is `t', load-dirs goes into
infinite recursion trying to load the directory ".". This trivial
patch fixes it. I don't have papers signed (yet), but this hardly
constitutes a creative work. Can someone commit it to the elpa
branch?
--- a/packages/load-dir/load-dir.el
+++ b/packages/load-dir/load-dir.el
@@ -121,7 +121,7 @@ Recurses into subdirectories if `load-dir-recursive' is t."
(add-to-list 'load-dir-loaded f))))
(when load-dir-recursive
- (dolist (f (directory-files dir t))
+ (dolist (f (directory-files dir t directory-files-no-dot-files-regexp))
(when (file-directory-p f)
(load-dir-one f))))))
next reply other threads:[~2011-08-28 19:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 19:40 PJ Weisberg [this message]
2011-08-28 21:22 ` Fix for load-dir.el Chong Yidong
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='CAJsNXT=FgcW3t2FY=TpnhYD19pB=p87NuzttuPFxSU7WsB8dxQ@mail.gmail.com' \
--to=pjweisberg@gmail.com \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.