From: lorentey@elte.hu (Lőrentey Károly)
Cc: multi-tty@lists.fnord.hu, emacs-devel@gnu.org
Subject: Re: Emacs routinely gets stuck in single_kboard mode
Date: Fri, 16 Jul 2004 00:22:57 +0200 [thread overview]
Message-ID: <lorentey.g.e.devel.87eknclxku.elte@eris.elte.hu> (raw)
In-Reply-To: <E1BkoSs-0004C1-Ld@fencepost.gnu.org> (Richard Stallman's message of "Wed, 14 Jul 2004 14:26:46 -0400")
Richard Stallman <rms@gnu.org> writes:
> It could make sense to offer some way to unlock single-keyboard state
> from another keyboard, as long as it is something that people won't be
> likely to do without intending this effect. It can't be mere C-g,
> because people are likely to type C-g without realizing the situation
> they are in. Can you think of a good interface?
>
> Perhaps there could be a specific menu bar command that would do this.
> People would not be likely to push that by accident, especially if it
> leads to a submenu containing the item "Confirm and Proceed" before
> you really issue the command.
Well, that solution would work, but only if the menu bar is enabled.
Also, I think it would be hard to adapt it to work on termcap
displays. Naturally, that is not an issue in current Emacs CVS, but I
would prefer a solution that would continue to work after the
multi-tty merge. The problem is that as far as I know, the menu can
not be activated from a locked termcap keyboard. (I wonder if porting
the DOS port's menu interface to termcap displays would help with
this.)
What if 1) each blocked keyboard event would put something like the
following message in the echo area of the frame it came from:
Please wait; this keyboard is locked by activity on the foobar:0 display
and 2) pressing C-g would pop up a (faked?) y-or-n-p with a variation
of the following prompt (but better worded):
Break the lock? (Warning, the effects may be unexpected) (y or n)
Pressing C-g again would cancel the prompt and leave Emacs in
single-keyboard state, so the user would not accidentally break the
lock. Pressing y would unlock single-keyboard and warn the user again
about the remote recursive edit.
I suspect this solution would not be trivial to implement (there are
several interesting corner cases), but I think it would be very easy
for the user to understand.
What do you think?
(By the way, I guess implementing point 1 above is enough for the next
release. Built-in support for exiting the single-keyboard state from
another display should perhaps be left off for Emacs 22, or whenever
the multi-tty branch gets merged into CVS. Especially if we choose
something like this C-g-based approach.)
--
Károly
next prev parent reply other threads:[~2004-07-15 22:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-07 7:45 Emacs routinely gets stuck in single_kboard mode Lőrentey Károly
2004-06-13 21:49 ` Richard Stallman
2004-07-11 1:29 ` Lőrentey Károly
2004-07-11 3:55 ` Lőrentey Károly
2004-07-11 23:23 ` Richard Stallman
2004-07-12 23:58 ` Richard Stallman
2004-07-13 16:55 ` Lőrentey Károly
2004-07-11 23:23 ` Richard Stallman
2004-07-12 6:18 ` Lőrentey Károly
2004-07-12 23:57 ` Richard Stallman
2004-07-13 17:12 ` Lőrentey Károly
2004-07-13 23:49 ` David Kastrup
2004-07-14 18:26 ` Richard Stallman
2004-07-15 22:22 ` Lőrentey Károly [this message]
2004-07-16 16:08 ` Richard Stallman
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=lorentey.g.e.devel.87eknclxku.elte@eris.elte.hu \
--to=lorentey@elte.hu \
--cc=emacs-devel@gnu.org \
--cc=multi-tty@lists.fnord.hu \
/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.