emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugger and mode-line


From: Andreas Schwab
Subject: Re: Debugger and mode-line
Date: Sat, 08 Jul 2006 16:23:14 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

> ***************
> *** 16542,16548 ****
> --- 16543,16551 ----
>        kboard-local variables in the mode_line_format will get the right
>        values.  */
>     push_frame_kboard (it.f);
> +   match_data = Fmatch_data (Qnil, Qnil, Qnil);
>     display_mode_element (&it, 0, 0, 0, format, Qnil, 0);
> +   Fset_match_data (match_data, Qnil);

You'll need to protect match_data from GC, since display_mode_element can
call eval.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]