diff options
| author | Glenn Morris | 2013-08-30 13:40:39 -0400 |
|---|---|---|
| committer | Glenn Morris | 2013-08-30 13:40:39 -0400 |
| commit | 415f808eb158e4988bc91092cd96e43c74d2873e (patch) | |
| tree | f21f2bb16bd6e834f42083c1ae3745acdb87418d | |
| parent | 9d7693d74c4ec73c01d03d990d552e1480ec2739 (diff) | |
| download | emacs-415f808eb158e4988bc91092cd96e43c74d2873e.tar.gz emacs-415f808eb158e4988bc91092cd96e43c74d2873e.zip | |
* bytecomp.el (byte-recompile-directory): Fix is-this-a-directory logic.
Fixes: debbugs:15220
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a2028d5623b..2e639615c25 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-08-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-recompile-directory): | ||
| 4 | Fix is-this-a-directory logic. (Bug#15220) | ||
| 5 | |||
| 1 | 2013-08-29 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * textmodes/css-mode.el: Use SMIE. | 8 | * textmodes/css-mode.el: Use SMIE. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index c6612024fa6..164cdb12952 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; bytecomp.el --- compilation of Lisp code into byte code -*- lexical-binding: t -*- | 1 | ;;; bytecomp.el --- compilation of Lisp code into byte code -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985-1987, 1992, 1994, 1998, 2000-2013 Free Software | 3 | ;; Copyright (C) 1985-1987, 1992, 1994, 1998, 2000-2013 |
| 4 | ;; Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Jamie Zawinski <jwz@lucid.com> | 6 | ;; Author: Jamie Zawinski <jwz@lucid.com> |
| 7 | ;; Hallvard Furuseth <hbf@ulrik.uio.no> | 7 | ;; Hallvard Furuseth <hbf@ulrik.uio.no> |
| @@ -1593,14 +1593,14 @@ that already has a `.elc' file." | |||
| 1593 | (message "Checking %s..." directory) | 1593 | (message "Checking %s..." directory) |
| 1594 | (dolist (file (directory-files directory)) | 1594 | (dolist (file (directory-files directory)) |
| 1595 | (let ((source (expand-file-name file directory))) | 1595 | (let ((source (expand-file-name file directory))) |
| 1596 | (if (and (not (member file '("RCS" "CVS"))) | 1596 | (if (file-directory-p source) |
| 1597 | (not (eq ?\. (aref file 0))) | 1597 | (and (not (member file '("RCS" "CVS"))) |
| 1598 | (file-directory-p source) | 1598 | (not (eq ?\. (aref file 0))) |
| 1599 | (not (file-symlink-p source))) | 1599 | (not (file-symlink-p source)) |
| 1600 | ;; This file is a subdirectory. Handle them differently. | 1600 | ;; This file is a subdirectory. Handle them differently. |
| 1601 | (when (or (null arg) (eq 0 arg) | 1601 | (or (null arg) (eq 0 arg) |
| 1602 | (y-or-n-p (concat "Check " source "? "))) | 1602 | (y-or-n-p (concat "Check " source "? "))) |
| 1603 | (setq directories (nconc directories (list source)))) | 1603 | (setq directories (nconc directories (list source)))) |
| 1604 | ;; It is an ordinary file. Decide whether to compile it. | 1604 | ;; It is an ordinary file. Decide whether to compile it. |
| 1605 | (if (and (string-match emacs-lisp-file-regexp source) | 1605 | (if (and (string-match emacs-lisp-file-regexp source) |
| 1606 | ;; The next 2 tests avoid compiling lock files | 1606 | ;; The next 2 tests avoid compiling lock files |