From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.bugs Subject: Feature request: quiet keyboard-quit Date: Wed, 22 May 2002 10:09:25 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200205220809.g4M89PW00568@localhost.localdomain> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1022049534 31957 127.0.0.1 (22 May 2002 06:38:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 May 2002 06:38:54 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17APlt-0008JD-00 for ; Wed, 22 May 2002 08:38:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17APmO-0004vF-00; Wed, 22 May 2002 02:39:24 -0400 Original-Received: from dialin-145-254-196-136.arcor-ip.net ([145.254.196.136] helo=localhost.localdomain) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17APkx-0004qC-00 for ; Wed, 22 May 2002 02:37:55 -0400 Original-Received: (from egoge@localhost) by localhost.localdomain (8.11.4/8.11.4) id g4M89PW00568; Wed, 22 May 2002 10:09:25 +0200 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1512 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1512 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