/usr/share/emacs/site-lisp/ocaml-mode/caml-compat.el is in ocaml-mode 4.05.0-10ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ;**************************************************************************
;* *
;* OCaml *
;* *
;* 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. *
;* *
;**************************************************************************
;; 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)
(back-to-indentation)
(beginning-of-line 1)
(delete-horizontal-space)
(indent-to column))))
;; 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)
|