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:19:33 +0100 Message-ID: <579325A0-C46D-4C28-BBB0-00A0FF2E34D7@swipnet.se> References: <3E6B15C3-1D35-4D88-9632-67981102C389@ismobile.com> <87wqv6olhm.fsf@mail.jurta.org> <829D340A-7BA0-453A-993F-2829074E0D63@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358788803 16051 80.91.229.3 (21 Jan 2013 17:20:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 17:20:03 +0000 (UTC) Cc: 13511-done@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:20: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 1TxL2i-0008WJ-7z for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 18:20:20 +0100 Original-Received: from localhost ([::1]:60677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxL2R-0004XR-4L for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 12:20:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxL2N-0004Wz-DR for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:20:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxL2M-00032m-BU for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:19:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxL2M-00032f-8J for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:19:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxL3O-0001Pj-E8 for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2013 12:21:02 -0500 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2013 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13511@debbugs.gnu.org, jan.h.d@swipnet.se, jan.h.d@swipnet.se Original-Received: via spool by 13511-done@debbugs.gnu.org id=D13511.13587888405406 (code D ref 13511); Mon, 21 Jan 2013 17:21:02 +0000 Original-Received: (at 13511-done) by debbugs.gnu.org; 21 Jan 2013 17:20:40 +0000 Original-Received: from localhost ([127.0.0.1]:43367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxL32-0001P8-0K for submit@debbugs.gnu.org; Mon, 21 Jan 2013 12:20:40 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:63223) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxL30-0001P2-L5 for 13511-done@debbugs.gnu.org; Mon, 21 Jan 2013 12:20:39 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id B137997A5 for <13511-done@debbugs.gnu.org>; Mon, 21 Jan 2013 18:19:33 +0100 (CET) Original-Received: (qmail 9398 invoked by uid 89); 21 Jan 2013 17:19:33 -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:19:33 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 243E77FA06C; Mon, 21 Jan 2013 18:19:33 +0100 (CET) In-Reply-To: <829D340A-7BA0-453A-993F-2829074E0D63@swipnet.se> 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:70141 Archived-At: Closing, customize file-name-at-point-functions solves the problem. Jan D. 21 jan 2013 kl. 18:18 skrev Jan Dj=E4rv : > Hello. >=20 > 21 jan 2013 kl. 11:50 skrev Juri Linkov : >=20 >>> 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'? >=20 > 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. >=20 > I would expect if ffap can't produce a file that exists, or an error = occurs, it should produce the current buffer filename. >=20 > Jan D. >=20