Commit graph

80 commits

Author SHA1 Message Date
Eli Zaretskii
9e3366e44b (update-file-autoloads): Use raw-text to
read generated-autoload-file, and set buffer-file-coding-system to
raw-text-unix after reading the file.
2000-12-06 13:56:18 +00:00
Stefan Monnier
e8139c11fb (make-autoload): Use `cond'.
Handle easy-mmode-define-global-mode.
For complex macros like define-minor-mode that can generate
several autoload entries, try to autoload entries in the
macroexpanded code.
2000-06-11 05:00:35 +00:00
Stefan Monnier
44bd81eacc (make-autoload): Other typo. I'm getting tired. 2000-06-05 06:37:11 +00:00
Stefan Monnier
e971339e72 (make-autoload): let* typo. 2000-06-05 06:33:44 +00:00
Stefan Monnier
a8add29deb (make-autoload): Simplify docstring.
Make use of symbol-property doc-string-elt.
Use memq rather than a sequence of eq.
(doc-string-elt): Fix the wrong or missing previously unused values.
(autoload-print-form): New function extracted from
generate-file-autoloads to allow recursion when handling progn
so that defvar's and defun's docstrings are properly printed.
(generate-file-autoloads): Use it.
2000-06-05 06:30:48 +00:00
Andreas Schwab
d14ef04bda Also print defsubst doc string
specially.
2000-03-29 21:31:40 +00:00
Stefan Monnier
bc165bcee0 (make-autoload): Recognize the new `define-minor-mode'.
(define-minor-mode): Specify `doc-string-elt'.
1999-11-23 09:26:55 +00:00
Richard M. Stallman
74a28ee2a8 (make-autoload): Handle defun* like defun. 1999-09-03 23:57:31 +00:00
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00
Karl Heuer
c8aca7d151 (generated-autoload-file): Doc fix. 1999-06-27 21:56:36 +00:00
Andreas Schwab
f3effb674a Fix doc-string-elt property on define-derived-mode. 1998-08-24 10:19:52 +00:00
Dan Nicolaescu
707ee44899 *** empty log message *** 1998-06-06 20:22:47 +00:00
Richard M. Stallman
18baef8fa9 (make-autoload): Doc fix. 1998-05-26 05:17:02 +00:00
Richard M. Stallman
fc89daeeaf (make-autoload): Add support for define-derived-mode. Update the
doc-string accordingly.
1998-05-26 05:14:52 +00:00
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