From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: find-file-read-args Date: Thu, 12 Nov 2009 11:45:21 +0100 Message-ID: <4AFBE741.1040506@gmx.at> References: <3b31caf90911051613w80af4cu61352a29ce5dcd77@mail.gmail.com> <87vdhoe73d.fsf@mail.jurta.org> <87y6mkb6qr.fsf@mail.jurta.org> <87bpjfiark.fsf@mail.jurta.org> <871vk8uo0q.fsf@mail.jurta.org> <87ocn8ayrw.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258024096 5447 80.91.229.12 (12 Nov 2009 11:08:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2009 11:08:16 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 12:08:08 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8XX3-0006Hw-TX for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2009 12:08:06 +0100 Original-Received: from localhost ([127.0.0.1]:54214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8XX3-0000i6-9g for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2009 06:08:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8XBF-0006t1-1S for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:45:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8XBA-0006q5-FK for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:45:32 -0500 Original-Received: from [199.232.76.173] (port=52442 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8XBA-0006pu-24 for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:45:28 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:40858) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N8XB9-0004TA-Ec for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:45:27 -0500 Original-Received: (qmail invoked by alias); 12 Nov 2009 10:45:22 -0000 Original-Received: from 62-47-61-218.adsl.highway.telekom.at (EHLO [62.47.61.218]) [62.47.61.218] by mail.gmx.net (mp021) with SMTP; 12 Nov 2009 11:45:22 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18tPDhMiSEtlGRLLjdD3/uvP6RauBDeShG3RA5d2/ jHZHBREP1QPjVu User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87ocn8ayrw.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116876 Archived-At: > There is still one problem. Due to the dynamical nature of M-n, it needs > to visit the original buffer to get file names at point at the time when > the current buffer if the minibuffer. I tried to find the original buffer > with the help of `(with-current-buffer (window-buffer (next-window)) ...' > but it often finds the wrong buffer when there are more than one window on > the frame. Could you suggest a method for finding the original buffer, > from which the minibuffer was activated. Maybe we should add a new > variable to hold the value of the original buffer set during > minibuffer setup? Isn't that the buffer shown in `minibuffer-selected-window'? martin