* Reloading files
@ 2016-04-04 19:20 Lars Magne Ingebrigtsen
2016-04-04 19:51 ` Drew Adams
2016-04-06 22:03 ` Mathias Dahl
0 siblings, 2 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2016-04-04 19:20 UTC (permalink / raw)
To: emacs-devel
Back in the olden days, hitting `C-x C-f RET' in a buffer visiting a
file would reload the current file. Then this changed to `C-x C-f M-n',
which is fine. Then apparently all sorts of ffap code has infected
`M-n', so whether you get to reload the file or not depends on what's
under point.
This is really annoying.
Has Emacs grown a new command for reliably reloading the current visited
file that I'm just not able to find? `revert-buffer' is not on any
keys, and is way too chatty, anyway. (And a bit scary.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Reloading files
2016-04-04 19:20 Reloading files Lars Magne Ingebrigtsen
@ 2016-04-04 19:51 ` Drew Adams
2016-04-06 22:03 ` Mathias Dahl
1 sibling, 0 replies; 3+ messages in thread
From: Drew Adams @ 2016-04-04 19:51 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen, emacs-devel
> Back in the olden days, hitting `C-x C-f RET' in a buffer visiting a
> file would reload the current file.
I think you mean "visit", not "load". (Or else I don't understand.)
> Then this changed to `C-x C-f M-n', which is fine.
That happened after Emacs 20, by Emacs 22 at least.
> Has Emacs grown a new command for reliably reloading the current visited
> file that I'm just not able to find? `revert-buffer' is not on any
> keys, and is way too chatty, anyway. (And a bit scary.)
Sounds like you want `C-x C-v' (`find-alternate-file'). That does
more than revert the buffer, but it at least does that.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Reloading files
2016-04-04 19:20 Reloading files Lars Magne Ingebrigtsen
2016-04-04 19:51 ` Drew Adams
@ 2016-04-06 22:03 ` Mathias Dahl
1 sibling, 0 replies; 3+ messages in thread
From: Mathias Dahl @ 2016-04-06 22:03 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
>
> Back in the olden days, hitting `C-x C-f RET' in a buffer visiting a
> file would reload the current file. Then this changed to `C-x C-f M-n',
> which is fine. Then apparently all sorts of ffap code has infected
> `M-n', so whether you get to reload the file or not depends on what's
> under point.
>
Aha! So that is why M-n does not do what I want...
This is really annoying.
>
I agree, and I would almost say it is a bug. As a user, being able to
develop habits in user interfaces is a good thing. A feature like this
hinders that, since the behavior changes depending on a certain content
in the buffer.
Why can't people just do M-x ffap RET?
On the other hand, now that I have actually tried C-x C-v out, perhaps I
will use that instead... :) A very common use case that I have, by the way
is that I want to copy the current file name, not necessarily reload the
current
file.
[-- Attachment #2: Type: text/html, Size: 1574 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-06 22:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04 19:20 Reloading files Lars Magne Ingebrigtsen
2016-04-04 19:51 ` Drew Adams
2016-04-06 22:03 ` Mathias Dahl
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.