diff options
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 22 |
2 files changed, 13 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd7c4704c77..cd33d38a498 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-log-file) | ||
| 4 | (byte-recompile-directory, byte-compile-file) | ||
| 5 | (byte-compile-from-buffer): Use with-current-buffer. | ||
| 6 | |||
| 3 | * simple.el (text-invisible-p): Rename from line-move-invisible-p. | 7 | * simple.el (text-invisible-p): Rename from line-move-invisible-p. |
| 4 | (line-move-invisible-p): Keep as an obsolete alias, just to be safe. | 8 | (line-move-invisible-p): Keep as an obsolete alias, just to be safe. |
| 5 | (line-move-1, line-move-finish, line-move-to-column) | 9 | (line-move-1, line-move-finish, line-move-to-column) |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index b3b9ca81ea4..12fab768db5 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1008,8 +1008,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'." | |||
| 1008 | (defun byte-compile-log-file () | 1008 | (defun byte-compile-log-file () |
| 1009 | (and (not (equal byte-compile-current-file byte-compile-last-logged-file)) | 1009 | (and (not (equal byte-compile-current-file byte-compile-last-logged-file)) |
| 1010 | (not noninteractive) | 1010 | (not noninteractive) |
| 1011 | (save-excursion | 1011 | (with-current-buffer (get-buffer-create "*Compile-Log*") |
| 1012 | (set-buffer (get-buffer-create "*Compile-Log*")) | ||
| 1013 | (goto-char (point-max)) | 1012 | (goto-char (point-max)) |
| 1014 | (let* ((inhibit-read-only t) | 1013 | (let* ((inhibit-read-only t) |
| 1015 | (dir (and byte-compile-current-file | 1014 | (dir (and byte-compile-current-file |
| @@ -1545,8 +1544,7 @@ recompile every `.el' file that already has a `.elc' file." | |||
| 1545 | nil | 1544 | nil |
| 1546 | (save-some-buffers) | 1545 | (save-some-buffers) |
| 1547 | (force-mode-line-update)) | 1546 | (force-mode-line-update)) |
| 1548 | (save-current-buffer | 1547 | (with-current-buffer (get-buffer-create "*Compile-Log*") |
| 1549 | (set-buffer (get-buffer-create "*Compile-Log*")) | ||
| 1550 | (setq default-directory (expand-file-name directory)) | 1548 | (setq default-directory (expand-file-name directory)) |
| 1551 | ;; compilation-mode copies value of default-directory. | 1549 | ;; compilation-mode copies value of default-directory. |
| 1552 | (unless (eq major-mode 'compilation-mode) | 1550 | (unless (eq major-mode 'compilation-mode) |
| @@ -1648,7 +1646,7 @@ The value is non-nil if there were no errors, nil if errors." | |||
| 1648 | (let ((b (get-file-buffer (expand-file-name filename)))) | 1646 | (let ((b (get-file-buffer (expand-file-name filename)))) |
| 1649 | (if (and b (buffer-modified-p b) | 1647 | (if (and b (buffer-modified-p b) |
| 1650 | (y-or-n-p (format "Save buffer %s first? " (buffer-name b)))) | 1648 | (y-or-n-p (format "Save buffer %s first? " (buffer-name b)))) |
| 1651 | (save-excursion (set-buffer b) (save-buffer))))) | 1649 | (with-current-buffer b (save-buffer))))) |
| 1652 | 1650 | ||
| 1653 | ;; Force logging of the file name for each file compiled. | 1651 | ;; Force logging of the file name for each file compiled. |
| 1654 | (setq byte-compile-last-logged-file nil) | 1652 | (setq byte-compile-last-logged-file nil) |
| @@ -1658,9 +1656,8 @@ The value is non-nil if there were no errors, nil if errors." | |||
| 1658 | byte-compile-dest-file) | 1656 | byte-compile-dest-file) |
| 1659 | (setq target-file (byte-compile-dest-file filename)) | 1657 | (setq target-file (byte-compile-dest-file filename)) |
| 1660 | (setq byte-compile-dest-file target-file) | 1658 | (setq byte-compile-dest-file target-file) |
| 1661 | (save-excursion | 1659 | (with-current-buffer |
| 1662 | (setq input-buffer (get-buffer-create " *Compiler Input*")) | 1660 | (setq input-buffer (get-buffer-create " *Compiler Input*")) |
| 1663 | (set-buffer input-buffer) | ||
| 1664 | (erase-buffer) | 1661 | (erase-buffer) |
| 1665 | (setq buffer-file-coding-system nil) | 1662 | (setq buffer-file-coding-system nil) |
| 1666 | ;; Always compile an Emacs Lisp file as multibyte | 1663 | ;; Always compile an Emacs Lisp file as multibyte |
| @@ -1830,9 +1827,8 @@ With argument, insert value in current buffer after the form." | |||
| 1830 | ;; byte-compile-warnings)) | 1827 | ;; byte-compile-warnings)) |
| 1831 | ) | 1828 | ) |
| 1832 | (byte-compile-close-variables | 1829 | (byte-compile-close-variables |
| 1833 | (save-excursion | 1830 | (with-current-buffer |
| 1834 | (setq outbuffer | 1831 | (setq outbuffer (get-buffer-create " *Compiler Output*")) |
| 1835 | (set-buffer (get-buffer-create " *Compiler Output*"))) | ||
| 1836 | (set-buffer-multibyte t) | 1832 | (set-buffer-multibyte t) |
| 1837 | (erase-buffer) | 1833 | (erase-buffer) |
| 1838 | ;; (emacs-lisp-mode) | 1834 | ;; (emacs-lisp-mode) |
| @@ -1846,8 +1842,7 @@ With argument, insert value in current buffer after the form." | |||
| 1846 | (setq overwrite-mode 'overwrite-mode-binary)) | 1842 | (setq overwrite-mode 'overwrite-mode-binary)) |
| 1847 | (displaying-byte-compile-warnings | 1843 | (displaying-byte-compile-warnings |
| 1848 | (and filename (byte-compile-insert-header filename inbuffer outbuffer)) | 1844 | (and filename (byte-compile-insert-header filename inbuffer outbuffer)) |
| 1849 | (save-excursion | 1845 | (with-current-buffer inbuffer |
| 1850 | (set-buffer inbuffer) | ||
| 1851 | (goto-char 1) | 1846 | (goto-char 1) |
| 1852 | ;; Should we always do this? When calling multiple files, it | 1847 | ;; Should we always do this? When calling multiple files, it |
| 1853 | ;; would be useful to delay this warning until all have been | 1848 | ;; would be useful to delay this warning until all have been |
| @@ -2036,6 +2031,7 @@ list that represents a doc string reference. | |||
| 2036 | ;; We need to examine byte-compile-dynamic-docstrings | 2031 | ;; We need to examine byte-compile-dynamic-docstrings |
| 2037 | ;; in the input buffer (now current), not in the output buffer. | 2032 | ;; in the input buffer (now current), not in the output buffer. |
| 2038 | (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) | 2033 | (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) |
| 2034 | ;; FIXME: What's up with those set-buffers&prog1 thingy? --Stef | ||
| 2039 | (set-buffer | 2035 | (set-buffer |
| 2040 | (prog1 (current-buffer) | 2036 | (prog1 (current-buffer) |
| 2041 | (set-buffer outbuffer) | 2037 | (set-buffer outbuffer) |