From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: loaddefs and provide
Date: Wed, 04 Nov 2009 14:11:09 -0500 [thread overview]
Message-ID: <9liqdqm7g2.fsf@fencepost.gnu.org> (raw)
In-Reply-To: jwvbpji6stq.fsf-monnier+emacs@gnu.org
Stefan Monnier wrote:
>>> Perhaps there could be an optional argument
>> (to autoload-rubric, I meant)
>
>From where would it be provided?
In custom-make-dependencies and finder-compile-keywords, if I
understand the question correctly.
--- autoload.el 3 Nov 2009 21:45:31 -0000 1.151
+++ autoload.el 4 Nov 2009 18:48:43 -0000
@@ -253,16 +253,20 @@
(print-escape-nonascii t))
(print form outbuf)))))))
-(defun autoload-rubric (file &optional type)
+(defun autoload-rubric (file &optional type feature)
"Return a string giving the appropriate autoload rubric for FILE.
TYPE (default \"autoloads\") is a string stating the type of
-information contained in FILE."
+information contained in FILE. If FEATURE is non-nil, FILE
+will provide a feature based on FILE."
(let ((basename (file-name-nondirectory file)))
(concat ";;; " basename
" --- automatically extracted " (or type "autoloads") "\n"
";;\n"
";;; Code:\n\n"
"\f\n"
+ (if feature
+ (concat "(provide '" (file-name-sans-extension basename) ")\n")
+ "")
";; Local Variables:\n"
";; version-control: never\n"
";; no-byte-compile: t\n"
--- cus-dep.el 5 Jan 2009 03:18:49 -0000 1.46
+++ cus-dep.el 4 Nov 2009 18:49:05 -0000
@@ -87,7 +87,7 @@
(setq buffer-undo-list t)
(erase-buffer)
(insert (autoload-rubric generated-custom-dependencies-file
- "custom dependencies"))
+ "custom dependencies" t))
(search-backward "\f")
(mapatoms (lambda (symbol)
(let ((members (get symbol 'custom-group))
--- finder.el 8 Mar 2009 19:54:32 -0000 1.82
+++ finder.el 4 Nov 2009 18:49:26 -0000
@@ -141,7 +141,7 @@
(setq buffer-undo-list t)
(erase-buffer)
(insert (autoload-rubric generated-finder-keywords-file
- "keyword-to-package mapping"))
+ "keyword-to-package mapping" t))
(search-backward "\f")
(insert "(setq finder-package-info '(\n")
(let (processed summary keywords)
next prev parent reply other threads:[~2009-11-04 19:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1N5Tis-0002pY-NM@cvs.savannah.gnu.org>
2009-11-04 3:12 ` loaddefs and provide Glenn Morris
2009-11-04 3:58 ` Stefan Monnier
2009-11-04 8:37 ` Glenn Morris
2009-11-04 8:46 ` Glenn Morris
2009-11-04 18:36 ` Stefan Monnier
2009-11-04 19:11 ` Glenn Morris [this message]
2009-11-04 20:46 ` Stefan Monnier
2009-11-04 17:10 ` Chong Yidong
2009-11-04 20:45 ` Stefan Monnier
2009-11-10 2:11 ` Glenn Morris
2009-11-10 17:48 ` Stefan Monnier
2009-11-10 18:40 ` Chong Yidong
2009-11-04 9:54 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9liqdqm7g2.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.