From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: find-file-read-args Date: Thu, 12 Nov 2009 12:51:18 +0200 Organization: JURTA Message-ID: <87tyx05849.fsf@mail.jurta.org> 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> <4AFBE741.1040506@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258024777 7391 80.91.229.12 (12 Nov 2009 11:19:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2009 11:19:37 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 12:19:29 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 1N8Xi4-0002DR-Iy for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2009 12:19:28 +0100 Original-Received: from localhost ([127.0.0.1]:52107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8Xi3-0000rw-Js for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2009 06:19:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8XLJ-0006jz-2w for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:55:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8XLD-0006iE-Js for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:55:56 -0500 Original-Received: from [199.232.76.173] (port=33003 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8XLD-0006iA-D5 for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:55:51 -0500 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:47418 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8XLD-00063L-0l for emacs-devel@gnu.org; Thu, 12 Nov 2009 05:55:51 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.30.134.cable.starman.ee [82.131.30.134]) by mx1.starman.ee (Postfix) with ESMTP id D9A6F3F409F; Thu, 12 Nov 2009 12:55:44 +0200 (EET) In-Reply-To: <4AFBE741.1040506@gmx.at> (martin rudalics's message of "Thu, 12 Nov 2009 11:45:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:116877 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'? Thank you, I'll try to use this. -- Juri Linkov http://www.jurta.org/emacs/