aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-05-19 15:38:27 +0000
committerRichard M. Stallman2005-05-19 15:38:27 +0000
commit3c9e7f42ca27ea042c16c034155fd429d96c74ca (patch)
tree557ef5c85c631965b1be5bd19466f4ffbc2ceb90
parentde327926e95580f6679d3a419a8f1e5bda7686f5 (diff)
downloademacs-3c9e7f42ca27ea042c16c034155fd429d96c74ca.tar.gz
emacs-3c9e7f42ca27ea042c16c034155fd429d96c74ca.zip
(compilation-finish-function): Mark obsolete.
-rw-r--r--lisp/progmodes/compile.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index d08766f5a35..67feb970cc2 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -117,7 +117,11 @@ nil means compute the name with `(concat \"*\" (downcase major-mode) \"*\")'.")
117(defvar compilation-finish-function nil 117(defvar compilation-finish-function nil
118 "Function to call when a compilation process finishes. 118 "Function to call when a compilation process finishes.
119It is called with two arguments: the compilation buffer, and a string 119It is called with two arguments: the compilation buffer, and a string
120describing how the process finished.") 120describing how the process finished.
121
122(make-obsolete-variable 'compilation-finish-function
123 "Use `compilation-finish-functions', but it works a little differently."
124 "22.1")
121 125
122;;;###autoload 126;;;###autoload
123(defvar compilation-finish-functions nil 127(defvar compilation-finish-functions nil
@@ -1592,7 +1596,8 @@ displays at the top of the window; there is no arrow."
1592 (beginning-of-line 1596 (beginning-of-line
1593 (- 1 compilation-context-lines)) 1597 (- 1 compilation-context-lines))
1594 (point))) 1598 (point)))
1595 (if (left-fringe-p) 1599 ;; If there is no left fringe.
1600 (if (equal (car (window-fringes)) 0)
1596 (set-window-start w (save-excursion 1601 (set-window-start w (save-excursion
1597 (goto-char mk) 1602 (goto-char mk)
1598 (beginning-of-line 1) 1603 (beginning-of-line 1)