From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11106: 24.0.94; enhancement request: have autoload treat faces like it does options Date: Tue, 27 Mar 2012 16:57:26 -0700 Message-ID: <7134C9FED9064A64BCE682995B981BB6@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1332892743 3403 80.91.229.3 (27 Mar 2012 23:59:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2012 23:59:03 +0000 (UTC) To: 11106@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 01:59:02 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCgHy-0001dO-HV for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 01:58:58 +0200 Original-Received: from localhost ([::1]:38467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCgHx-0000FZ-OJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Mar 2012 19:58:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCgHv-0000FQ-Bz for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 19:58:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCgHm-000218-2Z for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 19:58:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCgHl-000213-VP for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 19:58:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SCgm2-0000sC-Gx for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 20:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Mar 2012 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11106 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13328945773297 (code B ref -1); Wed, 28 Mar 2012 00:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Mar 2012 00:29:37 +0000 Original-Received: from localhost ([127.0.0.1]:41970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCglb-0000r6-Or for submit@debbugs.gnu.org; Tue, 27 Mar 2012 20:29:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36178) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCgl1-0000q1-Sv for submit@debbugs.gnu.org; Tue, 27 Mar 2012 20:29:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCgGi-0001ke-8P for submit@debbugs.gnu.org; Tue, 27 Mar 2012 19:57:41 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:34058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCgGi-0001kY-5G for submit@debbugs.gnu.org; Tue, 27 Mar 2012 19:57:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCgGg-0000BQ-FX for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 19:57:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCgGe-0001kJ-H2 for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 19:57:37 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:17077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCgGe-0001k4-Ai for bug-gnu-emacs@gnu.org; Tue, 27 Mar 2012 19:57:36 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q2RNvWQZ002460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Mar 2012 23:57:33 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q2RNvVc2015292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 Mar 2012 23:57:32 GMT Original-Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q2RNvV4Q023116 for ; Tue, 27 Mar 2012 18:57:31 -0500 Original-Received: from dradamslap1 (/10.159.35.243) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 27 Mar 2012 16:57:31 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac0MdVwv1fa3weI9T2irxJRiyTpQMA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090208.4F7253ED.007D,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58218 Archived-At: Enhancement request: Be able to add an autoload cookie before a `defface', and have the face definition handled appropriately, similarly to what is done for user options (variables). And be able to specify `face' as the TYPE arg for function `autoload'. IOW, have faces handled by autoloading in a way similar to user options (variables). For options, the cookie adds property `custom-autoload' to the symbol, and that property is handled appropriately in code in custom.el etc. It would be good if "function" `autoload' explicitly handled both options and faces via its TYPE argument, just as it handles functions and keymaps. In particular, I would like to be able to do the following: ;;;###autoload (autoload 'someface "somelib" "Doc" nil 'face) And then have the file somelib.el[c] be autoloaded whenever the face is used (at least wrt some set of face-accessing functions). An advantage of this is that a file of generated autoloads would not contain the actual face definition, with its sexp that evals to the face's default "value". Instead, it would just contain that `(autoload...)' form, which would DTRT. This would obviate dealing with computing the default at the time that the autoloads file is loaded. And that would mean that any dependencies within that default sexp would be handled normally, when the library itself is loaded (not when the generated autoloads file is loaded). If my use case is not clear, ignore it. You can perhaps come up with your own use case. After all, faces are similar to user options in other ways. The purpose of this enhancement request is to extend that similarity to autoloading. (Just as for options, no one is required or necessarily encouraged to autoload any faces. This would just make it possible to do so, without putting the entire face definition into the autoloads file.) In GNU Emacs 24.0.94.1 (i386-mingw-nt5.1.2600) of 2012-03-19 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include'