[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why should it be so hard to tell find-dired to use a different windo
From: |
Stefan Monnier |
Subject: |
Re: Why should it be so hard to tell find-dired to use a different window? |
Date: |
Fri, 21 Sep 2018 10:52:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I’m surprised that it works this way? Does this bother anybody else?
I've been in this fight for a long time, but since I don't use
find-fired, I haven't bumped into this problem.
> Like, I could imagine an alternate world where that call to
> `switch-to-buffer' could be replaced with something as heavy-handed as …
>
> (pop-to-buffer (get-buffer-create "*Find*") '(display-buffer-same-window
> (inhibit-same-window)))
There's pop-to-buffer-same-window.
> Is there any particular reason to keep using switch-to-buffer here?
AFAIK the only reason is history,
Stefan