GNU bug report logs - #43617
27.1; Define-minor-mode keybindings not get precedence over global keymap

Previous Next

Package: emacs;

Reported by: dalanicolai <at> gmail.com

Date: Fri, 25 Sep 2020 18:11:02 UTC

Severity: normal

Tags: notabug

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: dalanicolai <at> gmail.com
Cc: 43617 <at> debbugs.gnu.org
Subject: bug#43617: 27.1; Define-minor-mode keybindings not get precedence over global  keymap
Date: Sat, 26 Sep 2020 16:09:38 +0200
Ah, it just works for "j" by accident -- define-minor-mode does not
evaluate anything in the keymap form.

So there's no bug here in define-minor-mode, but the here is wrong.  It
should be:

(define-minor-mode pdf-continuous-scroll-mode-5
  "Emulate continuous scroll with two synchronized buffers"
  nil
  " Continuous"
  `((,(kbd "j") . (lambda () (interactive) (print "pushed j")))
    (,(kbd "C-n") . (lambda () (interactive)(print "pushed C-n"))))
  (print "toggled minor mode"))

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





This bug report was last modified 4 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.