From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.devel Subject: Re: use-package.el -> Emacs core Date: Tue, 10 Nov 2015 15:39:34 +0100 Message-ID: <87oaf1zzo9.fsf@members.fsf.org> References: <564136F7.2020404@yandex.ru> <87mvum1bbg.fsf@pedrosilva.pt> <87k2pqqd0j.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447170569 15827 80.91.229.3 (10 Nov 2015 15:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2015 15:49:29 +0000 (UTC) Cc: Pedro Silva , emacs-devel@gnu.org, Phillip Lord To: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 10 16:49:17 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZwBAZ-0001WI-Pd for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2015 16:49:15 +0100 Original-Received: from localhost ([::1]:33266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwBAZ-0006Sq-A6 for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2015 10:49:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwA59-0002RN-Rn for emacs-devel@gnu.org; Tue, 10 Nov 2015 09:39:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwA54-0004I5-K2 for emacs-devel@gnu.org; Tue, 10 Nov 2015 09:39:35 -0500 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:27154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwA54-0004Hv-EK for emacs-devel@gnu.org; Tue, 10 Nov 2015 09:39:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4HAN4AQlakD4Xx/2dsb2JhbABegmmCFIJeqGMBAQEBAQEGlGqGEAKCBQEBAQEBAYELQRMBg2EBAQQjBFIQCAMaAgUhAgIPAQQNT4gZAxKyNIt/DYRJAQEIAiGBAYUMhUWCU4UigUQFlkiIDgWDHosCi2WHU2OEBT00gWCDTgEBAQ Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 10 Nov 2015 15:39:28 +0100 In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vo?= =?utf-8?Q?ra=22's?= message of "Tue, 10 Nov 2015 13:37:58 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193870 Archived-At: joaotavora@gmail.com (Jo=C3=A3o T=C3=A1vora) writes: >> (unless >> (fboundp 'foo-a) >> (autoload #'foo-a "foo" nil t)) > > According to the `autoload' docstring: > > If FUNCTION is already defined other than as an autoload, > this does nothing and returns nil. IIRC in the above snippet (from the expansion of a use-package instance), `fboundp' is mostly used as `autoloadp' to avoid overwriting existing autloads (I guess autloadp wasn't used because it takes an OBJECT as argument instead of a symbol). --=20 Nico.