branch: elpa/cider
commit 450cfeb1ca0989162fa8262af584c19fce4b27c9
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Restore the cider-profile-map prefix keymap
    
    The profiling commands moved to the `cider-profile-menu' transient on
    `C-c C-=', but unlike every other transient migration this cycle
    (cider-ns-map, cider-eval-commands-map, cider-doc-map,
    cider-macroexpand-map, cider-insert-commands-map - all still defvar'd),
    `cider-profile-map' was deleted outright. That silently broke configs
    that bound the prefix or added keys into it (void-variable).
    
    Restore the map, defined but not bound into `cider-mode-map' (the
    transient owns `C-c C-=' now), matching its retained siblings.
---
 lisp/cider-profile.el | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/lisp/cider-profile.el b/lisp/cider-profile.el
index 2049108d84..97141dda44 100644
--- a/lisp/cider-profile.el
+++ b/lisp/cider-profile.el
@@ -42,6 +42,22 @@
     ["Clear data" cider-profile-clear])
   "CIDER profiling submenu (for the menu bar).")
 
+;;;###autoload (autoload 'cider-profile-map "cider-profile" "CIDER profiling 
keymap." nil 'keymap)
+(defvar cider-profile-map
+  (let ((map (define-prefix-command 'cider-profile-map)))
+    (define-key map (kbd "t") #'cider-profile-toggle)
+    (define-key map (kbd "C-t") #'cider-profile-toggle)
+    (define-key map (kbd "c") #'cider-profile-clear)
+    (define-key map (kbd "C-c") #'cider-profile-clear)
+    (define-key map (kbd "s") #'cider-profile-summary)
+    (define-key map (kbd "C-s") #'cider-profile-summary)
+    (define-key map (kbd "n") #'cider-profile-ns-toggle)
+    (define-key map (kbd "C-n") #'cider-profile-ns-toggle)
+    map)
+  "CIDER profiler keymap, grouping the profiling commands.
+No longer bound by default - `C-c C-=' opens `cider-profile-menu' instead - but
+retained so existing user bindings into this prefix keep working.")
+
 ;;;###autoload (autoload 'cider-profile-menu "cider-profile" "Menu for CIDER's 
profiling commands." t)
 (transient-define-prefix cider-profile-menu ()
   "Transient menu for CIDER's profiling commands."

Reply via email to