diff options
| author | Miles Bader | 2005-07-29 01:54:54 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-07-29 01:54:54 +0000 |
| commit | 58b646fafc27ea5fb93fa95d5ff84187d689d315 (patch) | |
| tree | 361704f8149dccf6d1578bea3b89da11ced846f7 /lisp/progmodes | |
| parent | ffc3bd5c6c5ce65d4390c3523e4527c701a0ed95 (diff) | |
| parent | d44e3b453c528446579182d82284abbfd80f8b7d (diff) | |
| download | emacs-58b646fafc27ea5fb93fa95d5ff84187d689d315.tar.gz emacs-58b646fafc27ea5fb93fa95d5ff84187d689d315.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 493-503)
- Update from CVS
- Update from CVS: lisp/startup.el (command-line): Fix typo.
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 95-98)
- Update from CVS
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/compile.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 33 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 11 |
3 files changed, 24 insertions, 26 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index d3cbf142222..ff41a964ecc 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -377,13 +377,13 @@ you may also want to change `compilation-page-delimiter'.") | |||
| 377 | '(;; configure output lines. | 377 | '(;; configure output lines. |
| 378 | ("^[Cc]hecking \\(?:[Ff]or \\|[Ii]f \\|[Ww]hether \\(?:to \\)?\\)?\\(.+\\)\\.\\.\\. *\\(?:(cached) *\\)?\\(\\(yes\\(?: .+\\)?\\)\\|no\\|\\(.*\\)\\)$" | 378 | ("^[Cc]hecking \\(?:[Ff]or \\|[Ii]f \\|[Ww]hether \\(?:to \\)?\\)?\\(.+\\)\\.\\.\\. *\\(?:(cached) *\\)?\\(\\(yes\\(?: .+\\)?\\)\\|no\\|\\(.*\\)\\)$" |
| 379 | (1 font-lock-variable-name-face) | 379 | (1 font-lock-variable-name-face) |
| 380 | (2 (compilation-face '(4 . 3)))) | 380 | (2 font-lock-keyword-face)) |
| 381 | ;; Command output lines. Recognize `make[n]:' lines too. | 381 | ;; Command output lines. Recognize `make[n]:' lines too. |
| 382 | ("^\\([[:alnum:]_/.+-]+\\)\\(\\[\\([0-9]+\\)\\]\\)?[ \t]*:" | 382 | ("^\\([[:alnum:]_/.+-]+\\)\\(\\[\\([0-9]+\\)\\]\\)?[ \t]*:" |
| 383 | (1 font-lock-function-name-face) (3 compilation-line-face nil t)) | 383 | (1 font-lock-function-name-face) (3 compilation-line-face nil t)) |
| 384 | (" --?o\\(?:utfile\\|utput\\)?[= ]?\\(\\S +\\)" . 1) | 384 | (" --?o\\(?:utfile\\|utput\\)?[= ]?\\(\\S +\\)" . 1) |
| 385 | ("^Compilation finished" . compilation-info-face) | 385 | ("^Compilation finished" . font-lock-keyword-face) |
| 386 | ("^Compilation exited abnormally" . compilation-error-face)) | 386 | ("^Compilation exited abnormally" . font-lock-keyword-face)) |
| 387 | "Additional things to highlight in Compilation mode. | 387 | "Additional things to highlight in Compilation mode. |
| 388 | This gets tacked on the end of the generated expressions.") | 388 | This gets tacked on the end of the generated expressions.") |
| 389 | 389 | ||
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 8a426a37365..8e574e912c6 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -524,9 +524,9 @@ Also display the main routine in the disassembly buffer if present." | |||
| 524 | (setq gdb-pending-triggers | 524 | (setq gdb-pending-triggers |
| 525 | (delq 'gdb-var-update gdb-pending-triggers)) | 525 | (delq 'gdb-var-update gdb-pending-triggers)) |
| 526 | (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) | 526 | (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) |
| 527 | ;; dummy command to update speedbar at right time | 527 | ;; Dummy command to update speedbar at right time. |
| 528 | (gdb-enqueue-input (list "server pwd\n" 'gdb-speedbar-timer-fn)) | 528 | (gdb-enqueue-input (list "server pwd\n" 'gdb-speedbar-timer-fn)) |
| 529 | ;; keep gdb-pending-triggers non-nil till end | 529 | ;; Keep gdb-pending-triggers non-nil till end. |
| 530 | (push 'gdb-speedbar-timer gdb-pending-triggers))) | 530 | (push 'gdb-speedbar-timer gdb-pending-triggers))) |
| 531 | 531 | ||
| 532 | (defun gdb-speedbar-timer-fn () | 532 | (defun gdb-speedbar-timer-fn () |
| @@ -1023,7 +1023,7 @@ happens to be appropriate." | |||
| 1023 | (gdb-invalidate-threads) | 1023 | (gdb-invalidate-threads) |
| 1024 | (unless (eq system-type 'darwin) ;Breaks on Darwin's GDB-5.3. | 1024 | (unless (eq system-type 'darwin) ;Breaks on Darwin's GDB-5.3. |
| 1025 | ;; FIXME: with GDB-6 on Darwin, this might very well work. | 1025 | ;; FIXME: with GDB-6 on Darwin, this might very well work. |
| 1026 | ;; only needed/used with speedbar/watch expressions | 1026 | ;; Only needed/used with speedbar/watch expressions. |
| 1027 | (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) | 1027 | (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) |
| 1028 | (setq gdb-var-changed t) ; force update | 1028 | (setq gdb-var-changed t) ; force update |
| 1029 | (dolist (var gdb-var-list) | 1029 | (dolist (var gdb-var-list) |
| @@ -1043,9 +1043,9 @@ happens to be appropriate." | |||
| 1043 | (if gdb-flush-pending-output | 1043 | (if gdb-flush-pending-output |
| 1044 | nil | 1044 | nil |
| 1045 | (if gdb-enable-debug-log (push (cons 'recv string) gdb-debug-log)) | 1045 | (if gdb-enable-debug-log (push (cons 'recv string) gdb-debug-log)) |
| 1046 | ;; Recall the left over gud-marker-acc from last time | 1046 | ;; Recall the left over gud-marker-acc from last time. |
| 1047 | (setq gud-marker-acc (concat gud-marker-acc string)) | 1047 | (setq gud-marker-acc (concat gud-marker-acc string)) |
| 1048 | ;; Start accumulating output for the GUD buffer | 1048 | ;; Start accumulating output for the GUD buffer. |
| 1049 | (let ((output "")) | 1049 | (let ((output "")) |
| 1050 | ;; | 1050 | ;; |
| 1051 | ;; Process all the complete markers in this chunk. | 1051 | ;; Process all the complete markers in this chunk. |
| @@ -1295,7 +1295,7 @@ static char *magick[] = { | |||
| 1295 | :weight bold)) | 1295 | :weight bold)) |
| 1296 | "Face for enabled breakpoint icon in fringe." | 1296 | "Face for enabled breakpoint icon in fringe." |
| 1297 | :group 'gud) | 1297 | :group 'gud) |
| 1298 | ;; compatibility alias for old name | 1298 | ;; Compatibility alias for old name. |
| 1299 | (put 'breakpoint-enabled-bitmap-face 'face-alias 'breakpoint-enabled) | 1299 | (put 'breakpoint-enabled-bitmap-face 'face-alias 'breakpoint-enabled) |
| 1300 | 1300 | ||
| 1301 | (defface breakpoint-disabled | 1301 | (defface breakpoint-disabled |
| @@ -1306,13 +1306,13 @@ static char *magick[] = { | |||
| 1306 | (((background light)) :foreground "grey40")) | 1306 | (((background light)) :foreground "grey40")) |
| 1307 | "Face for disabled breakpoint icon in fringe." | 1307 | "Face for disabled breakpoint icon in fringe." |
| 1308 | :group 'gud) | 1308 | :group 'gud) |
| 1309 | ;; compatibility alias for old name | 1309 | ;; Compatibility alias for old name. |
| 1310 | (put 'breakpoint-disabled-bitmap-face 'face-alias 'breakpoint-disabled) | 1310 | (put 'breakpoint-disabled-bitmap-face 'face-alias 'breakpoint-disabled) |
| 1311 | 1311 | ||
| 1312 | ;;-put breakpoint icons in relevant margins (even those set in the GUD buffer) | 1312 | ;; Put breakpoint icons in relevant margins (even those set in the GUD buffer). |
| 1313 | (defun gdb-info-breakpoints-custom () | 1313 | (defun gdb-info-breakpoints-custom () |
| 1314 | (let ((flag) (bptno)) | 1314 | (let ((flag) (bptno)) |
| 1315 | ;; remove all breakpoint-icons in source buffers but not assembler buffer | 1315 | ;; Remove all breakpoint-icons in source buffers but not assembler buffer. |
| 1316 | (dolist (buffer (buffer-list)) | 1316 | (dolist (buffer (buffer-list)) |
| 1317 | (with-current-buffer buffer | 1317 | (with-current-buffer buffer |
| 1318 | (if (and (eq gud-minor-mode 'gdba) | 1318 | (if (and (eq gud-minor-mode 'gdba) |
| @@ -1342,13 +1342,14 @@ static char *magick[] = { | |||
| 1342 | (setq file (cdr (assoc bptno gdb-location-alist)))) | 1342 | (setq file (cdr (assoc bptno gdb-location-alist)))) |
| 1343 | (if (and file | 1343 | (if (and file |
| 1344 | (not (string-equal file "File not found"))) | 1344 | (not (string-equal file "File not found"))) |
| 1345 | (with-current-buffer (find-file-noselect file) | 1345 | (with-current-buffer |
| 1346 | (find-file-noselect file 'nowarn) | ||
| 1346 | (set (make-local-variable 'gud-minor-mode) | 1347 | (set (make-local-variable 'gud-minor-mode) |
| 1347 | 'gdba) | 1348 | 'gdba) |
| 1348 | (set (make-local-variable 'tool-bar-map) | 1349 | (set (make-local-variable 'tool-bar-map) |
| 1349 | gud-tool-bar-map) | 1350 | gud-tool-bar-map) |
| 1350 | ;; only want one breakpoint icon at each | 1351 | ;; Only want one breakpoint icon at each |
| 1351 | ;; location | 1352 | ;; location. |
| 1352 | (save-excursion | 1353 | (save-excursion |
| 1353 | (goto-line (string-to-number line)) | 1354 | (goto-line (string-to-number line)) |
| 1354 | (gdb-put-breakpoint-icon (eq flag ?y) bptno))) | 1355 | (gdb-put-breakpoint-icon (eq flag ?y) bptno))) |
| @@ -1388,11 +1389,7 @@ static char *magick[] = { | |||
| 1388 | (with-selected-window (posn-window posn) | 1389 | (with-selected-window (posn-window posn) |
| 1389 | (save-excursion | 1390 | (save-excursion |
| 1390 | (goto-char (posn-point posn)) | 1391 | (goto-char (posn-point posn)) |
| 1391 | (if | 1392 | (if (posn-object posn) |
| 1392 | ; (or | ||
| 1393 | (posn-object posn) | ||
| 1394 | ; (eq (car (fringe-bitmaps-at-pos (posn-point posn))) | ||
| 1395 | ; 'breakpoint)) | ||
| 1396 | (gdb-enqueue-input | 1393 | (gdb-enqueue-input |
| 1397 | (list | 1394 | (list |
| 1398 | (let ((bptno (get-text-property | 1395 | (let ((bptno (get-text-property |
| @@ -1980,7 +1977,7 @@ corresponding to the mode line clicked." | |||
| 1980 | 'mouse-1 | 1977 | 'mouse-1 |
| 1981 | #'(lambda () (interactive) | 1978 | #'(lambda () (interactive) |
| 1982 | (let ((gdb-memory-address | 1979 | (let ((gdb-memory-address |
| 1983 | ;; let GDB do the arithmetic | 1980 | ;; Let GDB do the arithmetic. |
| 1984 | (concat | 1981 | (concat |
| 1985 | gdb-memory-address " - " | 1982 | gdb-memory-address " - " |
| 1986 | (number-to-string | 1983 | (number-to-string |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 8f6dd73cba1..dce17ed1306 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -277,7 +277,8 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 277 | (defvar grep-hit-face compilation-info-face | 277 | (defvar grep-hit-face compilation-info-face |
| 278 | "Face name to use for grep hits.") | 278 | "Face name to use for grep hits.") |
| 279 | 279 | ||
| 280 | (defvar grep-error-face compilation-error-face | 280 | ;; compilation-error-face is wrong for this; it's designed to look like a link. |
| 281 | (defvar grep-error-face font-lock-keyword-face | ||
| 281 | "Face name to use for grep error messages.") | 282 | "Face name to use for grep error messages.") |
| 282 | 283 | ||
| 283 | (defvar grep-match-face 'match | 284 | (defvar grep-match-face 'match |
| @@ -291,12 +292,12 @@ Notice that using \\[next-error] or \\[compile-goto-error] modifies | |||
| 291 | ;; remove match from grep-regexp-alist before fontifying | 292 | ;; remove match from grep-regexp-alist before fontifying |
| 292 | ("^Grep finished \\(?:(\\(matches found\\))\\|with \\(no matches found\\)\\).*" | 293 | ("^Grep finished \\(?:(\\(matches found\\))\\|with \\(no matches found\\)\\).*" |
| 293 | (0 '(face nil message nil help-echo nil mouse-face nil) t) | 294 | (0 '(face nil message nil help-echo nil mouse-face nil) t) |
| 294 | (1 grep-hit-face nil t) | 295 | (1 font-lock-keyword-face nil t) |
| 295 | (2 grep-error-face nil t)) | 296 | (2 font-lock-keyword-face nil t)) |
| 296 | ("^Grep \\(exited abnormally\\) with code \\([0-9]+\\).*" | 297 | ("^Grep \\(exited abnormally\\) with code \\([0-9]+\\).*" |
| 297 | (0 '(face nil message nil help-echo nil mouse-face nil) t) | 298 | (0 '(face nil message nil help-echo nil mouse-face nil) t) |
| 298 | (1 compilation-warning-face) | 299 | (1 grep-error-face) |
| 299 | (2 compilation-line-face)) | 300 | (2 grep-error-face)) |
| 300 | ;; Highlight grep matches and delete markers | 301 | ;; Highlight grep matches and delete markers |
| 301 | ("\\(\033\\[01;31m\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)" | 302 | ("\\(\033\\[01;31m\\)\\(.*?\\)\\(\033\\[[0-9]*m\\)" |
| 302 | ;; Refontification does not work after the markers have been | 303 | ;; Refontification does not work after the markers have been |