Debian Bug report logs -
#63920
xemacs21 foldout: cannot load - Invalid (FSF Emacs) key format [PATCH]
Reported by: Yann Dirson <dirson@debian.org>
Date: Thu, 11 May 2000 00:48:01 UTC
Severity: normal
Found in version 21.1.8-2
Done: James LewisMoss <dres@phoenixdsl.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, James LewisMoss <dres@debian.org>:
Bug#63920; Package xemacs21-support.
(full text, mbox, link).
Acknowledgement sent to dwitch <ydirson@altern.org>:
New Bug report received and forwarded. Copy sent to James LewisMoss <dres@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: xemacs21-support
Version: 21.1.8-2
Severity: normal
When loading "foldout", I invariably get a fatal error:
Signaling: (error "Invalid (FSF Emacs) key format (see doc of define-key)" M-C-down-mouse-1)
define-key(#<keymap text-mode-map 3 entries 0x227c> [M-C-down-mouse-1] foldout-mouse-zoom)
byte-code("..." [foldout-inhibit-key-bindings define-key outline-mode-map "" foldout-zoom-subtree "" foldout-exit-fold outline-minor-mode-map outline-minor-mode-prefix "" "" apply concat mapcar #<compiled-function (modifier) "...(56)" [vector modifier shift ?S control ?C meta ?M alt ?A hyper ?H super ?s error "invalid mouse modifier %s" ?\-] 4> foldout-mouse-modifiers modifiers vector intern "down-mouse-1" mouse-1 "down-mouse-2" mouse-2 "down-mouse-3" mouse-3 foldout-mouse-zoom foldout-mouse-show foldout-mouse-hide-or-exit provide foldout] 5)
load-internal("foldout" nil nil nil nil nil)
load("foldout")
#<compiled-function (library) "...(4)" [load library] 2 814382 (list (read-library "Load Library: " load-path nil nil nil ...))>("foldout")
call-interactively(load-library)
command-execute(load-library t)
execute-extended-command(nil)
call-interactively(execute-extended-command)
The problem is with the following fragment, at the end of the file:
(let* ((modifiers (apply 'concat
(mapcar (function
(lambda (modifier)
(vector
(cond
((eq modifier 'shift) ?S)
((eq modifier 'control) ?C)
((eq modifier 'meta) ?M)
((eq modifier 'alt) ?A)
((eq modifier 'hyper) ?H)
((eq modifier 'super) ?s)
(t (error "invalid mouse modifier %s"
modifier)))
?-)))
foldout-mouse-modifiers)))
(mouse-1 (vector (intern (concat modifiers "down-mouse-1"))))
(mouse-2 (vector (intern (concat modifiers "down-mouse-2"))))
(mouse-3 (vector (intern (concat modifiers "down-mouse-3")))))
Replacing this useless mess with the following does the trick:
(let* ((mouse-1 `(,@foldout-mouse-modifiers down-mouse-1))
(mouse-2 `(,@foldout-mouse-modifiers down-mouse-2))
(mouse-3 `(,@foldout-mouse-modifiers down-mouse-3)))
long live the macros !
-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux bylbo 2.2.14 #1 sam avr 22 03:24:31 CEST 2000 i586
Versions of packages xemacs21-support depends on:
ii emacsen-common 1.4.9 Common facilities for all emacsen.
Information forwarded to debian-bugs-dist@lists.debian.org, James LewisMoss <dres@debian.org>:
Bug#63920; Package xemacs21-support.
(full text, mbox, link).
Acknowledgement sent to James LewisMoss <dres@ioa.com>:
Extra info received and forwarded to list. Copy sent to James LewisMoss <dres@debian.org>.
(full text, mbox, link).
Message #10 received at 63920@bugs.debian.org (full text, mbox, reply):
>>>>> On Thu, 11 May 2000 02:08:40 +0200, dwitch <ydirson@altern.org> said:
ydirson> Package: xemacs21-support Version: 21.1.8-2 Severity: normal
ydirson> When loading "foldout", I invariably get a fatal error:
ydirson> Signaling: (error "Invalid (FSF Emacs) key format (see doc
ydirson> of define-key)" M-C-down-mouse-1)
ydirson> define-key(#<keymap text-mode-map 3 entries 0x227c>
ydirson> [M-C-down-mouse-1] foldout-mouse-zoom) byte-code("..."
ydirson> [foldout-inhibit-key-bindings define-key outline-mode-map
ydirson> "" foldout-zoom-subtree "" foldout-exit-fold
ydirson> outline-minor-mode-map outline-minor-mode-prefix "" ""
ydirson> apply concat mapcar #<compiled-function (modifier)
ydirson> "...(56)" [vector modifier shift ?S control ?C meta ?M alt
ydirson> ?A hyper ?H super ?s error "invalid mouse modifier %s"
ydirson> ?\-] 4> foldout-mouse-modifiers modifiers vector intern
ydirson> "down-mouse-1" mouse-1 "down-mouse-2" mouse-2
ydirson> "down-mouse-3" mouse-3 foldout-mouse-zoom
ydirson> foldout-mouse-show foldout-mouse-hide-or-exit provide
ydirson> foldout] 5) load-internal("foldout" nil nil nil nil nil)
ydirson> load("foldout")
ydirson> #<compiled-function (library) "...(4)" [load library] 2
ydirson> #814382 (list (read-library "Load Library: " load-path nil
ydirson> #nil nil ...))>("foldout")
ydirson> call-interactively(load-library)
ydirson> command-execute(load-library t)
ydirson> execute-extended-command(nil)
ydirson> call-interactively(execute-extended-command)
ydirson> long live the macros !
Thanks for the bug report and patch. I'll forward upstream and see if
they like as well.
Jim
--
@James LewisMoss <dres@ioa.com> | Blessed Be!
@ http://www.ioa.com/~dres | Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach
Bug closed, send any further explanations to dwitch <ydirson@altern.org>
Request was from Yann Dirson <dirson@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Bug reopened, originator set to Yann Dirson <dirson@debian.org>.
Request was from Yann Dirson <dirson@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Reply sent to James LewisMoss <dres@phoenixdsl.com>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Yann Dirson <dirson@debian.org>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #19 received at 63920-done@bugs.debian.org (full text, mbox, reply):
--
@James LewisMoss <dres@debian.org> | Blessed Be!
@ http://jimdres.home.mindspring.com | Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 14 01:58:54 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.