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

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

[elpa] externals/dape 480bcd14f8 017/123: Improve REPL welcome message


From: ELPA Syncer
Subject: [elpa] externals/dape 480bcd14f8 017/123: Improve REPL welcome message
Date: Tue, 5 Dec 2023 03:57:57 -0500 (EST)

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

    Improve REPL welcome message
---
 dape.el | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/dape.el b/dape.el
index 3bc3ab1bab..efd43eca2e 100644
--- a/dape.el
+++ b/dape.el
@@ -1973,8 +1973,20 @@ Buffer contains debug session information."
                         'comint-output-filter)
     (comint-output-filter (get-buffer-process (current-buffer))
                           (format
-                           "\nWelcome to Dape REPL\n%s\n> "
-                           (pp-to-string dape--config)))))
+                           "Welcome to Dape REPL!
+Available Dape commands: %s
+Empty string will rerun last command.\n\n\n> "
+                           (mapconcat 'identity
+                                      (mapcar (lambda (cmd)
+                                                (let ((str (car cmd)))
+                                                  (if dape-repl-use-shorthand
+                                                      (concat "["
+                                                              (substring str 0 
1)
+                                                              "]"
+                                                              (substring str 
1))
+                                                    str)))
+                                              dape-repl-commands)
+                                      ", ")))))
 
 (defun dape-repl ()
   "Create or select *dape-repl* buffer."



reply via email to

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