]> git.eshelyaron.com Git - emacs.git/commitdiff
(desktop-buffer-handlers): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Mon, 11 Mar 2002 09:15:27 +0000 (09:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 11 Mar 2002 09:15:27 +0000 (09:15 +0000)
(desktop-buffer-file): Explicitly return BUF.

lisp/desktop.el

index e9791cc0f90d3c7e23d4f2aedb71c5ee93d7d3b5..f0749ef66a1b6537aa5f942ae56f7b61d655e05b 100644 (file)
@@ -241,7 +241,8 @@ The functions are called without explicit parameters but can use the
 variables `desktop-buffer-major-mode', `desktop-buffer-file-name',
 `desktop-buffer-name'.
 If one function returns non-nil, no further functions are called.
-If the function returns t then the buffer is considered created."
+If the function returns a buffer, then the saved mode settings
+and variable values for that buffer are copied into it."
   :type '(repeat function)
   :group 'desktop)
 
@@ -669,7 +670,8 @@ to provide correct modes for autoloaded files."
          (let ((buf (find-file-noselect desktop-buffer-file-name)))
            (condition-case nil
                (switch-to-buffer buf)
-             (error (pop-to-buffer buf))))
+             (error (pop-to-buffer buf)))
+           buf)
        'ignored)))
 ;; ----------------------------------------------------------------------------
 ;; Create a buffer, load its file, set is mode, ...;  called from Desktop file