all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>, 36122@debbugs.gnu.org
Subject: bug#36122: A second find-dired clobbers the first's buffer
Date: Tue, 09 Jul 2019 23:18:22 +0300	[thread overview]
Message-ID: <87ftnfj8o5.fsf@mail.linkov.net> (raw)
In-Reply-To: <87bly4ezao.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Tue, 09 Jul 2019 04:07:11 +0200")

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





  reply	other threads:[~2019-07-09 20:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-07  0:43 bug#36122: A second find-dired clobbers the first's buffer 積丹尼 Dan Jacobson
2019-07-09  2:07 ` Lars Ingebrigtsen
2019-07-09 20:18   ` Juri Linkov [this message]
2019-07-09 21:12     ` Drew Adams
2019-07-09 22:44   ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=87ftnfj8o5.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=36122@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=larsi@gnus.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.