all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#36122: A second find-dired clobbers the first's buffer
@ 2019-06-07  0:43 積丹尼 Dan Jacobson
  2019-07-09  2:07 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-06-07  0:43 UTC (permalink / raw)
  To: 36122

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.





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

* bug#36122: A second find-dired clobbers the first's buffer
  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
  2019-07-09 22:44   ` Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-09  2:07 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 36122

積丹尼 Dan Jacobson <jidanni@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





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

* bug#36122: A second find-dired clobbers the first's buffer
  2019-07-09  2:07 ` Lars Ingebrigtsen
@ 2019-07-09 20:18   ` Juri Linkov
  2019-07-09 21:12     ` Drew Adams
  2019-07-09 22:44   ` Richard Stallman
  1 sibling, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2019-07-09 20:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 積丹尼 Dan Jacobson, 36122

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





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

* bug#36122: A second find-dired clobbers the first's buffer
  2019-07-09 20:18   ` Juri Linkov
@ 2019-07-09 21:12     ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2019-07-09 21:12 UTC (permalink / raw)
  To: Juri Linkov, Lars Ingebrigtsen
  Cc: 積丹尼 Dan Jacobson, 36122

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





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

* bug#36122: A second find-dired clobbers the first's buffer
  2019-07-09  2:07 ` Lars Ingebrigtsen
  2019-07-09 20:18   ` Juri Linkov
@ 2019-07-09 22:44   ` Richard Stallman
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2019-07-09 22:44 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: jidanni, 36122

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







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

end of thread, other threads:[~2019-07-09 22:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2019-07-09 21:12     ` Drew Adams
2019-07-09 22:44   ` Richard Stallman

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.