aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/progmodes/grep.el21
2 files changed, 32 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 31dc2347f97..ffe621cfcbc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12008-02-25 Jan Dj$(Q)Z(Brv <jan.h.d@swipnet.se>
2
3 * progmodes/grep.el (grep-mode-tool-bar-map): New variable.
4 (grep-mode): Use grep-mode-tool-bar-map.
5
6 * progmodes/compile.el (tool-bar): Require tool-bar.
7 (compilation-mode-tool-bar-map): New variable.
8 (compilation-mode): Use compilation-mode-tool-bar-map.
9
10 * term/x-win.el (x-gtk-stock-map): Add cancel. Remove extensions.
11
12008-02-25 Glenn Morris <rgm@gnu.org> 122008-02-25 Glenn Morris <rgm@gnu.org>
2 13
3 * vc-sccs.el (vc-sccs-diff): Fix setting of oldvers and newvers. 14 * vc-sccs.el (vc-sccs-diff): Fix setting of oldvers and newvers.
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 0c7cb358f4a..ef147aa79e0 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -220,6 +220,26 @@ See `compilation-error-screen-columns'"
220 "Keymap for grep buffers. 220 "Keymap for grep buffers.
221`compilation-minor-mode-map' is a cdr of this.") 221`compilation-minor-mode-map' is a cdr of this.")
222 222
223(defvar grep-mode-tool-bar-map
224 (if (display-graphic-p)
225 (let ((map (butlast (copy-keymap tool-bar-map)))
226 (help (last tool-bar-map))) ;; Keep Help last in tool bar
227 (tool-bar-local-item
228 "right-arrow" 'next-error-no-select 'next-error-no-select map
229 :rtl "left-arrow"
230 :help "Goto next match")
231 (tool-bar-local-item
232 "left-arrow" 'previous-error-no-select 'previous-error-no-select map
233 :rtl "right-arrow"
234 :help "Goto previous match")
235 (tool-bar-local-item
236 "cancel" 'kill-compilation 'kill-compilation map
237 :help "Stop grep")
238 (tool-bar-local-item
239 "refresh" 'recompile 'recompile map
240 :help "Restart grep")
241 (append map help))))
242
223(defalias 'kill-grep 'kill-compilation) 243(defalias 'kill-grep 'kill-compilation)
224 244
225;;;; TODO --- refine this!! 245;;;; TODO --- refine this!!
@@ -586,6 +606,7 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
586(define-compilation-mode grep-mode "Grep" 606(define-compilation-mode grep-mode "Grep"
587 "Sets `grep-last-buffer' and `compilation-window-height'." 607 "Sets `grep-last-buffer' and `compilation-window-height'."
588 (setq grep-last-buffer (current-buffer)) 608 (setq grep-last-buffer (current-buffer))
609 (set (make-local-variable 'tool-bar-map) grep-mode-tool-bar-map)
589 (set (make-local-variable 'compilation-error-face) 610 (set (make-local-variable 'compilation-error-face)
590 grep-hit-face) 611 grep-hit-face)
591 (set (make-local-variable 'compilation-error-regexp-alist) 612 (set (make-local-variable 'compilation-error-regexp-alist)