~eshel/dev

Philip Kaludercic: 1
 Do not autoload keymaps

 1 files changed, 0 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eshel/dev/patches/43261/mbox | git am -3
Learn more about email & git

[PATCH] Do not autoload keymaps Export this patch

When a keymap is autoloaded (and the definition is copied over to the
-autoloads.el file), and the function are sharp-quoted, Emacs can
complain about undefined symbols, especially in combination with
'package-quickstart'.
---
 sweeprolog.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sweeprolog.el b/sweeprolog.el
index 5a5fe7a..567665d 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -541,7 +541,6 @@ for top-level buffers that don't belong to any project."
    map)
  "Local keymap for `sweeprolog-top-level-menu-mode' buffers.")

;;;###autoload
(defvar sweeprolog-help-prefix-map
  (let ((map (make-sparse-keymap)))
    (define-key map "m" #'sweeprolog-describe-module)
@@ -549,7 +548,6 @@ for top-level buffers that don't belong to any project."
    map)
  "Keymap for `sweeprolog' help commands.")

;;;###autoload
(defvar sweeprolog-prefix-map
  (let ((map (make-sparse-keymap)))
    (define-key map "B" #'sweeprolog-list-breakpoints)
-- 
2.39.2
Philip Kaludercic <philipk@posteo.net> writes: