unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: martin rudalics <rudalics@gmx.at>,
	Richard Sent <richard@freakingpenguin.com>,
	70819@debbugs.gnu.org
Subject: bug#70819: 29.3; clone-indirect-buffer-other-window is inconsistent with *-other-window commands
Date: Sun, 12 May 2024 22:26:28 -0400	[thread overview]
Message-ID: <jwvikziwism.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <86fruo3de1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 May 2024 12:29:26 +0300")

>> (defun my-clone-indirect-buffer-other-window (newname display-flag &optional norecord)
>>   "Like `clone-indirect-buffer' but display in another window."
>>   (interactive
>>    (progn
>>      (if (get major-mode 'no-clone-indirect)
>> 	 (error "Cannot indirectly clone a buffer in %s mode" mode-name))
>>      (list (if current-prefix-arg
>> 	       (read-buffer "Name of indirect buffer: " (current-buffer)))
>> 	   t)))
>>   (switch-to-buffer-other-window
>>    (clone-indirect-buffer newname display-flag norecord)))

`switch-to-buffer-other-window` sounds good, but we need to get rid of
`display-flag` (it makes no sense to call
`clone-indirect-buffer-other-window` with a nil value for
`display-flag` and `clone-indirect-buffer-other-window` should not call
`clone-indirect-buffer` with a non-nil `display-flag` because it wants
to be in charge of displaying the buffer).


        Stefan






  parent reply	other threads:[~2024-05-13  2:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07 16:19 bug#70819: 29.3; clone-indirect-buffer-other-window is inconsistent with *-other-window commands Richard Sent
2024-05-11  9:29 ` Eli Zaretskii
2024-05-12  8:30   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-13  2:26   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-05-13  3:14     ` bug#70819: [PATCH] Make clone-indirect-buffer-other-window use other window Richard Sent
2024-05-13  5:22       ` Eli Zaretskii
2024-05-13  8:05       ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-25  7:49         ` Eli Zaretskii
2024-06-08 11:45           ` Eli Zaretskii
2024-06-08 13:29             ` Eli Zaretskii
2024-05-27 15:32 ` bug#70819: [PATCH v2] Make clone-indirect-buffer-other-window use other window (bug#70819) Richard Sent
2024-05-28  8:04   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-08 12:18   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvikziwism.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=70819@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=richard@freakingpenguin.com \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).