GNU bug report logs - #36122
A second find-dired clobbers the first's buffer

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 7 Jun 2019 00:44:02 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36122 in the body.
You can then email your comments to 36122 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36122; Package emacs. (Fri, 07 Jun 2019 00:44:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Jun 2019 00:44:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: A second find-dired clobbers the first's buffer
Date: Fri, 07 Jun 2019 08:43:46 +0800
Do find-dired on directory A.
Then do find-dired on directory B.
A second find-dired clobbers the first's buffer!
Imagine if there could only be one Dired buffer in emacs.
Well, the same goes for find-dired.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36122; Package emacs. (Tue, 09 Jul 2019 02:08:02 GMT) Full text and rfc822 format available.

Message #8 received at 36122 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 36122 <at> debbugs.gnu.org
Subject: Re: bug#36122: A second find-dired clobbers the first's buffer
Date: Tue, 09 Jul 2019 04:07:11 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> Do find-dired on directory A.
> Then do find-dired on directory B.
> A second find-dired clobbers the first's buffer!
> Imagine if there could only be one Dired buffer in emacs.
> Well, the same goes for find-dired.

That's how the kinda related commands like M-x grep work -- if you want
more than one, you have to rename them.  So I think this works as
advertised.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 02:08:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 36122 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 02:08:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36122; Package emacs. (Tue, 09 Jul 2019 20:37:02 GMT) Full text and rfc822 format available.

Message #15 received at 36122 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 36122 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#36122: A second find-dired clobbers the first's buffer
Date: Tue, 09 Jul 2019 23:18:22 +0300
>> Do find-dired on directory A.
>> Then do find-dired on directory B.
>> A second find-dired clobbers the first's buffer!
>> Imagine if there could only be one Dired buffer in emacs.
>> Well, the same goes for find-dired.
>
> That's how the kinda related commands like M-x grep work -- if you want
> more than one, you have to rename them.  So I think this works as
> advertised.

Yes, there are many ways to do this:

(add-hook 'dired-after-readin-hook 'rename-uniquely)

(add-hook 'compilation-mode-hook 'rename-uniquely)

or better

(setq compilation-buffer-name-function
      (lambda (mode-name)
        (generate-new-buffer-name
         (concat "*" (downcase mode-name) "*"))))
...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36122; Package emacs. (Tue, 09 Jul 2019 21:13:01 GMT) Full text and rfc822 format available.

Message #18 received at 36122 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> linkov.net>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 36122 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson
 <jidanni <at> jidanni.org>
Subject: RE: bug#36122: A second find-dired clobbers the first's buffer
Date: Tue, 9 Jul 2019 14:12:28 -0700 (PDT)
> Yes, there are many ways to do this:
> (add-hook 'dired-after-readin-hook 'rename-uniquely)
> (add-hook 'compilation-mode-hook 'rename-uniquely)
> or better
> (setq compilation-buffer-name-function
>       (lambda (mode-name)
>         (generate-new-buffer-name
>          (concat "*" (downcase mode-name) "*"))))
> ...

Or better: Hit a key bound to `rename-buffer'.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36122; Package emacs. (Tue, 09 Jul 2019 22:46:02 GMT) Full text and rfc822 format available.

Message #21 received at 36122 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 36122 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#36122: A second find-dired clobbers the first's buffer
Date: Tue, 09 Jul 2019 18:44:47 -0400
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > That's how the kinda related commands like M-x grep work -- if you want
  > more than one, you have to rename them.

Could we do a better job of teaching users the technique of using M-x
rename-uniquely in cases like this?

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Aug 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 320 days ago.

Previous Next


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