emacs-devel
[Top][All Lists]
Advanced

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

Re: minibuffer-selected-buffer


From: Richard Stallman
Subject: Re: minibuffer-selected-buffer
Date: Fri, 13 Jun 2003 18:03:17 -0400

    The function minibuffer-selected-window returns the window which was
    selected when entering the minibuffer. For bibtex.el I would like to
    use a function minibuffer-selected-buffer that returns the buffer
    which was the current buffer when entering the minibuffer. Would it
    make sense to add such a function to emacs?

The best practice is to call completing-read only to read arguments
to a command.  The current buffer when the command is run
is the selected window's buffer.

So it seems that (window-buffer (minibuffer-selected-window)) would do
the job.  In what case is this not correct?




reply via email to

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