diff options
| author | Miles Bader | 2005-03-20 01:49:32 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-03-20 01:49:32 +0000 |
| commit | e38b967ad745d0d862c0ea8bacc5bc89a19c8272 (patch) | |
| tree | 58fab1c08aad8c6d19304b72175e8c6d55be6ecb | |
| parent | a0747ee5f13a41eba21b27ef049a29481675d8b9 (diff) | |
| download | emacs-e38b967ad745d0d862c0ea8bacc5bc89a19c8272.tar.gz emacs-e38b967ad745d0d862c0ea8bacc5bc89a19c8272.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-193
Use gdb-ui breakpoint faces on ttys too
2005-03-20 Miles Bader <miles@gnu.org>
* lisp/progmodes/gdb-ui.el (gdb-put-breakpoint-icon): Use breakpoint faces
in text-mode too. Change to new face names.
(breakpoint-enabled): Renamed from `breakpoint-enabled-bitmap-face'.
Add `:weight bold' attribute.
(breakpoint-disabled): Renamed from `breakpoint-disabled-bitmap-face'.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 19 |
2 files changed, 21 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a756e8cf475..84b7191ac0a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2005-03-20 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/gdb-ui.el (gdb-put-breakpoint-icon): Use breakpoint faces | ||
| 4 | in text-mode too. Change to new face names. | ||
| 5 | (breakpoint-enabled): Renamed from `breakpoint-enabled-bitmap-face'. | ||
| 6 | Add `:weight bold' attribute. | ||
| 7 | (breakpoint-disabled): Renamed from `breakpoint-disabled-bitmap-face'. | ||
| 8 | |||
| 1 | 2005-03-19 Juri Linkov <juri@jurta.org> | 9 | 2005-03-19 Juri Linkov <juri@jurta.org> |
| 2 | 10 | ||
| 3 | * files.el (auto-mode-alist): Add comment. Optimize jar/ear/war. | 11 | * files.el (auto-mode-alist): Add comment. Optimize jar/ear/war. |
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index fea1bbce69a..e339dbc3b19 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1160,20 +1160,24 @@ static char *magick[] = { | |||
| 1160 | (define-fringe-bitmap 'breakpoint | 1160 | (define-fringe-bitmap 'breakpoint |
| 1161 | "\x3c\x7e\xff\xff\xff\xff\x7e\x3c")) | 1161 | "\x3c\x7e\xff\xff\xff\xff\x7e\x3c")) |
| 1162 | 1162 | ||
| 1163 | (defface breakpoint-enabled-bitmap-face | 1163 | (defface breakpoint-enabled |
| 1164 | '((t | 1164 | '((t |
| 1165 | :inherit fringe | 1165 | :inherit fringe |
| 1166 | :weight bold | ||
| 1166 | :foreground "red")) | 1167 | :foreground "red")) |
| 1167 | "Face for enabled breakpoint icon in fringe." | 1168 | "Face for enabled breakpoint icon in fringe." |
| 1168 | :group 'gud) | 1169 | :group 'gud) |
| 1170 | ;; compatibility alias for old name | ||
| 1171 | (put 'breakpoint-enabled-bitmap-face 'face-alias 'breakpoint-enabled) | ||
| 1169 | 1172 | ||
| 1170 | (defface breakpoint-disabled-bitmap-face | 1173 | (defface breakpoint-disabled |
| 1171 | '((t | 1174 | '((t |
| 1172 | :inherit fringe | 1175 | :inherit fringe |
| 1173 | :foreground "grey60")) | 1176 | :foreground "grey60")) |
| 1174 | "Face for disabled breakpoint icon in fringe." | 1177 | "Face for disabled breakpoint icon in fringe." |
| 1175 | :group 'gud) | 1178 | :group 'gud) |
| 1176 | 1179 | ;; compatibility alias for old name | |
| 1180 | (put 'breakpoint-disabled-bitmap-face 'face-alias 'breakpoint-disabled) | ||
| 1177 | 1181 | ||
| 1178 | ;;-put breakpoint icons in relevant margins (even those set in the GUD buffer) | 1182 | ;;-put breakpoint icons in relevant margins (even those set in the GUD buffer) |
| 1179 | (defun gdb-info-breakpoints-custom () | 1183 | (defun gdb-info-breakpoints-custom () |
| @@ -2194,8 +2198,8 @@ BUFFER nil or omitted means use the current buffer." | |||
| 2194 | nil (1+ start) | 2198 | nil (1+ start) |
| 2195 | `(left-fringe breakpoint | 2199 | `(left-fringe breakpoint |
| 2196 | ,(if enabled | 2200 | ,(if enabled |
| 2197 | 'breakpoint-enabled-bitmap-face | 2201 | 'breakpoint-enabled |
| 2198 | 'breakpoint-disabled-bitmap-face))) | 2202 | 'breakpoint-disabled))) |
| 2199 | (when (< left-margin-width 2) | 2203 | (when (< left-margin-width 2) |
| 2200 | (save-current-buffer | 2204 | (save-current-buffer |
| 2201 | (setq left-margin-width 2) | 2205 | (setq left-margin-width 2) |
| @@ -2232,7 +2236,10 @@ BUFFER nil or omitted means use the current buffer." | |||
| 2232 | (set-window-margins | 2236 | (set-window-margins |
| 2233 | (get-buffer-window (current-buffer) 0) | 2237 | (get-buffer-window (current-buffer) 0) |
| 2234 | left-margin-width right-margin-width)))) | 2238 | left-margin-width right-margin-width)))) |
| 2235 | (gdb-put-string putstring (1+ start))))) | 2239 | (gdb-put-string |
| 2240 | (propertize putstring | ||
| 2241 | 'face (if enabled 'breakpoint-enabled 'breakpoint-disabled)) | ||
| 2242 | (1+ start))))) | ||
| 2236 | 2243 | ||
| 2237 | (defun gdb-remove-breakpoint-icons (start end &optional remove-margin) | 2244 | (defun gdb-remove-breakpoint-icons (start end &optional remove-margin) |
| 2238 | (gdb-remove-strings start end) | 2245 | (gdb-remove-strings start end) |