unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31648: 26; (elisp) `Indirect Buffers': `clone-indirect-buffer'
@ 2018-05-29 22:25 Drew Adams
  2018-06-02 11:19 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2018-05-29 22:25 UTC (permalink / raw)
  To: 31648

The doc of `clone-indirect-buffer' is incorrect.  It implies that the
new, indirect buffer, is not displayed when the command is invoked
interactively.

The doc string is correct.  Please correct the manual similarly.  The
statement of the second sentence here, from the doc string is missing
from the manual:

 DISPLAY-FLAG non-nil means show the new buffer with 'pop-to-buffer'.
 This is always done when called interactively.
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

(One might wonder why non-nil, instead of nil, was chosen to show the
buffer, since that's the default interactive behavior - but it's too
late now.)




In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-04-10
Repository revision: c267421647510319d2a70554e42f0d1c394dba0a
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





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

* bug#31648: 26; (elisp) `Indirect Buffers': `clone-indirect-buffer'
  2018-05-29 22:25 bug#31648: 26; (elisp) `Indirect Buffers': `clone-indirect-buffer' Drew Adams
@ 2018-06-02 11:19 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2018-06-02 11:19 UTC (permalink / raw)
  To: Drew Adams; +Cc: 31648-done

> Date: Tue, 29 May 2018 15:25:44 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> 
> The doc of `clone-indirect-buffer' is incorrect.  It implies that the
> new, indirect buffer, is not displayed when the command is invoked
> interactively.
> 
> The doc string is correct.  Please correct the manual similarly.  The
> statement of the second sentence here, from the doc string is missing
> from the manual:
> 
>  DISPLAY-FLAG non-nil means show the new buffer with 'pop-to-buffer'.
>  This is always done when called interactively.
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I added a note about DISPLAY-FLAG in interactive calls, but in general
you shouldn't expect this to be spelled out in the ELisp manual,
because interactive invocation of commands is described in the Emacs
manual, and the ELisp manual is biased towards non-interactive uses.

> (One might wonder why non-nil, instead of nil, was chosen to show the
> buffer, since that's the default interactive behavior - but it's too
> late now.)

??? It's the default interactively, but not in non-interactive calls.
It should be clear that non-interactive calls don't necessarily want
to display the cloned buffer.





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

end of thread, other threads:[~2018-06-02 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29 22:25 bug#31648: 26; (elisp) `Indirect Buffers': `clone-indirect-buffer' Drew Adams
2018-06-02 11:19 ` Eli Zaretskii

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