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

Previous Next

Package: emacs;

Reported by: Lin Sun <sunlin7.mail <at> gmail.com>

Date: Sat, 6 Apr 2024 06:39:01 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 70230 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lin Sun <sunlin7.mail <at> gmail.com>
Cc: 70230 <at> debbugs.gnu.org
Subject: Re: bug#70230: 30.0.50;
 [PATCH] * lisp/master.el (master-says): check nil parameter
Date: Sat, 06 Apr 2024 11:06:00 +0300
> From: Lin Sun <sunlin7.mail <at> gmail.com>
> Date: Sat, 6 Apr 2024 00:05:29 +0000
> 
> The `(master-says)' will trigger an unexpected error message with follow code:
> 
> (require 'master)
> (master-says)
> 
> > Wrong type argument: stringp, nil
> 
> The patch tries checking the nil parameter before calling `get-buffer'
> to avoid the unexpected err message.

Thanks, but "Slave buffer has disappeared" doesn't sound like a good
error message when master-of is nil, does it?




This bug report was last modified 1 year and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.