From: Richard M. Stallman Date: Tue, 20 Apr 2004 20:58:30 +0000 (+0000) Subject: (split-window-save-restore-data): X-Git-Tag: ttn-vms-21-2-B4~6709 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b3b4dbbfcf65ffde08d3b82e5b29db2bb177204;p=emacs.git (split-window-save-restore-data): Don't update the data if OLD-INFO is nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 232173168c0..8ba6c959b01 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,23 @@ +2004-04-20 Richard M. Stallman + + * window.el (split-window-save-restore-data): + Don't update the data if OLD-INFO is nil. + + * view.el (view-return-to-alist): Mark it permanent local. + + * subr.el (event-modifiers): Fix the criterion for ASCII control chars. + + * recentf.el (recentf-save-list): Catch and warn about errors. + + * menu-bar.el (menu-bar-update-buffers): Call copy-sequence + so "Buffers" won't be pure. + + * help-mode.el (help-mode-finish): Set help-return-alist first + thing, setting only the entry for the selected window. + + * help-fns.el (describe-function-1): If many non-control non-meta + keys run the command, don't list all of them. + 2004-04-20 Juanma Barranquero * vc-svn.el (vc-svn-print-log, vc-svn-diff): Add optional BUFFER diff --git a/lisp/window.el b/lisp/window.el index 91b91cfb158..2b5a4ab161d 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -327,8 +327,9 @@ new mode line." (with-current-buffer (window-buffer) (if view-mode (let ((old-info (assq old-w view-return-to-alist))) - (push (cons new-w (cons (and old-info (car (cdr old-info))) t)) - view-return-to-alist))) + (if old-info + (push (cons new-w (cons (car (cdr old-info)) t)) + view-return-to-alist)))) new-w)) (defun split-window-horizontally (&optional arg)