emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/dape 4096d714a0 3/3: Fix formatting


From: ELPA Syncer
Subject: [elpa] externals/dape 4096d714a0 3/3: Fix formatting
Date: Wed, 11 Sep 2024 15:57:52 -0400 (EDT)

branch: externals/dape
commit 4096d714a05a0d4af67c89184ed61318cd28309a
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>

    Fix formatting
---
 dape.el | 47 +++++++++++++++++++++++++----------------------
 1 file changed, 25 insertions(+), 22 deletions(-)

diff --git a/dape.el b/dape.el
index a67b6509c9..97ff4583af 100644
--- a/dape.el
+++ b/dape.el
@@ -5211,28 +5211,31 @@ See `dape--config-mode-p' how \"valid\" is defined."
           (add-hook 'after-change-functions
                     #'dape--minibuffer-hint nil t)
           (dape--minibuffer-hint))
-      (pcase-let* ((str
-                    (let ((history-add-new-input nil))
-                      (read-from-minibuffer
-                       "Run adapter: "
-                       initial-contents
-                       (let ((map (make-sparse-keymap)))
-                         (set-keymap-parent map minibuffer-local-map)
-                         (define-key map (kbd "C-M-i") #'completion-at-point)
-                         (define-key map "\t" #'completion-at-point)
-                         (define-key map (kbd "C-c C-k")
-                                     (lambda ()
-                                       (interactive)
-                                       (pcase-let* ((str (buffer-substring 
(minibuffer-prompt-end)
-                                                                           
(point-max)))
-                                                    (`(,key) 
(dape--config-from-string str t)))
-                                         (delete-region 
(minibuffer-prompt-end) (point-max))
-                                         (insert (format "%s" key) " "))))
-                         map)
-                       nil 'dape-history initial-contents)))
-                   (`(,key ,config)
-                    (dape--config-from-string (substring-no-properties str) t))
-                   (evaled-config (dape--config-eval key config)))
+      (pcase-let*
+          ((str
+            (let ((history-add-new-input nil))
+              (read-from-minibuffer
+               "Run adapter: "
+               initial-contents
+               (let ((map (make-sparse-keymap)))
+                 (set-keymap-parent map minibuffer-local-map)
+                 (define-key map (kbd "C-M-i") #'completion-at-point)
+                 (define-key map "\t" #'completion-at-point)
+                 (define-key map (kbd "C-c C-k")
+                             (lambda ()
+                               (interactive)
+                               (pcase-let*
+                                   ((str (buffer-substring 
(minibuffer-prompt-end)
+                                                           (point-max)))
+                                    (`(,key) (dape--config-from-string str t)))
+                                 (delete-region (minibuffer-prompt-end)
+                                                (point-max))
+                                 (insert (format "%s" key) " "))))
+                 map)
+               nil 'dape-history initial-contents)))
+           (`(,key ,config)
+            (dape--config-from-string (substring-no-properties str) t))
+           (evaled-config (dape--config-eval key config)))
         (setq dape-history
               (cons (dape--config-to-string key evaled-config)
                     dape-history))



reply via email to

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