[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6a5c71d 112/215: Merge pull request #80 from cpitclaudel/m
From: |
Rocky Bernstein |
Subject: |
[elpa] master 6a5c71d 112/215: Merge pull request #80 from cpitclaudel/master |
Date: |
Sat, 30 Jul 2016 14:48:58 +0000 (UTC) |
branch: master
commit 6a5c71d86a24221f5eb56f6197e562c4de47ceb7
Merge: 76cb0d4 b346e13
Author: R. Bernstein <address@hidden>
Commit: R. Bernstein <address@hidden>
Merge pull request #80 from cpitclaudel/master
Improve completion and default value in realgud-query-cmdline
---
realgud/common/core.el | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/realgud/common/core.el b/realgud/common/core.el
index cecd5ee..ad86499 100644
--- a/realgud/common/core.el
+++ b/realgud/common/core.el
@@ -47,13 +47,12 @@ Otherwise, just return FILENAME."
)
(defun realgud-suggest-invocation
- (debugger-name minibuffer-history lang-str lang-ext-regexp
+ (debugger-name _minibuffer-history lang-str lang-ext-regexp
&optional last-resort)
"Suggest a debugger command invocation. If the current buffer
is a source file or process buffer previously set, then use the
value of that the command invocations found by buffer-local
-variables. Next, try to use the first value of MINIBUFFER-HISTORY
-if that exists. Finally we try to find a suitable program file
+variables. Otherwise, we try to find a suitable program file
using LANG-STR and LANG-EXT-REGEXP."
(let* ((buf (current-buffer))
(filename)
@@ -62,12 +61,11 @@ using LANG-STR and LANG-EXT-REGEXP."
(cond
((and cmd-str-cmdbuf (equal debugger-name (realgud-cmdbuf-debugger-name
buf)))
cmd-str-cmdbuf)
- ((and minibuffer-history (listp minibuffer-history))
- (car minibuffer-history))
((setq filename (realgud:suggest-file-from-buffer lang-str))
- (concat debugger-name " " filename))
+ (concat debugger-name " " (shell-quote-argument filename)))
(t (concat debugger-name " "
- (realgud-suggest-lang-file lang-str lang-ext-regexp
last-resort)))
+ (shell-quote-argument
+ (realgud-suggest-lang-file lang-str lang-ext-regexp
last-resort))))
)))
(defun realgud-query-cmdline
@@ -86,11 +84,9 @@ We also set filename completion and use a history of the
prior
dbgr invocations "
(let ((debugger (or opt-debugger
(realgud-sget 'srcbuf-info 'debugger-name))))
- (read-from-minibuffer
+ (read-shell-command
(format "Run %s (like this): " debugger) ;; prompt string
(funcall suggest-invocation-fn debugger) ;; initial value
- minibuffer-local-map ;; keymap
- nil ;; read - use default value
minibuffer-history ;; history variable
)))
- [elpa] master 2facb99 075/215: init.el: break and clear command use %X rather than %l, (continued)
- [elpa] master 2facb99 075/215: init.el: break and clear command use %X rather than %l, Rocky Bernstein, 2016/07/30
- [elpa] master 7edc244 063/215: wrong args in jdb invocation; issue #51. Disable some jdb commands we, Rocky Bernstein, 2016/07/30
- [elpa] master ca52896 071/215: A workaround: reinitialize shell mode when going out of realgud-track-mode, Rocky Bernstein, 2016/07/30
- [elpa] master eee3112 089/215: track.el: Allow us to separate stem variable name to get debugger config from debugger name. This will make it easier, Rocky Bernstein, 2016/07/30
- [elpa] master 1eda9a1 076/215: Partially addresses #61. Handling multiple breakpoints on a line still, Rocky Bernstein, 2016/07/30
- [elpa] master a216bf0 084/215: Last commit set wrong variables, Rocky Bernstein, 2016/07/30
- [elpa] master 1420ff1 096/215: ipdb: add hook for completion to initialization, Rocky Bernstein, 2016/07/30
- [elpa] master 924969d 095/215: ipdb: add tab completion, Rocky Bernstein, 2016/07/30
- [elpa] master 518dccd 070/215: Merge branch 'master' of github.com:rocky/emacs-dbgr, Rocky Bernstein, 2016/07/30
- [elpa] master 30398e1 099/215: ipdb: add test, Rocky Bernstein, 2016/07/30
- [elpa] master 6a5c71d 112/215: Merge pull request #80 from cpitclaudel/master,
Rocky Bernstein <=
- [elpa] master 5bcb424 082/215: Add Kilian, Rocky Bernstein, 2016/07/30
- [elpa] master 75737a0 121/215: Merge pull request #90 from cpitclaudel/82-add-prefix-arg-to-c, Rocky Bernstein, 2016/07/30
- [elpa] master e8fc998 116/215: Merge pull request #85 from cpitclaudel/84-pdb-fixes, Rocky Bernstein, 2016/07/30
- [elpa] master 0cf9321 125/215: Small fixes in cmds.el, Rocky Bernstein, 2016/07/30
- [elpa] master 8c8f9f1 093/215: Not sure why this initialization was there, but it is syntactically, Rocky Bernstein, 2016/07/30
- [elpa] master 6a87f3c 097/215: ipdb: add tab completion to track-mode, Rocky Bernstein, 2016/07/30
- [elpa] master cfe2be3 107/215: Reinstate ipdb support, Rocky Bernstein, 2016/07/30
- [elpa] master d15f90a 132/215: Prepare for refactoring of realgud-cmd, Rocky Bernstein, 2016/07/30
- [elpa] master a1deb86 145/215: Show default buffer when automatically attaching, Rocky Bernstein, 2016/07/30
- [elpa] master 949ed38 110/215: fake realgud:run-process better, Rocky Bernstein, 2016/07/30