comparison lisp/emacs-lisp/autoload.el @ 732:a8d94735277e

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Tue, 30 Jun 1992 13:54:21 +0000
parents 540b047ece4d
children 4f28bd14272c
comparison
equal deleted inserted replaced
731:5c6db33a9ef6 732:a8d94735277e
105 ;; If the autoload section we create here uses an absolute 105 ;; If the autoload section we create here uses an absolute
106 ;; pathname for FILE in its header, and then Emacs is installed 106 ;; pathname for FILE in its header, and then Emacs is installed
107 ;; under a different path on another system, 107 ;; under a different path on another system,
108 ;; `update-autoloads-here' won't be able to find the files to be 108 ;; `update-autoloads-here' won't be able to find the files to be
109 ;; autoloaded. So, if FILE is in the same directory or a 109 ;; autoloaded. So, if FILE is in the same directory or a
110 ;; subdirectory of the current buffer's file, we'll make it 110 ;; subdirectory of the current buffer's directory, we'll make it
111 ;; relative to the current buffer's directory. 111 ;; relative to the current buffer's directory.
112 (setq file (expand-file-name file)) 112 (setq file (expand-file-name file))
113 (if (and (< (length default-directory) (length file)) 113 (if (and (< (length default-directory) (length file))
114 (string= default-directory 114 (string= default-directory
115 (substring file 0 (length default-directory)))) 115 (substring file 0 (length default-directory))))