2004-08-20 10:04:35 -07:00
|
|
|
;(***********************************************************************)
|
|
|
|
;(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
;(* OCaml *)
|
2004-08-20 10:04:35 -07:00
|
|
|
;(* *)
|
|
|
|
;(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
;(* *)
|
|
|
|
;(* Copyright 1998 Institut National de Recherche en Informatique et *)
|
|
|
|
;(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
;(* under the terms of the GNU General Public License. *)
|
|
|
|
;(* *)
|
|
|
|
;(***********************************************************************)
|
|
|
|
|
1998-04-08 04:36:04 -07:00
|
|
|
;; function definitions for old versions of emacs
|
|
|
|
|
|
|
|
;; indent-line-to
|
|
|
|
|
|
|
|
(if (not (fboundp 'indent-line-to))
|
|
|
|
(defun indent-line-to (column)
|
|
|
|
"Indent current line to COLUMN.
|
|
|
|
|
|
|
|
This function removes or adds spaces and tabs at beginning of line
|
|
|
|
only if necessary. It leaves point at end of indentation."
|
|
|
|
(if (= (current-indentation) column)
|
1999-11-29 11:04:56 -08:00
|
|
|
(back-to-indentation)
|
|
|
|
(beginning-of-line 1)
|
|
|
|
(delete-horizontal-space)
|
|
|
|
(indent-to column))))
|
1998-04-08 04:36:04 -07:00
|
|
|
|
|
|
|
;; buffer-substring-no-properties
|
|
|
|
|
|
|
|
(cond
|
|
|
|
((fboundp 'buffer-substring-no-properties))
|
|
|
|
((fboundp 'buffer-substring-without-properties)
|
|
|
|
(defalias 'buffer-substring-no-properties
|
|
|
|
'buffer-substring-without-properties))
|
|
|
|
(t
|
|
|
|
(defalias 'buffer-substring-no-properties 'buffer-substring)))
|
|
|
|
|
|
|
|
(provide 'caml-compat)
|