unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 13511@debbugs.gnu.org
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	[thread overview]
Message-ID: <87wqv6olhm.fsf@mail.jurta.org> (raw)
In-Reply-To: <A662DA9C-A0EA-4C8B-B1FA-CB6EBE209CCC@swipnet.se> ("Jan \=\?iso-8859-1\?Q\?Dj\=E4rv\=22's\?\= message of "Mon, 21 Jan 2013 11:00:22 +0100")

> 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'?





  reply	other threads:[~2013-01-21 10:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3E6B15C3-1D35-4D88-9632-67981102C389@ismobile.com>
2013-01-21 10:00 ` bug#13511: 24.3.50; C-x C-f M-n does not produce buffer filename Jan Djärv
2013-01-21 10:50   ` Juri Linkov [this message]
2013-01-21 17:18     ` Jan Djärv
2013-01-21 17:19       ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqv6olhm.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=13511@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).