bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36122: A second find-dired clobbers the first's buffer


From: Drew Adams
Subject: 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'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]