aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLeo Liu2013-03-19 08:16:14 +0800
committerLeo Liu2013-03-19 08:16:14 +0800
commit50c3a20bac9ebccc003fb899f575e73d0e04216a (patch)
treef70377d8dfaad4115cd49632ec5f8dc4b419ad0e /lisp
parent4c9a13778214563f07bcc8e73ef4ebbba7d8a589 (diff)
downloademacs-50c3a20bac9ebccc003fb899f575e73d0e04216a.tar.gz
emacs-50c3a20bac9ebccc003fb899f575e73d0e04216a.zip
* progmodes/compile.el (compilation-display-error): New command.
(compilation-mode-map, compilation-minor-mode-map): Bind it to C-o. Fixes: debbugs:13992
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/compile.el8
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 019ea722be8..4c2b17ff0fa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-03-19 Leo Liu <sdl.web@gmail.com>
2
3 * progmodes/compile.el (compilation-display-error): New command.
4 (compilation-mode-map, compilation-minor-mode-map): Bind it to
5 C-o. (Bug#13992)
6
12013-03-18 Paul Eggert <eggert@cs.ucla.edu> 72013-03-18 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 * term/x-win.el (x-keysym-pair): Add a Fixme (Bug#13936). 9 * term/x-win.el (x-keysym-pair): Add a Fixme (Bug#13936).
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 9e9e2f0b090..98a89bb2363 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1814,6 +1814,7 @@ Returns the compilation buffer created."
1814 (define-key map [follow-link] 'mouse-face) 1814 (define-key map [follow-link] 'mouse-face)
1815 (define-key map "\C-c\C-c" 'compile-goto-error) 1815 (define-key map "\C-c\C-c" 'compile-goto-error)
1816 (define-key map "\C-m" 'compile-goto-error) 1816 (define-key map "\C-m" 'compile-goto-error)
1817 (define-key map "\C-o" 'compilation-display-error)
1817 (define-key map "\C-c\C-k" 'kill-compilation) 1818 (define-key map "\C-c\C-k" 'kill-compilation)
1818 (define-key map "\M-n" 'compilation-next-error) 1819 (define-key map "\M-n" 'compilation-next-error)
1819 (define-key map "\M-p" 'compilation-previous-error) 1820 (define-key map "\M-p" 'compilation-previous-error)
@@ -1858,6 +1859,7 @@ Returns the compilation buffer created."
1858 (define-key map [follow-link] 'mouse-face) 1859 (define-key map [follow-link] 'mouse-face)
1859 (define-key map "\C-c\C-c" 'compile-goto-error) 1860 (define-key map "\C-c\C-c" 'compile-goto-error)
1860 (define-key map "\C-m" 'compile-goto-error) 1861 (define-key map "\C-m" 'compile-goto-error)
1862 (define-key map "\C-o" 'compilation-display-error)
1861 (define-key map "\C-c\C-k" 'kill-compilation) 1863 (define-key map "\C-c\C-k" 'kill-compilation)
1862 (define-key map "\M-n" 'compilation-next-error) 1864 (define-key map "\M-n" 'compilation-next-error)
1863 (define-key map "\M-p" 'compilation-previous-error) 1865 (define-key map "\M-p" 'compilation-previous-error)
@@ -2299,6 +2301,12 @@ Prefix arg N says how many files to move backwards (or forwards, if negative)."
2299 (interactive "p") 2301 (interactive "p")
2300 (compilation-next-file (- n))) 2302 (compilation-next-file (- n)))
2301 2303
2304(defun compilation-display-error ()
2305 "Display the source for current error in another window."
2306 (interactive)
2307 (setq compilation-current-error (point))
2308 (next-error-no-select 0))
2309
2302(defun kill-compilation () 2310(defun kill-compilation ()
2303 "Kill the process made by the \\[compile] or \\[grep] commands." 2311 "Kill the process made by the \\[compile] or \\[grep] commands."
2304 (interactive) 2312 (interactive)