all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: inhibit-modification-hooks set to t globally
Date: Thu, 25 Sep 2014 16:20:29 +0300	[thread overview]
Message-ID: <83y4t7vntu.fsf@gnu.org> (raw)
In-Reply-To: <87iokc0x5l.fsf@geodiff-mac3.ulb.ac.be>

> From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
> 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



  reply	other threads:[~2014-09-25 13:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24 15:42 inhibit-modification-hooks set to t globally Nicolas Richard
2014-09-24 19:35 ` Eli Zaretskii
2014-09-25 11:14   ` Nicolas Richard
2014-09-25 13:20     ` Eli Zaretskii [this message]
2014-09-25 15:16       ` Nicolas Richard
2014-09-25 15:27         ` Eli Zaretskii
2014-09-25 15:32           ` Nicolas Richard
2014-09-25 15:44             ` Eli Zaretskii
2014-09-25 15:57               ` Eli Zaretskii
     [not found]     ` <mailman.9594.1411651250.1147.help-gnu-emacs@gnu.org>
2014-09-25 21:06       ` Stefan Monnier
2014-09-26  6:50         ` Eli Zaretskii
     [not found] <mailman.9489.1411573361.1147.help-gnu-emacs@gnu.org>
2014-09-24 17:14 ` Stefan Monnier
2014-09-25 10:55   ` Nicolas Richard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y4t7vntu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.