From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: remove-hook. Date: Sat, 11 Oct 2003 13:12:04 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065892722 20106 80.91.224.253 (11 Oct 2003 17:18:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2003 17:18:42 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Oct 11 19:18:40 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A8NO4-0003JC-00 for ; Sat, 11 Oct 2003 19:18:40 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A8NO4-0006UC-00 for ; Sat, 11 Oct 2003 19:18:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A8NLb-0002XS-Nx for emacs-devel@quimby.gnus.org; Sat, 11 Oct 2003 13:16:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A8NLC-0002Vt-Ne for emacs-devel@gnu.org; Sat, 11 Oct 2003 13:15:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A8NKW-0002NO-QN for emacs-devel@gnu.org; Sat, 11 Oct 2003 13:15:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A8NKW-0002NJ-Kn for emacs-devel@gnu.org; Sat, 11 Oct 2003 13:15:00 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1A8NHg-0008GB-VF; Sat, 11 Oct 2003 13:12:04 -0400 Original-To: Lute Kamstra In-reply-to: (message from Lute Kamstra on Fri, 10 Oct 2003 16:25:49 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17034 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17034 I tried to figure this out, but it is rather annoying, to say the least. Once I instrument remove-hook, almost every key I press triggers Edebug (one or more times). A simpler and safer method is just to make remove-hook do (beep) at the beginning. Then you can put a breakpoint at Fbeep using gdb and find out where it is called from. However, when I put (beep) into remove-hook, ordinary editing doesn't even beep. So I guess remove-hook is not called for every key in my environment. Probably some mode you enabled is what does it.