From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Debugger and mode-line Date: 08 Jul 2006 05:53:56 -0400 Message-ID: References: <44A2B0A0.8060601@soem.dk> <44A3F003.4010802@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152352458 4564 80.91.229.2 (8 Jul 2006 09:54:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Jul 2006 09:54:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 08 11:54:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fz9Vp-0003ZQ-KO for ged-emacs-devel@m.gmane.org; Sat, 08 Jul 2006 11:54:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fz9Vp-0003Tf-8n for ged-emacs-devel@m.gmane.org; Sat, 08 Jul 2006 05:54:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fz9Vf-0003Ta-3Q for emacs-devel@gnu.org; Sat, 08 Jul 2006 05:53:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fz9Vd-0003TO-FD for emacs-devel@gnu.org; Sat, 08 Jul 2006 05:53:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fz9Vd-0003TL-Cw for emacs-devel@gnu.org; Sat, 08 Jul 2006 05:53:57 -0400 Original-Received: from [67.59.132.6] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fz9WF-0007er-9M for emacs-devel@gnu.org; Sat, 08 Jul 2006 05:54:35 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.50) id 1Fz9Vc-0007W8-G4 for emacs-devel@gnu.org; Sat, 08 Jul 2006 05:53:56 -0400 Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56775 Archived-At: Richard Stallman 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);