GNU bug report logs - #70819
29.3; clone-indirect-buffer-other-window is inconsistent with *-other-window commands

Previous Next

Package: emacs;

Reported by: Richard Sent <richard <at> freakingpenguin.com>

Date: Tue, 7 May 2024 16:21:02 UTC

Severity: normal

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: martin rudalics <rudalics <at> gmx.at>, Richard Sent <richard <at> freakingpenguin.com>, 70819 <at> 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
>> (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





This bug report was last modified 1 year and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.