From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: inhibit-modification-hooks set to t globally Date: Thu, 25 Sep 2014 17:16:54 +0200 Message-ID: <87y4t7zq55.fsf@geodiff-mac3.ulb.ac.be> References: <8761gd2ffo.fsf@geodiff-mac3.ulb.ac.be> <83egv0x155.fsf@gnu.org> <87iokc0x5l.fsf@geodiff-mac3.ulb.ac.be> <83y4t7vntu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411658250 29823 80.91.229.3 (25 Sep 2014 15:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2014 15:17:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 17:17:19 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 1XXAnH-0000Fe-8s for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 17:17:19 +0200 Original-Received: from localhost ([::1]:40686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXAnG-000344-QF for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 11:17:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXAn1-00033y-FG for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXAmw-00013W-CO for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 11:17:03 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:46874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXAmw-0000zc-6F; Thu, 25 Sep 2014 11:16:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8KAAMxJFSkD4Xx/2dsb2JhbABghDi2LAEBAQEBAQacBAKBGAF7hAMBAQEDAXkQCxQBDCUPAQRJE4gpAQMJCK1YjDABh1MBF4YSgi2FL4IwB4RLBYUTBZYBiT+HWoZHg2U7L4JKAQEB Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 25 Sep 2014 17:16:52 +0200 In-Reply-To: <83y4t7vntu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Sep 2014 16:20:29 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:100147 Archived-At: Eli Zaretskii writes: >> From: Nicolas Richard >> Cc: help-gnu-emacs@gnu.org >> Date: Thu, 25 Sep 2014 13:14:46 +0200 >> >> By looking at the source, I managed to find that I should "watch >> globals.f_inhibit_modification_hooks", but I could not find a way to set >> up a condition with "watch". Also I don't know what the condition should >> be. Can you guide me a little more ? > > Maybe the first thing to try is simply something like this: > > (gdb) watch globals.f_inhibit_modification_hooks if globals.f_inhibit_modification_hooks == Qt > (gdb) commands > > xbacktrace > > continue > > end 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. 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. -- Nicolas Richard