summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidier Rémy <Didier.Remy@inria.fr>1998-06-23 10:00:27 +0000
committerDidier Rémy <Didier.Remy@inria.fr>1998-06-23 10:00:27 +0000
commitebc71b0f80af6f02b4867c1211c2a05b81650b57 (patch)
treeebcf00af0799db8f743d9defd1a61e6c1bbe5c1d
parentae0c8b96d7b66e5a00bd215c2af7102da6b1b9dd (diff)
Ajustement de caml-next-error a` partir des versions 20
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1990 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--emacs/caml.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/caml.el b/emacs/caml.el
index 628ca979d..a3edb8974 100644
--- a/emacs/caml.el
+++ b/emacs/caml.el
@@ -597,6 +597,7 @@ from an error message produced by camlc.")
;; Wrapper around next-error.
(defvar caml-error-overlay nil)
+(defvar caml-emacs-twenty (string-match "20\." (emacs-version)))
;;itz 04-21-96 somebody didn't get the documetation for next-error
;;right. When the optional argument is a number n, it should move
@@ -629,6 +630,7 @@ possible."
(string-to-int
(buffer-substring (match-beginning 2) (match-end 2)))))))
(cond (beg
+ (if caml-emacs-twenty (beginning-of-line))
(setq beg (+ (point) beg)
end (+ (point) end))
(goto-char beg)