]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove Emacs 24.4 compat code from which-key
authorStefan Kangas <stefankangas@gmail.com>
Sun, 3 Nov 2024 03:14:56 +0000 (04:14 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 8 Nov 2024 13:29:02 +0000 (14:29 +0100)
* lisp/which-key.el (which-key--show-page): Remove Emacs 24.4
compatibility code.

(cherry picked from commit 2a41f4ae766cf0b150cc8ec054b30e60e1a438d4)

lisp/which-key.el

index 1da9a25090fabcaad670123e129f7a4cc7042d99..1039f2427df2eb693dadceef54c973ae35c2a44a 100644 (file)
@@ -2346,10 +2346,7 @@ enough space based on your settings and frame size." prefix-keys)
           (when (cdr page-echo) (funcall (cdr page-echo)))
           (which-key--show-popup (cons height width)))))
     ;; used for paging at top-level
-    (if (fboundp 'set-transient-map)
-        (set-transient-map (which-key--get-popup-map))
-      (with-no-warnings
-        (set-temporary-overlay-map (which-key--get-popup-map))))))
+    (set-transient-map (which-key--get-popup-map))))
 
 ;;; Paging functions