From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.devel Subject: minibuffer-selected-buffer Date: Thu, 12 Jun 2003 18:49:09 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16104.44805.593166.683026@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1055437339 27340 80.91.224.249 (12 Jun 2003 17:02:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2003 17:02:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 12 19:02:17 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QVS5-000721-00 for ; Thu, 12 Jun 2003 19:01:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19QVnd-0005fh-00 for ; Thu, 12 Jun 2003 19:23:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QVRC-00058n-UU for emacs-devel@quimby.gnus.org; Thu, 12 Jun 2003 13:00:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QVPN-00040H-4f for emacs-devel@gnu.org; Thu, 12 Jun 2003 12:58:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QVOg-0003RC-Fp for emacs-devel@gnu.org; Thu, 12 Jun 2003 12:58:00 -0400 Original-Received: from max6.rrze.uni-erlangen.de ([131.188.3.214]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QVGF-0008LI-SG for emacs-devel@gnu.org; Thu, 12 Jun 2003 12:49:16 -0400 Original-Received: from tfkp07.physik.uni-erlangen.de by max6.rrze.uni-erlangen.de with ESMTP for emacs-devel@gnu.org; Thu, 12 Jun 2003 18:49:14 +0200 Original-To: emacs-devel@gnu.org X-Mailer: VM 6.96 under Emacs 21.2.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15063 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15063 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