Commit graph

66 commits

Author SHA1 Message Date
Richard M. Stallman
3eb6864cde (generate-file-autoloads): Set
print-escape-nonascii when printing autoload form.
1998-05-25 20:32:19 +00:00
Richard M. Stallman
6b797f0613 (generate-file-autoloads): Handle progn forms generated by
make-autoload: print just the first subform with print-escape-newlines.
1998-05-09 07:02:50 +00:00
Karl Heuer
2336b6a9ce (generate-autoload-section-header): Doc fix.
(update-file-autoloads): Use autoload-read-section-header.
(update-autoloads-from-directories): Likewise.
(generate-autoload-section-continuation): New variable.
(autoload-read-section-header): New function.
(update-file-autoloads): Don't call save-buffer if no changes.
(generate-file-autoloads): Split the section header line
into multiple comments.
1998-04-12 06:46:08 +00:00
Richard M. Stallman
68521d611f (update-file-autoloads): Redo 1997-08-23 change. 1998-04-05 18:47:51 +00:00
Richard M. Stallman
8539959b7b (update-file-autoloads):
Undo 1997-08-23 change.
1998-03-09 01:01:36 +00:00
Richard M. Stallman
0b33ec466a (update-file-autoloads): Give clean errors
if autoloads file is empty or can't be written.
1998-02-02 01:12:18 +00:00
Richard M. Stallman
9ee65d3171 (update-file-autoloads):
Be careful about which directory to find loaddefs.el in.
1997-08-23 05:32:56 +00:00
Roland McGrath
f0646ca0d4 (update-file-autoloads): Use anchored regexp search instead of requiring
leading newline before generate-autoload-cookie, which gave false negative
if sole cookie in file was at bob.
1997-08-07 15:53:39 +00:00
Richard M. Stallman
0ceb5fe0ef (update-autoloads-from-directories):
Don't process file names that start with `.'.
1997-08-05 17:16:00 +00:00
Richard M. Stallman
666da7836b (make-autoload): For a defcustom,
generate custom-add-to-group and custom-add-load if needed.
1997-08-04 06:44:24 +00:00
Richard M. Stallman
0e193890cc (update-autoloads-from-directories):
Always update loaddefs.el in the source-directory.
1997-07-28 15:09:00 +00:00
Richard M. Stallman
3fbca58aae (update-autoloads-from-directories): Renamed from
update-autoloads-from-directory.  Take multiple directories as args.
Use locate-library to find loaddefs.el and the top level Lisp dir.
(batch-update-autoloads): Call update-autoloads-from-directories.
1997-05-16 22:49:59 +00:00
Richard M. Stallman
ceaa369594 (defcustom): Add doc-string-elt property.
(make-autoload): Convert defcustom into defvar.
1997-05-12 01:14:36 +00:00
Richard M. Stallman
fcb242c978 (generated-autoload-file): Change defconst to defvar. 1997-04-29 00:23:40 +00:00
Karl Heuer
a8f15301e6 (update-file-autoloads): Read loaddefs.el without
any code conversion.
1997-02-20 05:39:18 +00:00
Roland McGrath
2884cbf0e8 (update-autoloads-from-directory): Get absolute file names from
directory-files, and expand generated-autoload-file.  Subdirs happy now.
1997-02-17 21:44:59 +00:00
Richard M. Stallman
5a161ab5ff (update-file-autoloads): Don't barf if autoloads file
file is completely empty.
1996-09-10 21:54:46 +00:00
Roland McGrath
d5aa62ec56 (update-file-autoloads): Only give "up to date" msg if (interactive-p).
(update-autoloads-from-directory): Call expand-file-name on arg.
1996-01-21 20:20:46 +00:00
Erik Naggum
7563295303 (update-file-autoloads): Fix message. 1996-01-16 13:14:12 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Roland McGrath
0f09bac62e (update-file-autoloads): Fix placement of new sections. 1996-01-06 19:57:24 +00:00
Roland McGrath
b59c72562e (update-file-autoloads): Notice when searching found nothing at all.
(update-autoloads-from-directory): New function.
(batch-update-autoloads): Use it.
(update-directory-autoloads, update-autoloads-here): Functions removed.
1996-01-06 18:38:41 +00:00
Richard M. Stallman
ce5aaa0c3d (batch-update-autoloads): Use error-message-string. 1996-01-05 02:08:29 +00:00
Roland McGrath
6e21af5626 (generate-file-autoloads): Preserve whitespace after cookie in literal text
copied to output; eat only a single space.
1996-01-04 20:08:50 +00:00
Roland McGrath
66fc2bf5cf (generate-file-autoloads): If no buffer visiting FILE exists, read it into
a temp buffer for processing without visiting it.
1995-12-14 05:08:02 +00:00
Karl Heuer
5950a4fce1 (make-autoload): Generate `(autoload ...)' form for
`(define-skeleton ...)'
1995-07-07 19:20:09 +00:00
Richard M. Stallman
d0cb5e047d (generate-file-autoloads): Warn if we put a line
in loaddefs.el that is long enough to cause trouble.
1994-09-17 20:02:15 +00:00
Richard M. Stallman
07b3798c76 Comment change. 1994-06-17 20:04:22 +00:00
Richard M. Stallman
1eb0a345ce (autoload-trim-file-name): Make it relative
to the directory that loaddefs.el is in.
1994-05-12 18:54:57 +00:00
Karl Heuer
73e4e0eb1a (update-autoloads-here): Split up long message. 1994-05-12 14:45:30 +00:00
Karl Heuer
57cf354dc9 (update-file-autoloads): Delete leftover variable. 1994-05-11 04:40:25 +00:00
Richard M. Stallman
00ee57f3f2 Comment change. 1994-05-10 20:03:45 +00:00
Richard M. Stallman
9f4b7963c9 (update-directory-autoloads): Ignore files
whose names start with =.  Bind enable-local-eval to nil.
1994-05-06 08:11:04 +00:00
Richard M. Stallman
ad9c7f2b76 (generate-file-autoloads): Don't ignore the line
after the form marked by a ;;;###autoload\n.
1994-03-10 04:18:10 +00:00
Roland McGrath
52859db83c (generate-file-autoloads): Move misplaced paren in match clause of cond
so copying the rest of the line to the output is the else clause of if
(eolp), not after the if.
1994-03-03 22:13:45 +00:00
Roland McGrath
9ed4d64fd3 (generate-file-autoloads): Don't frob literal formfeeds into \f; just bind
print-escape-newlines to t around printing (now has same effect).
1994-02-08 23:03:09 +00:00
Karl Heuer
e15068c4db (batch-update-autoloads): Add missing close paren. 1994-02-08 04:53:09 +00:00
Roland McGrath
72c19d97c1 (autoload-trim-file-name): New function.
(generate-file-autoloads): Bind print-readably to t for Lucid.
Use autoload-trim-file-name on FILE when inserting the name.
Scan written text and fix up ^L to \f and ( at bol to \(.
(update-file-autoloads): When we find a later file's section, set FOUND to
'new.  If FOUND is 'new after loop, check file for autoload cookies and
don't call generate-file-autoloads if none.
(update-directory-autoloads): Get absolute file names from directory-files.
(batch-update-autoloads): Rewrite from jwz to process later files in a
directory after one file errs.
1994-02-07 22:19:05 +00:00
Roland McGrath
d55e3ff0cc (update-file-autoloads): Never ask the user where to put a new section.
While searching the file, look for an alphabetically later file's section,
and insert the new section before it.
1994-02-07 05:08:36 +00:00
Richard M. Stallman
aa7ea8bd6e (generate-file-autoloads): Set float-output-format to
nil, not "%.20e", since nil is guaranteed to not lose info on output.
1993-08-11 06:38:38 +00:00
Richard M. Stallman
0a933d4b4f (generate-file-autoloads): Bind float-output-format.
Bind print-escape-newlines.
1993-07-21 22:37:55 +00:00
Roland McGrath
811eaa609c (update-file-autoloads): Go to the beginning of FILE before searching it
for generate-autoload-cookie.
1993-07-18 20:01:03 +00:00
Roland McGrath
1265394fdd (generate-file-autoloads): Fix FILE truename hacking to substring
SOURCE-TRUENAME instead of FILE.
1993-07-14 20:56:19 +00:00
Jim Blandy
ae553cad8e * autoload.el (generate-file-autoloads): Correctly detect when the
buffer receiving the autoload forms is in a parent of or the same
	directory as FILE, even in the presence of symlinks.
1993-07-13 03:21:39 +00:00
Roland McGrath
88e37e7b31 (update-file-autoloads): Correctly do nothing when there are no cookies. 1993-07-07 20:13:57 +00:00
Roland McGrath
23de57664f Doc fix. 1993-07-07 02:03:18 +00:00
Roland McGrath
d4f70b769d (update-file-autoloads): Do nothing when there are no cookies. 1993-07-03 07:22:04 +00:00
Richard M. Stallman
c751663136 (generate-file-autoloads): Undo previous change
because make-docfile requires defvar doc string to start on first line.
1993-06-17 06:59:49 +00:00
Roland McGrath
327ab40d47 (make-autoload): Use memq once instead eq twice.
(generate-file-autoloads): For non-autoloads, copy the defn textually
rather than printing it after reading.
1993-06-16 23:06:58 +00:00
Roland McGrath
d08589bfd1 (generate-autoload-cookie, update-autoloads-here): Doc fixes. 1993-06-16 22:08:23 +00:00