aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2012-05-31 14:08:06 +0800
committerChong Yidong2012-05-31 14:08:06 +0800
commitefc00ab16e2890b75d7224434ac43fe944ade4dd (patch)
tree28c1078ca32b96402cd1a5f618a17b3526143f27 /lisp
parentba93a18774352c97d6dd73c73141cbff6305581b (diff)
parentdd41169b6cb0105b0766f3d368c657ebafc19cba (diff)
downloademacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.tar.gz
emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.zip
Merge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.de
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/desktop.el12
-rw-r--r--lisp/emacs-lisp/bytecomp.el12
3 files changed, 33 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index acb87b0ac5f..f60fcb0b14d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,21 @@
12012-05-31 Stefan Monnier <monnier@iro.umontreal.ca> 12012-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/bytecomp.el (byte-compile-fix-header): Handle
4 arbitrary file name lengths (Bug#11585).
5
62012-05-31 Martin Rudalics <rudalics@gmx.at>
7
8 * desktop.el (desktop-read): Clear previous and next buffers for
9 all windows and bury *Messages* buffer (bug#11556).
10
112012-05-31 Eli Zaretskii <eliz@gnu.org>
12
13 * mail/sendmail.el (mail-yank-region): Recognize
14 rmail-yank-current-message in addition to insert-buffer. Fixes
15 mail-mode's "C-c C-r" that otherwise does nothing when invoked in
16
172012-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
18
3 Add `declare' for `defun'. Align `defmacro's with it. 19 Add `declare' for `defun'. Align `defmacro's with it.
4 * emacs-lisp/easy-mmode.el (define-minor-mode) 20 * emacs-lisp/easy-mmode.el (define-minor-mode)
5 (define-globalized-minor-mode): Don't autoload the var definitions. 21 (define-globalized-minor-mode): Don't autoload the var definitions.
diff --git a/lisp/desktop.el b/lisp/desktop.el
index f7a33f2b05d..5d9982940bf 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1020,6 +1020,18 @@ Using it may cause conflicts. Use it anyway? " owner)))))
1020 (format ", %d to restore lazily" 1020 (format ", %d to restore lazily"
1021 (length desktop-buffer-args-list)) 1021 (length desktop-buffer-args-list))
1022 "")) 1022 ""))
1023 ;; Bury the *Messages* buffer to not reshow it when burying
1024 ;; the buffer we switched to above.
1025 (when (buffer-live-p (get-buffer "*Messages*"))
1026 (bury-buffer "*Messages*"))
1027 ;; Clear all windows' previous and next buffers, these have
1028 ;; been corrupted by the `switch-to-buffer' calls in
1029 ;; `desktop-restore-file-buffer' (bug#11556). This is a
1030 ;; brute force fix and should be replaced by a more subtle
1031 ;; strategy eventually.
1032 (walk-window-tree (lambda (window)
1033 (set-window-prev-buffers window nil)
1034 (set-window-next-buffers window nil)))
1023 t)) 1035 t))
1024 ;; No desktop file found. 1036 ;; No desktop file found.
1025 (desktop-clear) 1037 (desktop-clear)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index ce4d5d64ae2..bbf029700a3 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1937,7 +1937,7 @@ and will be removed soon. See (elisp)Backquote in the manual."))
1937 (byte-compile-fix-header byte-compile-current-file)))) 1937 (byte-compile-fix-header byte-compile-current-file))))
1938 byte-compile--outbuffer))) 1938 byte-compile--outbuffer)))
1939 1939
1940(defun byte-compile-fix-header (filename) 1940(defun byte-compile-fix-header (_filename)
1941 "If the current buffer has any multibyte characters, insert a version test." 1941 "If the current buffer has any multibyte characters, insert a version test."
1942 (when (< (point-max) (position-bytes (point-max))) 1942 (when (< (point-max) (position-bytes (point-max)))
1943 (goto-char (point-min)) 1943 (goto-char (point-min))
@@ -1962,12 +1962,10 @@ and will be removed soon. See (elisp)Backquote in the manual."))
1962 ;; don't try to check the version number. 1962 ;; don't try to check the version number.
1963 " (< (aref emacs-version (1- (length emacs-version))) ?A)\n" 1963 " (< (aref emacs-version (1- (length emacs-version))) ?A)\n"
1964 (format " (string-lessp emacs-version \"%s\")\n" minimum-version) 1964 (format " (string-lessp emacs-version \"%s\")\n" minimum-version)
1965 " (error \"`" 1965 ;; Because the header must fit in a fixed width, we cannot
1966 ;; prin1-to-string is used to quote backslashes. 1966 ;; insert arbitrary-length file names (Bug#11585).
1967 (substring (prin1-to-string (file-name-nondirectory filename)) 1967 " (error \"`%s' was compiled for "
1968 1 -1) 1968 (format "Emacs %s or later\" load-file-name))\n\n" minimum-version))
1969 (format "' was compiled for Emacs %s or later\"))\n\n"
1970 minimum-version))
1971 ;; Now compensate for any change in size, to make sure all 1969 ;; Now compensate for any change in size, to make sure all
1972 ;; positions in the file remain valid. 1970 ;; positions in the file remain valid.
1973 (setq delta (- (point-max) old-header-end)) 1971 (setq delta (- (point-max) old-header-end))