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

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

bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong


From: Sebastian Wiesner
Subject: bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
Date: Sat, 19 Dec 2015 12:40:28 +0100

Am 19.12.2015 um 12:35 schrieb Eli Zaretskii <eliz@gnu.org>:

>> From: Sebastian Wiesner <swiesner@lunaryorn.com>
>> Date: Sat, 19 Dec 2015 10:15:56 +0100
>> 
>> 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.
> 
> Thanks, fixed.

Thank you for the quick fix.  Besides, I noticed that the same issue is also in 
the Emacs Lisp reference.




reply via email to

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