From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Jen-Chieh Shen <jcs090218@gmail.com>
Cc: 43165@debbugs.gnu.org
Subject: bug#43165: [PATCH] Add load this file lisp function.
Date: Wed, 2 Sep 2020 08:51:48 -0700 (PDT) [thread overview]
Message-ID: <29a3f5d1-c5f7-4ba5-a285-58e204faeed4@default> (raw)
In-Reply-To: <87v9gwtr2o.fsf@gnus.org>
> Just do: `M-x load-file RET M-n RET'
I was going to say this yesterday, when I saw
the enhancement request.
Just do: `M-x load-file RET RET'. No need for
`M-n'. Of course, one needs to know this, to
do it. I've been doing it forever. Would I
want a key for it? Not I.
But it's true that we have `kill-this-buffer'.
The reason we have `kill-this-buffer', I believe,
is just for a menu item (`Close': `<menu-bar>
<file> <kill-buffer>'). It makes little sense
to bind it to a keyboard key. But someone could.
`load-file' is in the same boat, I think. There's
little use for a `load-this-file' command, in
terms of keyboard key bindings. But I suppose
it could serve (like `Close') as a menu item.
Actually, there's a difference from `kill-buffer':
the risk of killing something unintended versus
the risk of loading something unintended. Maybe
the same reason we show the default in the prompt,
for `kill-buffer'.
If you were to bind `kill-this-buffer' to a key,
and accidentally hit that key, bye-bye wrong
buffer, perhaps. In a menu that's less likely
to happen. For `load-this-file' there's less of
a "danger", if you accidentally try to load the
current file when you shouldn't.
I don't see a need for such a command, personally,
but about the same thing goes for `kill-this-buffer'.
Note, BTW, that we don't even bind `load-file'
by default. It's not really a command that users
use every 10 minutes.
Personally, I'd say we don't need a `load-this-file'.
Just one opinion.
next prev parent reply other threads:[~2020-09-02 15:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-02 3:16 bug#43165: [PATCH] Add load this file lisp function Jen-Chieh Shen
2020-09-02 9:43 ` Lars Ingebrigtsen
[not found] ` <CAMiGhTPP=1ez0x=v19RKHEVPkCfU_AEbN=mDeamXfXey99R3Zw@mail.gmail.com>
2020-09-02 10:23 ` Lars Ingebrigtsen
2020-09-02 15:51 ` Drew Adams [this message]
2020-09-03 20:28 ` Stefan Kangas
2020-09-04 1:52 ` Lars Ingebrigtsen
2020-09-04 2:13 ` Drew Adams
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=29a3f5d1-c5f7-4ba5-a285-58e204faeed4@default \
--to=drew.adams@oracle.com \
--cc=43165@debbugs.gnu.org \
--cc=jcs090218@gmail.com \
--cc=larsi@gnus.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.