[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugger and mode-line
From: |
Thien-Thi Nguyen |
Subject: |
Re: Debugger and mode-line |
Date: |
08 Jul 2006 05:53:56 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Richard Stallman <address@hidden> writes:
> That is a good idea. Can someone please implement it and ack?
does this patch look ok?
thi
_________________________________________________________
*** xdisp.c 1 Jul 2006 23:29:04 -0000 1.1109
--- xdisp.c 8 Jul 2006 09:50:41 -0000
***************
*** 16522,16527 ****
--- 16522,16528 ----
{
struct it it;
struct face *face;
+ Lisp_Object match_data;
int count = SPECPDL_INDEX ();
init_iterator (&it, w, -1, -1, NULL, face_id);
***************
*** 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);
pop_frame_kboard ();
unbind_to (count, Qnil);