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

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

[Emacs-bug-tracker] bug#6334: closed (24.0.50; both examples in (elisp)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#6334: closed (24.0.50; both examples in (elisp) Defining Minor Modes raise an error)
Date: Tue, 27 Jul 2010 01:39:02 +0000

Your message dated Tue, 27 Jul 2010 03:38:32 +0200
with message-id <address@hidden>
and subject line Re: bug#6334: 24.0.50; both examples in (elisp) Defining Minor 
Modes  raise an error
has caused the GNU bug report #6334,
regarding 24.0.50; both examples in (elisp) Defining Minor Modes raise an error
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6334: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6334
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error Date: Wed, 2 Jun 2010 14:42:45 -0700
emacs -Q
 
Try evaluating either of these examples from (elisp) Defining Minor
Modes:
 
(define-minor-mode hungry-mode
       "Toggle Hungry mode.
     With no argument, this command toggles the mode.
     Non-null prefix argument turns on the mode.
     Null prefix argument turns off the mode.
 
     When Hungry mode is enabled, the control delete key
     gobbles all preceding whitespace except the last.
     See the command \\[hungry-electric-delete]."
      ;; The initial value.
      nil
      ;; The indicator for the mode line.
      " Hungry"
      ;; The minor mode bindings.
      '(("\C-\^?" . hungry-electric-delete))
      :group 'hunger)
 
(define-minor-mode hungry-mode
       "Toggle Hungry mode.
     With no argument, this command toggles the mode.
     Non-null prefix argument turns on the mode.
     Null prefix argument turns off the mode.
 
     When Hungry mode is enabled, the control delete key
     gobbles all preceding whitespace except the last.
     See the command \\[hungry-electric-delete]."
      ;; The initial value.
      :init-value nil
      ;; The indicator for the mode line.
      :lighter " Hungry"
      ;; The minor mode bindings.
      :keymap
      '(("\C-\^?" . hungry-electric-delete)
        ("\C-\M-\^?"
         . (lambda ()
             (interactive)
             (hungry-electric-delete t))))
      :group 'hunger)
 
Both raise this error:
 
Debugger entered--Lisp error: (error "Invalid modifier in string")
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-05-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
 




--- End Message ---
--- Begin Message --- Subject: Re: bug#6334: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error Date: Tue, 27 Jul 2010 03:38:32 +0200
On Wed, Jun 2, 2010 at 23:42, Drew Adams <address@hidden> wrote:

> Debugger entered--Lisp error: (error "Invalid modifier in string")

I've fixed it using C-delete and C-M-delete (which are clearer anyway)
in the examples.

    Juanma


--- End Message ---

reply via email to

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