unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
@ 2015-12-19  9:15 Sebastian Wiesner
  2015-12-19 11:35 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Wiesner @ 2015-12-19  9:15 UTC (permalink / raw)
  To: 22210

The docstring of `display-message-or-buffer' reads as follows:

----

(display-message-or-buffer MESSAGE &optional BUFFER-NAME NOT-THIS-WINDOW FRAME)

[…]

Optional arguments NOT-THIS-WINDOW and FRAME are as for ‘display-buffer’,
and only used if a buffer is displayed.

----

However, display-buffer does not actually have a NOT-THIS-WINDOW argument:

(display-buffer BUFFER-OR-NAME &optional ACTION FRAME)

The source of display-message-or-buffer reveals that NOT-THIS-WINDOW is actually 
passed in the ACTION argument.

I think the argument of display-message-or-buffer should be renamed to ACTION 
as well. Currently it's pretty confusing and may lead to wrong guesses about
the semantics of this argument.

Greetings,
Sebastian




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-20  0:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-19  9:15 bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer Sebastian Wiesner
2015-12-19 11:35 ` Eli Zaretskii
2015-12-19 11:40   ` Sebastian Wiesner
2015-12-19 12:21     ` Eli Zaretskii
2015-12-19 13:25       ` Sebastian Wiesner
2015-12-19 14:19         ` Eli Zaretskii
2015-12-20  0:04           ` Sebastian Wiesner
2015-12-20  0:16             ` John Wiegley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).