all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Juri Linkov <juri@jurta.org>
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 18:18:36 +0100	[thread overview]
Message-ID: <829D340A-7BA0-453A-993F-2829074E0D63@swipnet.se> (raw)
In-Reply-To: <87wqv6olhm.fsf@mail.jurta.org>

Hello.

21 jan 2013 kl. 11:50 skrev Juri Linkov <juri@jurta.org>:

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

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.






  reply	other threads:[~2013-01-21 17:18 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
2013-01-21 17:18     ` Jan Djärv [this message]
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

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

  git send-email \
    --in-reply-to=829D340A-7BA0-453A-993F-2829074E0D63@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=13511@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.