Subject: bug#6334: closed (Re: bug#6334: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 27 Jul 2010 01:39:02 +0000

Your bug report

#6334: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
6334: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6334
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#6334: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error
From: Juanma Barranquero <[email-masked]>
To: Drew Adams <[email-masked]>
Cc: [email-masked]
Date: Tue, 27 Jul 2010 03:38:32 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On Wed, Jun 2, 2010 at 23:42, Drew Adams <[email-masked]> 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

Subject: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error
From: "Drew Adams" <[email-masked]>
To: <[email-masked]>
Date: Wed, 2 Jun 2010 14:42:45 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

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'