Subject: Re: bug#70230: 30.0.50; [PATCH] * lisp/master.el (master-says): check nil parameter

From: Lin Sun <[email-masked]>
Date: Sat, 6 Apr 2024 21:26:49 +0000

Hi Eli,

Yes, the "Current buffer is not a master of any other buffer" is more accurate.
The changed message path is attached.

Thank you so much!
From 77a2e56374a7891bdd572f2ffa51f700c6fb809f Mon Sep 17 00:00:00 2001
From: Lin Sun <[email-masked]>
Date: Fri, 5 Apr 2024 06:58:07 +0000
Subject: [PATCH] * lisp/master.el (master-says): check nil parameter

---
 lisp/master.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/master.el b/lisp/master.el
index 0caf4d7963..9151ca212d 100644
--- a/lisp/master.el
+++ b/lisp/master.el
@@ -136,6 +136,8 @@ master-says-recenter
 (defun master-says (&optional command arg)
   "Display slave buffer and execute COMMAND with ARG in its window."
   (interactive)
+  (unless master-of
+    (error "Current buffer is not a master of any other buffer"))
   (if (null (buffer-live-p (get-buffer master-of)))
       (error "Slave buffer has disappeared")
     (let ((window  (selected-window)))
-- 
2.20.5