bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#53910: [External] : bug#53910: 29.0.50; context-menu-mode breaks hel


From: martin rudalics
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





reply via email to

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