diff options
| -rw-r--r-- | lisp/gud.el | 13 |
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))) |