GNU bug report logs - #53910
29.0.50; context-menu-mode breaks help in read-only buffers

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Thu, 10 Feb 2022 00:17:01 UTC

Severity: normal

Tags: confirmed

Fixed in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: "53910 <at> debbugs.gnu.org" <53910 <at> debbugs.gnu.org>, Lars Ingebrigtsen <larsi <at> gnus.org>, Ergus <spacibba <at> aol.com>, Drew Adams <drew.adams <at> oracle.com>, Juri Linkov <juri <at> linkov.net>
Subject: bug#53910: [External] : bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers
Date: Sun, 20 Feb 2022 10:14:43 +0100
> I think I understand why you say that but the interactive spec only
> allows passing nil as argument, so maybe calling `bury-buffer` with
> a nil argument should not be done from Elisp, but if calling
> `bury-buffer` *in general* should not be done for Elisp, then we can
> simplify the docstring ;-)

'bury-buffer' violates referential transparency in the sense that it
does not allow allow a caller to substitute nil for (current-buffer) and
vice versa without also changing its semantics.  This is against what
all other functions with an optional BUFFER-OR-NAME argument do and can
only lead to confusion.

martin




This bug report was last modified 3 years and 149 days ago.

Previous Next


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