aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-02-23 22:17:05 +0000
committerDave Love2000-02-23 22:17:05 +0000
commitb2e60475383b5efd691b2e591e20f31df9d5f412 (patch)
treef8289a9adbb00670996b0cdaab429f1a30d40c69
parent3247de96ce43017a61e433f8c7ed99fb4710f38a (diff)
downloademacs-b2e60475383b5efd691b2e591e20f31df9d5f412.tar.gz
emacs-b2e60475383b5efd691b2e591e20f31df9d5f412.zip
(gud-jdb-build-class-source-alist): Prepend space to scratch buffer
name. (gud-format-command): Use int-to-string in ?l case. Simplify slightly.
-rw-r--r--lisp/gud.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/gud.el b/lisp/gud.el
index 2cddf1a3f53..67aa59c7b88 100644
--- a/lisp/gud.el
+++ b/lisp/gud.el
@@ -1761,7 +1761,7 @@ The file names should be absolute, or relative to the current directory.")
1761;; holding their definitions. SOURCES holds a list of all the source 1761;; holding their definitions. SOURCES holds a list of all the source
1762;; files to examine. 1762;; files to examine.
1763(defun gud-jdb-build-class-source-alist (sources) 1763(defun gud-jdb-build-class-source-alist (sources)
1764 (setq gud-jdb-analysis-buffer (get-buffer-create "*gud-jdb-scratch*")) 1764 (setq gud-jdb-analysis-buffer (get-buffer-create " *gud-jdb-scratch*"))
1765 (prog1 1765 (prog1
1766 (apply 1766 (apply
1767 'nconc 1767 'nconc
@@ -2326,18 +2326,17 @@ Obeying it means displaying in another window the specified file and line."
2326 (setq subst (if insource 2326 (setq subst (if insource
2327 (save-excursion 2327 (save-excursion
2328 (beginning-of-line) 2328 (beginning-of-line)
2329 (save-restriction (widen) 2329 (save-restriction
2330 (1+ (count-lines 1 (point))))) 2330 (widen)
2331 (int-to-string (1+ (count-lines 1 (point))))))
2331 (cdr frame)))) 2332 (cdr frame))))
2332 ((eq key ?e) 2333 ((eq key ?e)
2333 (setq subst (gud-find-c-expr))) 2334 (setq subst (gud-find-c-expr)))
2334 ((eq key ?a) 2335 ((eq key ?a)
2335 (setq subst (gud-read-address))) 2336 (setq subst (gud-read-address)))
2336 ((eq key ?p) 2337 ((eq key ?p)
2337 (setq subst (if arg (int-to-string arg) "")))) 2338 (setq subst (if arg (int-to-string arg)))))
2338 (setq result (concat result 2339 (setq result (concat result (match-string 1 str) subst)))
2339 (substring str (match-beginning 1) (match-end 1))
2340 subst)))
2341 (setq str (substring str (match-end 2)))) 2340 (setq str (substring str (match-end 2))))
2342 ;; There might be text left in STR when the loop ends. 2341 ;; There might be text left in STR when the loop ends.
2343 (concat result str))) 2342 (concat result str)))