all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug in menu-bar-make-mm-toggle?
@ 2002-09-15 18:03 Luc Teirlinck
  2002-09-15 19:31 ` Luc Teirlinck
  2002-09-16 15:16 ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: Luc Teirlinck @ 2002-09-15 18:03 UTC (permalink / raw)
  Cc: hattons

From one of my earlier messages:

   Steven T. Hattonn wrote:

      When I open an elisp file and select Options->Syntax Highlighting,
      I get an error message in the echo area saying: "Wrong type
      argument: commandp, (quote global-font-lock-mode)"

      The SuSE built emacs works find in the same user environment.

   In my previous reply, I believe I forgot to read this last sentence.
   This behavior is definitely a recently introduced bug.  The bug does
   not occur in emacs-21.2.90 -q.

The problem not only occurs for Syntax Highlighting, but also for the
two options directly below it.

I believe menu-bar-make-mm-toggle is the culprit.  The following is a
macroexpansion of actual code in menu-bar.el:

===File ~/menu-bar-stuff====================================
*** Welcome to IELM ***  Type (describe-mode) for help.
ELISP> (macroexpand '(menu-bar-make-mm-toggle global-font-lock-mode
					      "Syntax Highlighting"
					      "Colorize text based on language syntax (Global Font Lock mode)"))
'(menu-item "Syntax Highlighting" 'global-font-lock-mode :help "Colorize text based on language syntax (Global Font Lock mode)" :button
	    (:toggle and
		     (default-boundp 'global-font-lock-mode)
		     (default-value 'global-font-lock-mode)))

ELISP> 
============================================================

'(menu-item "Syntax Highlighting" 'global-font-lock-mode

I do not believe that global-font-lock-mode is supposed to be quoted
here.  I believe this explains the bug.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-16 16:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-15 18:03 Bug in menu-bar-make-mm-toggle? Luc Teirlinck
2002-09-15 19:31 ` Luc Teirlinck
2002-09-15 19:43   ` Luc Teirlinck
2002-09-15 21:07     ` Luc Teirlinck
2002-09-16 15:16 ` Richard Stallman
2002-09-16 16:03   ` Luc Teirlinck

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.