unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Feature request: quiet keyboard-quit
@ 2002-05-22  8:09 Oliver Scholz
  2002-05-22 11:27 ` Kai Großjohann
  2002-05-22 15:53 ` Paul Jarc
  0 siblings, 2 replies; 4+ messages in thread
From: Oliver Scholz @ 2002-05-22  8:09 UTC (permalink / raw)


Hello!

Whenever I hit `C-g' Emacs beeps or -- in my case -- flashes. I'd like
to turn this of -- not in all cases, but solely for `keyboard-quit'.

I do know that I could set `ring-bell-function' to a function that
does nothing and get rid of all beeping or flashing. But this has the
unwelcome side-effect that I don't get a warning flash even in the
case of errors. So I don't get warned if something unexpected happens.

But I know what I am doing when I hit `C-g', so there is no need to
warn me -- while a fairly unobtrusive "Quit" in the echo area is fine.

Apparently `keyboard-quit' can't be defadviced "after" or "around":

(defadvice keyboard-quit (around do-not-beep! activate)
  (let ((ring-bell-function (lambda () nil)))
    ad-do-it))

... is futile.

`condition-case' does not trap the quit-signal and ...

(let ((inhibit-quit t))
  ... )

... is pointless when `keyboard-quit' gets a call from the lisp code.

So it seems that it is impossible to do this on the lisp customization
level. So here is my request:

Would you make this possible, please?

It would be very kind of you to give the user control over this by
setting a variable (`keyboard-quit-inhibit-warning' or so).

    -- Oliver


--
Oliver Scholz
Taunusstr. 25
60329 Frankfurt am Main
Tel. 069  97 40 99 42

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-22 16:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-22  8:09 Feature request: quiet keyboard-quit Oliver Scholz
2002-05-22 11:27 ` Kai Großjohann
2002-05-22 16:04   ` Oliver Scholz
2002-05-22 15:53 ` Paul Jarc

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).