emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 96be6b6: Improve error messages regarding initial


From: Noam Postavsky
Subject: [Emacs-diffs] emacs-26 96be6b6: Improve error messages regarding initial-buffer-choice (Bug#29098)
Date: Thu, 9 Aug 2018 08:15:33 -0400 (EDT)

branch: emacs-26
commit 96be6b6eb99ae1d77702932c97e8b3a147c6265a
Author: Alexander Gramiak <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Improve error messages regarding initial-buffer-choice (Bug#29098)
    
    * lisp/startup.el (command-line-1) <initial-buffer-choice>: Make the
    messages conform to Emacs conventions, and show the invalid return
    value in the message.
---
 lisp/startup.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/startup.el b/lisp/startup.el
index 33f8ca6..63b831e 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -2515,9 +2515,9 @@ nil default-directory" name)
                    ((eq initial-buffer-choice t)
                     (get-buffer-create "*scratch*"))
                    (t
-                    (error "initial-buffer-choice must be a string, a 
function, or t.")))))
+                    (error "`initial-buffer-choice' must be a string, a 
function, or t")))))
         (unless (buffer-live-p buf)
-          (error "initial-buffer-choice is not a live buffer."))
+          (error "Value returned by `initial-buffer-choice' is not a live 
buffer: %S" buf))
         (setq displayable-buffers (cons buf displayable-buffers))))
 
     ;; Display the first two buffers in `displayable-buffers'.  If



reply via email to

[Prev in Thread] Current Thread [Next in Thread]