From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= 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 18:18:36 +0100 Message-ID: <829D340A-7BA0-453A-993F-2829074E0D63@swipnet.se> References: <3E6B15C3-1D35-4D88-9632-67981102C389@ismobile.com> <87wqv6olhm.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358788741 15425 80.91.229.3 (21 Jan 2013 17:19:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 17:19:01 +0000 (UTC) Cc: 13511@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 18:19:20 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 1TxL1j-0007yo-1X for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 18:19:19 +0100 Original-Received: from localhost ([::1]:59870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxL1S-00041U-0h for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 12:19:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxL1P-00041N-3G for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:19:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxL1O-0002lX-26 for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:18:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxL1N-0002lS-UT for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:18:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxL2Q-0001O5-1k for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2013 17:20:01 +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.13587887875309 (code B ref 13511); Mon, 21 Jan 2013 17:20:01 +0000 Original-Received: (at 13511) by debbugs.gnu.org; 21 Jan 2013 17:19:47 +0000 Original-Received: from localhost ([127.0.0.1]:43363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxL2A-0001NZ-Ja for submit@debbugs.gnu.org; Mon, 21 Jan 2013 12:19:46 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:63217) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxL28-0001NQ-64 for 13511@debbugs.gnu.org; Mon, 21 Jan 2013 12:19:45 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id F406E97A1 for <13511@debbugs.gnu.org>; Mon, 21 Jan 2013 18:18:36 +0100 (CET) Original-Received: (qmail 8890 invoked by uid 89); 21 Jan 2013 17:18:36 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 21 Jan 2013 17:18:36 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 58AAD7FA06C; Mon, 21 Jan 2013 18:18:36 +0100 (CET) In-Reply-To: <87wqv6olhm.fsf@mail.jurta.org> X-Mailer: Apple Mail (2.1499) 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:70140 Archived-At: Hello. 21 jan 2013 kl. 11:50 skrev Juri Linkov : >> 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. >>=20 >> 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. >>=20 >> I was under the impression that C-x C-f M-n should always give the >> filename of the current buffer. >=20 > 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. >=20 > 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'? I didn't know ffap was involved. I'm content to customize = file-name-at-point-functions, as I can't imagine when I would wan't = ffap. It really doesn't work well, I also got "Stack overflow in regexp = matcher" a few times. Hard to reproduce though. I would expect if ffap can't produce a file that exists, or an error = occurs, it should produce the current buffer filename. Jan D.