From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13511: 24.3.50; C-x C-f M-n does not produce buffer filename Date: Mon, 21 Jan 2013 12:50:41 +0200 Organization: JURTA Message-ID: <87wqv6olhm.fsf@mail.jurta.org> References: <3E6B15C3-1D35-4D88-9632-67981102C389@ismobile.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358765824 22603 80.91.229.3 (21 Jan 2013 10:57:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 10:57:04 +0000 (UTC) Cc: 13511@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 11:57:22 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TxF46-0000kT-Of for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 11:57:22 +0100 Original-Received: from localhost ([::1]:49339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxF3p-0004Ip-Hb for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 05:57:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxF3l-0004Hr-6e for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 05:57:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxF3k-0006EJ-4O for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 05:57:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxF3k-0006EA-0x for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 05:57:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxF4k-0007P3-EZ for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 05:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2013 10:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13511-submit@debbugs.gnu.org id=B13511.135876584628410 (code B ref 13511); Mon, 21 Jan 2013 10:58:02 +0000 Original-Received: (at 13511) by debbugs.gnu.org; 21 Jan 2013 10:57:26 +0000 Original-Received: from localhost ([127.0.0.1]:42425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxF4A-0007OB-Fu for submit@debbugs.gnu.org; Mon, 21 Jan 2013 05:57:26 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:50757 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxF48-0007O4-MZ for 13511@debbugs.gnu.org; Mon, 21 Jan 2013 05:57:25 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 7130423562F032; Mon, 21 Jan 2013 02:56:20 -0800 (PST) In-Reply-To: ("Jan \=\?iso-8859-1\?Q\?Dj\=E4rv\=22's\?\= message of "Mon, 21 Jan 2013 11:00:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70133 Archived-At: > The current filename for the buffer is not inserted into the minibuffer. > You have to press M-n a second time to get ~/tst.txt. > > Sometimes, given more content in the file, the minibuffer shows > ~/images/about.bmp. I haven't been able to narrow this down to a > minimal test case. > > I was under the impression that C-x C-f M-n should always give the > filename of the current buffer. Since ffap doesn't do what you expect, perhaps `C-x C-f M-n' should give the filename of the current buffer, and second M-n to guess the filename under cursor using ffap, i.e. to exchange these suggestions from their current default values. Or ffap could be improved to better guess the filename under cursor. Currently it checks whether the file under cursor exists, and if it doesn't exist it gives the current directory (because of `.' at the beginning of nonexistent ./images/about.bmp). Maybe it should not check the existence of the file and give just ./images/about.bmp for `C-x C-f M-n'?