[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape ee2aaad60f 038/123: Invoke customize-variable if d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape ee2aaad60f 038/123: Invoke customize-variable if dape-configs is null |
Date: |
Tue, 5 Dec 2023 03:57:59 -0500 (EST) |
branch: externals/dape
commit ee2aaad60f29077648b55a4832cddbfd1aea5cd6
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Invoke customize-variable if dape-configs is null
Suggested by Philip Kaluderic
---
dape.el | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/dape.el b/dape.el
index 0375b79b86..6e3295c463 100644
--- a/dape.el
+++ b/dape.el
@@ -2320,22 +2320,24 @@ If SKIP-FUNCTIONS function values are not called during
evaluation."
(defun dape--read-config ()
"Read config name and options."
- (let ((candidate
- (completing-read "Dape config: "
- (append
- (mapcan
- (lambda (name-config)
- (let* ((config (cdr name-config))
- (modes (plist-get config 'modes)))
- (when (apply 'provided-mode-derived-p
major-mode modes)
- (list (car name-config)))))
- dape-configs)
- dape--config-history)
- nil nil nil 'dape-history)))
- (if-let ((config
- (alist-get (intern candidate) dape-configs)))
- (list (intern candidate) config)
- (dape--config-from-string candidate))))
+ (if (null dape-configs)
+ (customize-variable 'dape-configs)
+ (let ((candidate
+ (completing-read "Dape config: "
+ (append
+ (mapcan
+ (lambda (name-config)
+ (let* ((config (cdr name-config))
+ (modes (plist-get config 'modes)))
+ (when (apply 'provided-mode-derived-p
major-mode modes)
+ (list (car name-config)))))
+ dape-configs)
+ dape--config-history)
+ nil nil nil 'dape-history)))
+ (if-let ((config
+ (alist-get (intern candidate) dape-configs)))
+ (list (intern candidate) config)
+ (dape--config-from-string candidate)))))
;;; Hover
- [elpa] externals/dape c780c6f1e2 013/123: Fix crash when % is present in log and expression breakpoints, (continued)
- [elpa] externals/dape c780c6f1e2 013/123: Fix crash when % is present in log and expression breakpoints, ELPA Syncer, 2023/12/05
- [elpa] externals/dape e314b97bc1 016/123: Refactor update and update ui, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 480bcd14f8 017/123: Improve REPL welcome message, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 57d3f6e1ff 024/123: Fix typo, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 20a8e99c24 018/123: Fix indentation, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 1ed319ba5f 020/123: Reword repl welcome message, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3e51a71f52 034/123: Fixup readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 60283647ff 035/123: Fixup suggestions from emacs-devel, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ffaa4278cd 036/123: Fix checkdoc issues, ELPA Syncer, 2023/12/05
- [elpa] externals/dape de1508f4b3 037/123: Change to old style of keymap define with defvar, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ee2aaad60f 038/123: Invoke customize-variable if dape-configs is null,
ELPA Syncer <=
- [elpa] externals/dape a23bcb8e66 040/123: Add naively inline variable overlays, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2a478560e9 052/123: Move breakpoint indications into the buffer margin #2, ELPA Syncer, 2023/12/05
- [elpa] externals/dape beaaca9c77 053/123: Fix missing server std out/err in debug buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ad8d8797fa 054/123: Fix missing newline for "stopped" event description, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 9eebb3c246 055/123: Fix missing newline from compilation failed msg, ELPA Syncer, 2023/12/05
- [elpa] externals/dape d6d79670f7 056/123: Slight rework of dape--read-config, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cbbb807604 050/123: Fix type in readme cppdbg adapter example #3, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ae98178a3e 064/123: Improve repl when adapter process non live, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 1d0cdcc466 070/123: Fix dape.el header #13, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 4a97094b10 077/123: Kill adapter on terminate event, ELPA Syncer, 2023/12/05