From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: inhibit-modification-hooks set to t globally Date: Thu, 25 Sep 2014 18:27:14 +0300 Message-ID: <83ppejvhyl.fsf@gnu.org> References: <8761gd2ffo.fsf@geodiff-mac3.ulb.ac.be> <83egv0x155.fsf@gnu.org> <87iokc0x5l.fsf@geodiff-mac3.ulb.ac.be> <83y4t7vntu.fsf@gnu.org> <87y4t7zq55.fsf@geodiff-mac3.ulb.ac.be> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411658873 7771 80.91.229.3 (25 Sep 2014 15:27:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2014 15:27:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 17:27:46 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XXAxM-0006TO-0t for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 17:27:44 +0200 Original-Received: from localhost ([::1]:40720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXAxL-0006Dx-KY for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 11:27:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXAx6-0006Br-3w for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:27:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXAx0-0004FE-Fx for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:27:28 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:51854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXAx0-0004Ef-7i for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:27:22 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NCG00J00QIU6G00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 18:27:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCG00IKGQXEXR90@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 18:27:15 +0300 (IDT) In-reply-to: <87y4t7zq55.fsf@geodiff-mac3.ulb.ac.be> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100149 Archived-At: > From: Nicolas Richard > Cc: help-gnu-emacs@gnu.org > Date: Thu, 25 Sep 2014 17:16:54 +0200 > > I tried these, but testing it with (setq inhibit-modification-hooks t) > did not give anything in the log file, so I suspect I won't ever catch > anything. What does "print Qt" produce in that build? > If I use > (gdb) watch globals.f_inhibit_modification_hooks > instead, then I get *a lot* of output in the log file. AFAICT, it's > mostly (if not always) because of signal_after_change or > signal_before_change which both issue "specbind > (Qinhibit_modification_hooks, Qt);" at some point. You could put a breakpoint at entry to specbind with commands to disable the watchpoint, and another one at exit from the function to re-enable it.