diff options
| author | Juanma Barranquero | 2014-01-24 05:13:35 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2014-01-24 05:13:35 +0100 |
| commit | 76c3fa958f4ab6d36d559d69169cc66856958bce (patch) | |
| tree | 528bdf4bd2f4a3a954c954df98585821a4ff0efa | |
| parent | 1e548e4056d46414fa30bb6cab1c660fa30ac905 (diff) | |
| download | emacs-76c3fa958f4ab6d36d559d69169cc66856958bce.tar.gz emacs-76c3fa958f4ab6d36d559d69169cc66856958bce.zip | |
Silence byte-compiler warning.
* emacs-lisp/bytecomp.el (byte-compile-file):
Remove unused local variable `file-name'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6743a537744..d7d9b23f570 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-01-24 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-file): | ||
| 4 | Remove unused local variable `file-name'. | ||
| 5 | |||
| 1 | 2014-01-24 Glenn Morris <rgm@gnu.org> | 6 | 2014-01-24 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * subr.el (with-demoted-errors): Doc fix. | 8 | * subr.el (with-demoted-errors): Doc fix. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 6f5b6295d1e..7ff1c7f7cd3 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1705,12 +1705,10 @@ The value is non-nil if there were no errors, nil if errors." | |||
| 1705 | ;; (interactive "fByte compile file: \nP") | 1705 | ;; (interactive "fByte compile file: \nP") |
| 1706 | (interactive | 1706 | (interactive |
| 1707 | (let ((file buffer-file-name) | 1707 | (let ((file buffer-file-name) |
| 1708 | (file-name nil) | ||
| 1709 | (file-dir nil)) | 1708 | (file-dir nil)) |
| 1710 | (and file | 1709 | (and file |
| 1711 | (derived-mode-p 'emacs-lisp-mode) | 1710 | (derived-mode-p 'emacs-lisp-mode) |
| 1712 | (setq file-name (file-name-nondirectory file) | 1711 | (setq file-dir (file-name-directory file))) |
| 1713 | file-dir (file-name-directory file))) | ||
| 1714 | (list (read-file-name (if current-prefix-arg | 1712 | (list (read-file-name (if current-prefix-arg |
| 1715 | "Byte compile and load file: " | 1713 | "Byte compile and load file: " |
| 1716 | "Byte compile file: ") | 1714 | "Byte compile file: ") |