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

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

bug#43617: 27.1; Define-minor-mode keybindings not get precedence over g


From: Lars Ingebrigtsen
Subject: bug#43617: 27.1; Define-minor-mode keybindings not get precedence over global keymap
Date: Sat, 26 Sep 2020 16:09:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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






reply via email to

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