* Quit help for someone new to Emacs
@ 2019-12-19 15:37 Zhu Zihao
2019-12-19 16:54 ` Unknown
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Zhu Zihao @ 2019-12-19 15:37 UTC (permalink / raw)
To: emacs-devel
Well, it's not a joke. I found Vim will give a hint for new user how can they
really quit Vim when they try to press "C-c".
I know there's detailed message in splash screen describes that how to quit. But
if a new user use Emacs to open a file directly(e.g. run "emacs .bashrc" in
bash). They can't see this useful message.
For Emacs, "C-c" is preserved for user bindings. So it's always empty for a
Emacs without any user configuration. IMO, it maybe useful to pop a message
"Press 'C-x C-c' ('C-' means Ctrl-) to quit Emacs" in echo area when someone hit
"C-c" frequently. And no doubt that this feature can be controlled via a Lisp
variable.
What's your opinions?
--
Zihao
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-19 15:37 Quit help for someone new to Emacs Zhu Zihao
@ 2019-12-19 16:54 ` Unknown
2019-12-20 4:13 ` Zhu Zihao
2019-12-19 18:34 ` Memnon Anon
2019-12-19 19:25 ` Mark H. David
2 siblings, 1 reply; 8+ messages in thread
From: Unknown @ 2019-12-19 16:54 UTC (permalink / raw)
To: Zhu Zihao; +Cc: emacs-devel
Zhu Zihao <all_but_last@163.com> 작성:
>
> Well, it's not a joke. I found Vim will give a hint for new user how can
> they
> really quit Vim when they try to press "C-c".
>
> I know there's detailed message in splash screen describes that how to
> quit. But
> if a new user use Emacs to open a file directly(e.g. run "emacs .bashrc" in
> bash). They can't see this useful message.
>
> For Emacs, "C-c" is preserved for user bindings. So it's always empty for a
> Emacs without any user configuration. IMO, it maybe useful to pop a message
> "Press 'C-x C-c' ('C-' means Ctrl-) to quit Emacs" in echo area when
> someone hit
> "C-c" frequently.
Looks like the feature might only be activated when there is no .emacs or
~/.emacs.d directory. (I’m assuming that most new users that don’t know
Emacs enough to not know (or search, learn) how to quit Emacs won’t have
already configured Emacs.)
What about a ‘C-c C-c’ default binding that only gets activated when there
is no init file?
> And no doubt that this feature can be controlled via a Lisp
> variable.
In my proposal, that would just be binding C-c C-c to (message "Press 'C-x
C-c' ('C-' means Ctrl-) to quit Emacs") (or some function that Emacs uses
to display the message) so I’m not sure if there needs another variable.
> What's your opinions?
Great idea, IMO.
> —
>
> Zihao
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-19 15:37 Quit help for someone new to Emacs Zhu Zihao
2019-12-19 16:54 ` Unknown
@ 2019-12-19 18:34 ` Memnon Anon
2019-12-19 19:25 ` Mark H. David
2 siblings, 0 replies; 8+ messages in thread
From: Memnon Anon @ 2019-12-19 18:34 UTC (permalink / raw)
To: emacs-devel
Zhu Zihao <all_but_last@163.com> writes:
> Well, it's not a joke. I found Vim will give a hint for new user how can they
> really quit Vim when they try to press "C-c".
Emacs does have a menu bar.
Even a new user would navigate his mouse to "File"-> "Quit";
in the terminal, "F10" is a common key to access the menu
bar, and again, emacs does that here on my machine.
Unless we are talking about a special group of new
users, I do not think this is really an issue, is it?
Mem
--
/-------------------------------------------\
| SDF and SDF-EU Public Access UNIX System |
| http://sdf.org || http://sdf-eu.org |
=============================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-19 15:37 Quit help for someone new to Emacs Zhu Zihao
2019-12-19 16:54 ` Unknown
2019-12-19 18:34 ` Memnon Anon
@ 2019-12-19 19:25 ` Mark H. David
2019-12-19 19:37 ` Eli Zaretskii
2 siblings, 1 reply; 8+ messages in thread
From: Mark H. David @ 2019-12-19 19:25 UTC (permalink / raw)
To: emacs-devel
It's a good idea. You probably have to say type C-g C-g first, since they might be in a mode that will not interpret C-x C-c correctly if they've, say, typed C-x. Someone wrote that there's a menu bar, but what if they're in a terminal?
----- Original message -----
From: Zhu Zihao <all_but_last@163.com>
To: emacs-devel@gnu.org
Subject: Quit help for someone new to Emacs
Date: Thursday, December 19, 2019 7:37 AM
Well, it's not a joke. I found Vim will give a hint for new user how can they
really quit Vim when they try to press "C-c".
I know there's detailed message in splash screen describes that how to quit. But
if a new user use Emacs to open a file directly(e.g. run "emacs .bashrc" in
bash). They can't see this useful message.
For Emacs, "C-c" is preserved for user bindings. So it's always empty for a
Emacs without any user configuration. IMO, it maybe useful to pop a message
"Press 'C-x C-c' ('C-' means Ctrl-) to quit Emacs" in echo area when someone hit
"C-c" frequently. And no doubt that this feature can be controlled via a Lisp
variable.
What's your opinions?
--
Zihao
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-19 19:25 ` Mark H. David
@ 2019-12-19 19:37 ` Eli Zaretskii
2019-12-19 19:54 ` Mark H. David
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2019-12-19 19:37 UTC (permalink / raw)
To: Mark H. David; +Cc: emacs-devel
> Date: Thu, 19 Dec 2019 11:25:55 -0800
> From: "Mark H. David" <mhd@yv.org>
>
> Someone wrote that there's a menu bar, but what if they're in a terminal?
We support the menu bar on text terminals as well. If you don't have
mouse support on a text terminal, type F10 to drop down the menu.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-19 19:37 ` Eli Zaretskii
@ 2019-12-19 19:54 ` Mark H. David
0 siblings, 0 replies; 8+ messages in thread
From: Mark H. David @ 2019-12-19 19:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
F10? Ok, it's great to learn of this.
----- Original message -----
From: Eli Zaretskii <eliz@gnu.org>
To: "Mark H. David" <mhd@yv.org>
Cc: emacs-devel@gnu.org
Subject: Re: Quit help for someone new to Emacs
Date: Thursday, December 19, 2019 11:37 AM
> Date: Thu, 19 Dec 2019 11:25:55 -0800
> From: "Mark H. David" <mhd@yv.org>
>
> Someone wrote that there's a menu bar, but what if they're in a terminal?
We support the menu bar on text terminals as well. If you don't have
mouse support on a text terminal, type F10 to drop down the menu.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-19 16:54 ` Unknown
@ 2019-12-20 4:13 ` Zhu Zihao
2019-12-20 7:10 ` VanL
0 siblings, 1 reply; 8+ messages in thread
From: Zhu Zihao @ 2019-12-20 4:13 UTC (permalink / raw)
To: 조성빈; +Cc: Zhu Zihao, emacs-devel
> In my proposal, that would just be binding C-c C-c to (message "Press 'C-x C-c'
> ('C-' means Ctrl-) to quit Emacs") (or some function that Emacs uses to display
> the message) so I’m not sure if there needs another variable.
That's also a good solution! Thanks for suggestion.
--
Zihao
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Quit help for someone new to Emacs
2019-12-20 4:13 ` Zhu Zihao
@ 2019-12-20 7:10 ` VanL
0 siblings, 0 replies; 8+ messages in thread
From: VanL @ 2019-12-20 7:10 UTC (permalink / raw)
To: emacs-devel
>> that would just be binding C-c C-c...
>
> That's also a good solution!
Won't they not ask their smartphone or the smartspeaker how to save then
quit?
--
VanL., 🐞
əə0@ 一 二 三 言 語 𝔖 元 示 証 明 海 自 己 漢 本 人 Gnus/Emacs (berkeley-unix)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-12-20 7:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19 15:37 Quit help for someone new to Emacs Zhu Zihao
2019-12-19 16:54 ` Unknown
2019-12-20 4:13 ` Zhu Zihao
2019-12-20 7:10 ` VanL
2019-12-19 18:34 ` Memnon Anon
2019-12-19 19:25 ` Mark H. David
2019-12-19 19:37 ` Eli Zaretskii
2019-12-19 19:54 ` Mark H. David
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).