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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2015-12-19 11:35 UTC (permalink / raw)
  To: Sebastian Wiesner; +Cc: 22210-done

> 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.





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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  2015-12-19 11:35 ` Eli Zaretskii
@ 2015-12-19 11:40   ` Sebastian Wiesner
  2015-12-19 12:21     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Wiesner @ 2015-12-19 11:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22210-done

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.




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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  2015-12-19 11:40   ` Sebastian Wiesner
@ 2015-12-19 12:21     ` Eli Zaretskii
  2015-12-19 13:25       ` Sebastian Wiesner
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2015-12-19 12:21 UTC (permalink / raw)
  To: Sebastian Wiesner; +Cc: 22210

> From: Sebastian Wiesner <swiesner@lunaryorn.com>
> Date: Sat, 19 Dec 2015 12:40:28 +0100
> Cc: 22210-done@debbugs.gnu.org
> 
> Besides, I noticed that the same issue is also in the Emacs Lisp
> reference.

Fixed as well, although it'd be better to say those things together to
begin with.

Thanks.







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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  2015-12-19 12:21     ` Eli Zaretskii
@ 2015-12-19 13:25       ` Sebastian Wiesner
  2015-12-19 14:19         ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Wiesner @ 2015-12-19 13:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22210

Am 19.12.2015 um 13:21 schrieb Eli Zaretskii <eliz@gnu.org>:

>> From: Sebastian Wiesner <swiesner@lunaryorn.com>
>> Date: Sat, 19 Dec 2015 12:40:28 +0100
>> Cc: 22210-done@debbugs.gnu.org
>> 
>> Besides, I noticed that the same issue is also in the Emacs Lisp
>> reference.
> 
> Fixed as well, although it'd be better to say those things together to
> begin with.
> 
> Thanks.

I'm sorry but I didn't notice that until after you had closed the bug.  I didn't think of the
manual until now.  I apologise for having sent an incomplete bug report.




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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  2015-12-19 13:25       ` Sebastian Wiesner
@ 2015-12-19 14:19         ` Eli Zaretskii
  2015-12-20  0:04           ` Sebastian Wiesner
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2015-12-19 14:19 UTC (permalink / raw)
  To: Sebastian Wiesner; +Cc: 22210

> From: Sebastian Wiesner <swiesner@lunaryorn.com>
> Date: Sat, 19 Dec 2015 14:25:51 +0100
> Cc: 22210@debbugs.gnu.org
> 
> > Fixed as well, although it'd be better to say those things together to
> > begin with.
> > 
> > Thanks.
> 
> I'm sorry but I didn't notice that until after you had closed the bug.  I didn't think of the
> manual until now.  I apologise for having sent an incomplete bug report.

No apology needed; mistakes do happen.

Thanks.





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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  2015-12-19 14:19         ` Eli Zaretskii
@ 2015-12-20  0:04           ` Sebastian Wiesner
  2015-12-20  0:16             ` John Wiegley
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Wiesner @ 2015-12-20  0:04 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22210

Am 19.12.2015 um 15:19 schrieb Eli Zaretskii <eliz@gnu.org>:

>> From: Sebastian Wiesner <swiesner@lunaryorn.com>
>> Date: Sat, 19 Dec 2015 14:25:51 +0100
>> Cc: 22210@debbugs.gnu.org
>> 
>>> Fixed as well, although it'd be better to say those things together to
>>> begin with.
>>> 
>>> Thanks.
>> 
>> I'm sorry but I didn't notice that until after you had closed the bug.  I didn't think of the
>> manual until now.  I apologise for having sent an incomplete bug report.
> 
> No apology needed; mistakes do happen.
> 
> Thanks.

Thank you, for fixing this issue so quickly, and for your great work on Emacs.




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

* bug#22210: 25.0.50; display-message-or-buffer docstring refers to wrong argument in display-buffer
  2015-12-20  0:04           ` Sebastian Wiesner
@ 2015-12-20  0:16             ` John Wiegley
  0 siblings, 0 replies; 8+ messages in thread
From: John Wiegley @ 2015-12-20  0:16 UTC (permalink / raw)
  To: Sebastian Wiesner; +Cc: 22210

>>>>> Sebastian Wiesner <swiesner@lunaryorn.com> writes:

> Thank you, for fixing this issue so quickly, and for your great work on
> Emacs.

A thanks Eli much deserves; I continue to become more and more aware of his
commitment and service to this community. So, accept my +1 here as well.

Nice to see you here too, Sebastian! It warms my heart to find your name in my
mailbox of core Emacs stuff. :)

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2





^ 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).