emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: tabbar-mode breaks debugging with match data


From: David PONCE
Subject: Re: tabbar-mode breaks debugging with match data
Date: Mon, 14 Mar 2005 09:33:20 +0100 (CET)

Hi Stephen,

[...]
> I don't have time right now to debug tabbar.el, so I hope David
> reads this and is able to find the bug.  I make heavy use of
> tabbar.el and think it would make a very good contribution to Emacs
> -- when this bug is fixed!

Please, could you try the following patch to tabbar.el 1.46 and see if
it fixes the problem?

Thanks for your report, and for using the tab bar ;-)
Sincerely,
David

Index: tabbar.el
===================================================================
RCS file: /cvsroot/emhacks/emhacks/tabbar.el,v
retrieving revision 1.46
diff -c -r1.46 tabbar.el
*** tabbar.el   24 Feb 2005 11:20:00 -0000      1.46
--- tabbar.el   14 Mar 2005 08:26:15 -0000
***************
*** 1470,1476 ****
        )
       (t
        (list
!        (if (and (stringp mode-name) (string-match "[^ ]" mode-name))
             mode-name
           (symbol-name major-mode)))
        )
--- 1470,1481 ----
        )
       (t
        (list
!        ;; Return `mode-name' if not blank, `major-mode' otherwise.
!        (if (and (stringp mode-name)
!                 ;; Take care of preserving the match-data because this
!                 ;; function is called when updating the header line.
!                 (save-match-data
!                   (string-match "[^ ]" mode-name)))
             mode-name
           (symbol-name major-mode)))
        )






reply via email to

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