all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to know the buffer I will return to from the minibuffer?
@ 2019-02-14  7:10 Marcin Borkowski
  2019-02-14  8:39 ` tomas
  2019-02-14 15:38 ` Drew Adams
  0 siblings, 2 replies; 5+ messages in thread
From: Marcin Borkowski @ 2019-02-14  7:10 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

I am writing an interactive command to be used while in the minibuffer.
I need to know the buffer I was in when I issued the command that put me
in the minibuffer (like M-: or M-!).  I tried (other-buffer
(current-buffer)) and (last-buffer (current-buffer)), but to no avail.
Then I re-read the docs for `other-buffer' and used this: (other-buffer
(current-buffer) t), and it seemed to work.  The question is, how
reliable it is.  Am I doing this correctly?

TIA,

-- 
Marcin Borkowski
http://mbork.pl



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

end of thread, other threads:[~2019-02-17  6:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-14  7:10 How to know the buffer I will return to from the minibuffer? Marcin Borkowski
2019-02-14  8:39 ` tomas
2019-02-17  6:00   ` Marcin Borkowski
2019-02-14 15:38 ` Drew Adams
2019-02-17  5:59   ` Marcin Borkowski

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.