From: "Drew Adams" <drew.adams@oracle.com>
To: 6334@debbugs.gnu.org
Subject: bug#6334: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error
Date: Wed, 2 Jun 2010 14:42:45 -0700 [thread overview]
Message-ID: <ED762C989B7D49E7903F9A9E4AC97591@us.oracle.com> (raw)
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'
next reply other threads:[~2010-06-02 21:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AcsCnIknca5GRt4nT1+ZpSXlweHjjg==>
2010-06-02 21:42 ` Drew Adams [this message]
2010-07-27 1:38 ` bug#6334: 24.0.50; both examples in (elisp) Defining Minor Modes raise an error Juanma Barranquero
2010-07-27 4:44 ` Sven Joachim
2010-07-27 16:15 ` Juanma Barranquero
2010-07-27 11:26 ` Štěpán Němec
2010-07-27 16:18 ` Juanma Barranquero
2010-07-27 17:00 ` Štěpán Němec
2010-07-27 17:08 ` Juanma Barranquero
2010-07-27 20:22 ` David De La Harpe Golden
2010-07-27 22:41 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ED762C989B7D49E7903F9A9E4AC97591@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=6334@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).