unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Roland Winkler <roland.winkler@physik.uni-erlangen.de>
Subject: minibuffer-selected-buffer
Date: Thu, 12 Jun 2003 18:49:09 +0200	[thread overview]
Message-ID: <16104.44805.593166.683026@tfkp07.physik.uni-erlangen.de> (raw)

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?

More specifically my problem is the following: The argument TABLE of
completing-read can be a function that is doing the completion.
When TABLE is called by completing-read the current buffer is the
minibuffer. But I would like to run this function in the buffer foo
which was the current buffer when entering the minibuffer. (This
function should parse the buffer foo in order to generate the
completion table.) This can be achieved using
minibuffer-selected-window provided that the buffer foo has a window
attached to it. But this is essentially irrelevant for my problem.
Parsing the buffer foo makes sense even if currently no window is
attached to it.

Suggestions welcome!

Roland

PS: I have not subscribed to emacs-devel@gnu.org

             reply	other threads:[~2003-06-12 16:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-12 16:49 Roland Winkler [this message]
2003-06-13 22:03 ` minibuffer-selected-buffer Richard Stallman
2003-06-14 10:26   ` minibuffer-selected-buffer Roland Winkler
2003-06-14 23:42     ` minibuffer-selected-buffer Kim F. Storm
2003-06-15 15:59     ` minibuffer-selected-buffer Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16104.44805.593166.683026@tfkp07.physik.uni-erlangen.de \
    --to=roland.winkler@physik.uni-erlangen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).