diff options
| author | Nick Roberts | 2005-06-24 01:31:50 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-06-24 01:31:50 +0000 |
| commit | 823d223503f66705bfb2f8032d56bc9bb66524ca (patch) | |
| tree | 1dfcb07d8481a5449c089f48e300eb0250cec393 | |
| parent | 1c95554235c12aad372b59724115a6252bf7044d (diff) | |
| download | emacs-823d223503f66705bfb2f8032d56bc9bb66524ca.tar.gz emacs-823d223503f66705bfb2f8032d56bc9bb66524ca.zip | |
(gud-tooltip-print-command): Indent properly.
(gud-gdb-marker-filter): Use font-lock-warning-face for any
initial error.
| -rw-r--r-- | lisp/progmodes/gud.el | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 7d4fc00cd56..c6e85934db4 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -497,18 +497,24 @@ off the specialized speedbar mode." | |||
| 497 | ;; Check for annotations and change gud-minor-mode to 'gdba if | 497 | ;; Check for annotations and change gud-minor-mode to 'gdba if |
| 498 | ;; they are found. | 498 | ;; they are found. |
| 499 | (while (string-match "\n\032\032\\(.*\\)\n" gud-marker-acc) | 499 | (while (string-match "\n\032\032\\(.*\\)\n" gud-marker-acc) |
| 500 | (when (string-equal (match-string 1 gud-marker-acc) "prompt") | 500 | (let ((match (match-string 1 gud-marker-acc))) |
| 501 | (require 'gdb-ui) | 501 | (when (string-equal match "prompt") |
| 502 | (gdb-prompt nil)) | 502 | (require 'gdb-ui) |
| 503 | 503 | (gdb-prompt nil)) | |
| 504 | (setq | 504 | |
| 505 | ;; Append any text before the marker to the output we're going | 505 | (setq |
| 506 | ;; to return - we don't include the marker in this text. | 506 | ;; Append any text before the marker to the output we're going |
| 507 | output (concat output | 507 | ;; to return - we don't include the marker in this text. |
| 508 | (substring gud-marker-acc 0 (match-beginning 0))) | 508 | output (concat output |
| 509 | 509 | (substring gud-marker-acc 0 (match-beginning 0))) | |
| 510 | ;; Set the accumulator to the remaining text. | 510 | |
| 511 | gud-marker-acc (substring gud-marker-acc (match-end 0)))) | 511 | ;; Set the accumulator to the remaining text. |
| 512 | |||
| 513 | gud-marker-acc (substring gud-marker-acc (match-end 0))) | ||
| 514 | (if (string-equal match "error-begin") | ||
| 515 | (put-text-property 0 (length gud-marker-acc) | ||
| 516 | 'face font-lock-warning-face | ||
| 517 | gud-marker-acc)))) | ||
| 512 | 518 | ||
| 513 | ;; Does the remaining text look like it might end with the | 519 | ;; Does the remaining text look like it might end with the |
| 514 | ;; beginning of another marker? If it does, then keep it in | 520 | ;; beginning of another marker? If it does, then keep it in |
| @@ -3256,11 +3262,11 @@ If GUD-TOOLTIP-DEREFERENCE is t, also prepend a `*' to EXPR." | |||
| 3256 | (when gud-tooltip-dereference | 3262 | (when gud-tooltip-dereference |
| 3257 | (setq expr (concat "*" expr))) | 3263 | (setq expr (concat "*" expr))) |
| 3258 | (case gud-minor-mode | 3264 | (case gud-minor-mode |
| 3259 | (gdba (concat "server print " expr)) | 3265 | (gdba (concat "server print " expr)) |
| 3260 | ((dbx gdbmi) (concat "print " expr)) | 3266 | ((dbx gdbmi) (concat "print " expr)) |
| 3261 | (xdb (concat "p " expr)) | 3267 | (xdb (concat "p " expr)) |
| 3262 | (sdb (concat expr "/")) | 3268 | (sdb (concat expr "/")) |
| 3263 | (perldb expr))) | 3269 | (perldb expr))) |
| 3264 | 3270 | ||
| 3265 | (defun gud-tooltip-tips (event) | 3271 | (defun gud-tooltip-tips (event) |
| 3266 | "Show tip for identifier or selection under the mouse. | 3272 | "Show tip for identifier or selection under the mouse. |