* Re: advising setq
[not found] ` <2bd747c7.0206271638.70d94888@posting.google.com>
@ 2002-06-28 1:50 ` Miles Bader
0 siblings, 0 replies; only message in thread
From: Miles Bader @ 2002-06-28 1:50 UTC (permalink / raw)
bigfaceworm@hotmail.com (bigfaceworm) writes:
> Ok. I advised 'setq-default, set the value to `nil,
> (advice worked). Checked the value, it was in fact nil globally.
>
> Three hours later, it's back to " >".
>
> setq-default was apparently not called.
`Advice' on built-in functions/forms (like setq and setq-default) only
works for calls from lisp, not on calls made from C code.
Maybe the easiest thing to do is run gdb on your emacs (assuming you've
compiled it from source), put a breakpoint on Fset or Fset_default, and
make the breakpoint conditional on the symbol being `fill-prefix'.
[Probably the easiest way to make the breakpoint conditional on the
symbol being `fill-prefix' is to intentionally call setq yourself from
lisp after you've added the unconditional breakpoint, and when gdb hits
the breakpoint, make sure it's the correct symbol (using the special
emacs gdb command `xprintsym symbol'), and if so, just look at the C
value for the `symbol' argument and then use `cond symbol == ...' (where
... is the value gdb printed).]
-Miles
--
Run away! Run away!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-28 1:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2bd747c7.0206262026.23eb31d4@posting.google.com>
[not found] ` <2bd747c7.0206271638.70d94888@posting.google.com>
2002-06-28 1:50 ` advising setq Miles Bader
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).