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

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

Re: My read-buffer-function doesn't work when called by switch-to-buffer


From: Michael Heerdegen
Subject: Re: My read-buffer-function doesn't work when called by switch-to-buffer
Date: Wed, 15 Mar 2023 19:57:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Tassilo Horn <tsdh@gnu.org> writes:

> >> > Maybe an advice of a higher level function would better fit your
> >> > wished-for behavior.
> >>
> >> Do you have one in mind?
> >
> > `read-buffer-to-switch'.
>
> Hm, but then it would be pretty specific to `switch-to-buffer' instead
> of a general `read-buffer-function'.  E.g., I just found out it's quite
> convienient to be able to use `append-to-buffer' to append to a buffer
> whose file I haven't found already but is in recentf-list.

Depends on what you want of course.  It doesn't make sense for
everything (not for `kill-buffer' for example).  If you are not confused
by getting file completions for `kill-buffer' then you can just keep
what you have.

This one of those things one needs to try out.


Michael.




reply via email to

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