diff options
| author | Juri Linkov | 2008-02-12 23:41:59 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-02-12 23:41:59 +0000 |
| commit | 78dc87a23feb2a1a5d5dc0c2a5abc3a310493dcf (patch) | |
| tree | d430eb2ff1e3971f695e07a2e0b6c63da02867bd | |
| parent | 54d22a6f1639ddee41eb86c65d9e1e30a1f20c6c (diff) | |
| download | emacs-78dc87a23feb2a1a5d5dc0c2a5abc3a310493dcf.tar.gz emacs-78dc87a23feb2a1a5d5dc0c2a5abc3a310493dcf.zip | |
(compilation-auto-jump): Call
compile-goto-error only when compilation-auto-jump-to-first-error
is non-nil.
(compilation-scroll-output): Replace :type 'boolean with a choice
that has three options including a third option `first-error'.
Doc fix.
(compilation-start, compilation-forget-errors): Add an alternate
condition comparing compilation-scroll-output with `first-error'
in addition to compilation-auto-jump-to-first-error (to call
compilation-auto-jump in the proper place).
| -rw-r--r-- | lisp/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 18 |
2 files changed, 32 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b83116ef99c..927b3ce86aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2008-02-12 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * startup.el (fancy-startup-screen, normal-splash-screen): | ||
| 4 | Set default-directory to command-line-default-directory. | ||
| 5 | |||
| 6 | * desktop.el (after-init-hook): Set inhibit-startup-screen to t | ||
| 7 | after reading the desktop. | ||
| 8 | |||
| 9 | * progmodes/compile.el (compilation-auto-jump): Call | ||
| 10 | compile-goto-error only when compilation-auto-jump-to-first-error | ||
| 11 | is non-nil. | ||
| 12 | (compilation-scroll-output): Replace :type 'boolean with a choice | ||
| 13 | that has three options including a third option `first-error'. | ||
| 14 | Doc fix. | ||
| 15 | (compilation-start, compilation-forget-errors): Add an alternate | ||
| 16 | condition comparing compilation-scroll-output with `first-error' | ||
| 17 | in addition to compilation-auto-jump-to-first-error (to call | ||
| 18 | compilation-auto-jump in the proper place). | ||
| 19 | |||
| 1 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> | 20 | 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 21 | ||
| 3 | * international/mule.el (sgml-html-meta-auto-coding-function): | 22 | * international/mule.el (sgml-html-meta-auto-coding-function): |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f75c5a29bc8..9dca3553b14 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -762,7 +762,8 @@ from a different message." | |||
| 762 | (defun compilation-auto-jump (buffer pos) | 762 | (defun compilation-auto-jump (buffer pos) |
| 763 | (with-current-buffer buffer | 763 | (with-current-buffer buffer |
| 764 | (goto-char pos) | 764 | (goto-char pos) |
| 765 | (compile-goto-error))) | 765 | (if compilation-auto-jump-to-first-error |
| 766 | (compile-goto-error)))) | ||
| 766 | 767 | ||
| 767 | ;; This function is the central driver, called when font-locking to gather | 768 | ;; This function is the central driver, called when font-locking to gather |
| 768 | ;; all information needed to later jump to corresponding source code. | 769 | ;; all information needed to later jump to corresponding source code. |
| @@ -1054,8 +1055,13 @@ original use. Otherwise, recompile using `compile-command'." | |||
| 1054 | 1055 | ||
| 1055 | Setting it causes the Compilation mode commands to put point at the | 1056 | Setting it causes the Compilation mode commands to put point at the |
| 1056 | end of their output window so that the end of the output is always | 1057 | end of their output window so that the end of the output is always |
| 1057 | visible rather than the beginning." | 1058 | visible rather than the beginning. |
| 1058 | :type 'boolean | 1059 | |
| 1060 | The value `first-error' stops scrolling at the first error, and leaves | ||
| 1061 | point on its location in the *compilation* buffer." | ||
| 1062 | :type '(choice (const :tag "No scrolling" nil) | ||
| 1063 | (const :tag "Scroll compilation output" t) | ||
| 1064 | (const :tag "Stop scrolling at the first error" first-error)) | ||
| 1059 | :version "20.3" | 1065 | :version "20.3" |
| 1060 | :group 'compilation) | 1066 | :group 'compilation) |
| 1061 | 1067 | ||
| @@ -1168,7 +1174,8 @@ Returns the compilation buffer created." | |||
| 1168 | (if highlight-regexp | 1174 | (if highlight-regexp |
| 1169 | (set (make-local-variable 'compilation-highlight-regexp) | 1175 | (set (make-local-variable 'compilation-highlight-regexp) |
| 1170 | highlight-regexp)) | 1176 | highlight-regexp)) |
| 1171 | (if compilation-auto-jump-to-first-error | 1177 | (if (or compilation-auto-jump-to-first-error |
| 1178 | (eq compilation-scroll-output 'first-error)) | ||
| 1172 | (set (make-local-variable 'compilation-auto-jump-to-next) t)) | 1179 | (set (make-local-variable 'compilation-auto-jump-to-next) t)) |
| 1173 | ;; Output a mode setter, for saving and later reloading this buffer. | 1180 | ;; Output a mode setter, for saving and later reloading this buffer. |
| 1174 | (insert "-*- mode: " name-of-mode | 1181 | (insert "-*- mode: " name-of-mode |
| @@ -2160,7 +2167,8 @@ The file-structure looks like this: | |||
| 2160 | ;; compilations, to set the beginning of "this compilation", it's a good | 2167 | ;; compilations, to set the beginning of "this compilation", it's a good |
| 2161 | ;; place to reset compilation-auto-jump-to-next. | 2168 | ;; place to reset compilation-auto-jump-to-next. |
| 2162 | (set (make-local-variable 'compilation-auto-jump-to-next) | 2169 | (set (make-local-variable 'compilation-auto-jump-to-next) |
| 2163 | compilation-auto-jump-to-first-error)) | 2170 | (or compilation-auto-jump-to-first-error |
| 2171 | (eq compilation-scroll-output 'first-error)))) | ||
| 2164 | 2172 | ||
| 2165 | ;;;###autoload | 2173 | ;;;###autoload |
| 2166 | (add-to-list 'auto-mode-alist '("\\.gcov\\'" . compilation-mode)) | 2174 | (add-to-list 'auto-mode-alist '("\\.gcov\\'" . compilation-mode)) |