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

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

[patch] tcl.el, bad imenu regexp


From: Benjamin Riefenstahl
Subject: [patch] tcl.el, bad imenu regexp
Date: Wed, 04 Jun 2003 16:22:48 +0200

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


With CVS as of yesterday: An error occurs when reading a Tcl file with
imenu enabled i.e. with this customization:

  (add-hook 'tcl-mode-hook 'imenu-add-menubar-index)

The error says that the variable imenu-generic-expression doesn't have
list type, instead it contains the symbol
tcl-imenu-generic-expression.  Indeed this is the case and changing
tcl.el as in the patch below fixes the problem.  Use of
tcl-imenu-generic-expression in tcl.el is very simple, so it doesn't
look to me like there are any side-effects to this patch.


2003-06-04  Benjamin Riefenstahl  <address@hidden>

        * progmodes/tcl.el: Set imenu-generic-expression to the value of
        tcl-imenu-generic-expression instead of the symbol. 

>>>>>>
*** tcl.el.~1.74.~      Tue Jun  3 21:42:22 2003
--- tcl.el      Wed Jun  4 16:07:00 2003
***************
*** 549,555 ****
         (parse-sexp-lookup-properties . t)))
  
    (set (make-local-variable 'imenu-generic-expression)
!        'tcl-imenu-generic-expression)
  
    ;; Settings for new dabbrev code.
    (set (make-local-variable 'dabbrev-case-fold-search) nil)
--- 549,555 ----
         (parse-sexp-lookup-properties . t)))
  
    (set (make-local-variable 'imenu-generic-expression)
!        tcl-imenu-generic-expression)
  
    ;; Settings for new dabbrev code.
    (set (make-local-variable 'dabbrev-case-fold-search) nil)
<<<<<<


In GNU Emacs 21.3.50.1 (powerpc-unknown-linux-gnu, X toolkit)
 of 2003-06-04 on seneca.benny.turtle-trading.net
configured using `configure '--without-toolkit-scroll-bars''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t





reply via email to

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