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 16:20:29 +0300 Message-ID: <83y4t7vntu.fsf@gnu.org> References: <8761gd2ffo.fsf@geodiff-mac3.ulb.ac.be> <83egv0x155.fsf@gnu.org> <87iokc0x5l.fsf@geodiff-mac3.ulb.ac.be> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411651282 23630 80.91.229.3 (25 Sep 2014 13:21:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2014 13:21:22 +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 15:21:15 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 1XX8yx-0002yt-5V for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 15:21:15 +0200 Original-Received: from localhost ([::1]:40259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX8yw-0002vq-Od for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2014 09:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX8yR-0002gl-Kl for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 09:20:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XX8yM-0002S2-75 for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 09:20:43 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:50685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX8yL-0002Rb-U2 for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 09:20:38 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NCG00P00JX40A00@mtaout24.012.net.il> for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 16:14:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCG00HMLKSS6Z90@mtaout24.012.net.il> for help-gnu-emacs@gnu.org; Thu, 25 Sep 2014 16:14:53 +0300 (IDT) In-reply-to: <87iokc0x5l.fsf@geodiff-mac3.ulb.ac.be> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 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:100145 Archived-At: > 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 (To get the "xbacktrace" command, start GDB in the Emacs src/ directory, or manually type "source /path/to/emacs/src/.gdbinit" once inside GDB.) Then turn on logging in GDB: (gdb) set logging on Then run Emacs with the "run" command, and use it as usual until you have your problem reproduced. You could then look inside the file gdb.txt, where GDB logs all its output, for the last watchpoint break. If the watchpoint gets hit a lot, then Emacs will run slower, but hopefully not too slow to become unusable. Hopefully, not many Lisp packages/functions let-bind this variable, so you won't need to wade through too many false positives. If that strategy succeeds, no watchpoint conditions will be needed. HTH