From unknown Wed Jun 18 23:16:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24381 <24381@debbugs.gnu.org> To: bug#24381 <24381@debbugs.gnu.org> Subject: Status: 25.0.95; eval-after-load for features Reply-To: bug#24381 <24381@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:16:16 +0000 retitle 24381 25.0.95; eval-after-load for features reassign 24381 emacs submitter 24381 "Roland Winkler" severity 24381 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 06 11:12:27 2016 Received: (at submit) by debbugs.gnu.org; 6 Sep 2016 15:12:28 +0000 Received: from localhost ([127.0.0.1]:51455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhI2x-0008Vm-5w for submit@debbugs.gnu.org; Tue, 06 Sep 2016 11:12:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhI2r-0008VT-Jm for submit@debbugs.gnu.org; Tue, 06 Sep 2016 11:12:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhI2i-0008Bq-Hg for submit@debbugs.gnu.org; Tue, 06 Sep 2016 11:12:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhI2i-0008BW-Eu for submit@debbugs.gnu.org; Tue, 06 Sep 2016 11:12:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhI2g-0002cf-3S for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 11:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhI2a-0008AB-M4 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 11:12:05 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhI2a-00089z-Is for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 11:12:00 -0400 Received: from lukas.physics.niu.edu ([131.156.224.124]:46880 helo=lukas) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bhI2Z-0004FU-2d for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 11:11:59 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <56499.28484.464994.22478@gargle.gargle.HOWL> Date: Tue, 6 Sep 2016 10:11:47 -0500 From: "Roland Winkler" To: bug-gnu-emacs@gnu.org Subject: 25.0.95; eval-after-load for features X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.1 (------) cat > foo.el <) id 1bhIAr-0000Id-I3 for submit@debbugs.gnu.org; Tue, 06 Sep 2016 11:20:37 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:63345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhIAm-0000IN-6n for 24381@debbugs.gnu.org; Tue, 06 Sep 2016 11:20:32 -0400 Received: from [18.189.118.169] ([18.189.118.169]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0M7yDJ-1auwo037eT-00vem2; Tue, 06 Sep 2016 17:20:21 +0200 Subject: Re: bug#24381: 25.0.95; eval-after-load for features To: Roland Winkler , 24381@debbugs.gnu.org References: <56499.28484.464994.22478@gargle.gargle.HOWL> From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Message-ID: <58bdcbb0-dd28-4e33-200d-5b5c553506d7@gmail.com> Date: Tue, 6 Sep 2016 11:20:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <56499.28484.464994.22478@gargle.gargle.HOWL> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LdUosD7kVGmQKjwTUSPxcEn2idSGx2DbP" X-Provags-ID: V03:K0:bKk0qRgtffdK0fQu1ConHe6Dvl2vXKIVID+l30gnDanyTfsS8g/ jTBCZy10Crquoqzo+NdcjSN+zOtNl63Hh4rH8OuC8QzPk15K1aduAiEhNZZ1OMMl7LZkiz6 y7z5KM4xLIhFO6qcRdfazM/FG/7EUSDjXPSDzvSpKBc4SmvonMJuYFxMC1V7BA7zOjeh3bO 0F+ORIj004BlpX0IbuMVA== X-UI-Out-Filterresults: notjunk:1;V01:K0:RgDcBc/u0oQ=:HDpj3AcKQ02gxc2hjI94WF eNJTrdxaemEb8tyhUz0cGebFyodtDfKR3BuPVlOCssQOfZB+MtJnmCXQNGIt3C6a2rhfqfMTH ustNnM9VC4c8TvXwYenksWrZ7/G6yLErxG5xcWzCx6hmhFBWMwi8Jk8hy0lcCkWFS+jYHpr1U C+1kWl4ciKOQBNdxtqZ34QTNDBpds1Q9iMof1YMw3VvYqhJgttwDcVt5OxlwFTn72GeVzAfvn dZOMN2fmrwFKLPlcXg/DuijIe7nLHIfrZfniw489FnK9o+x35QYBCjQd8fPLRpxev8/E8mHqI Tgchcy1ybvHC1F6EanyIKoyo4Ug1YSpR4ZsZ2yHZW8V8R0BOFX8pJmnxROgH2uOo0fasvrFsv qJruubiZp/eempWUUJGsYI0UBg8FAh9GZnE7ohwWhg9QkXaojjraIV/8xAo8mUCnaRhB7H6Uw yM0C63xsdUlqRqkgm6zt5vhyrwEKQ8uWAAIPIHfyxbSqu/8OPupPHb44a3BMBt3O/p9R1n951 /k6lGdG127fKqHh0WfPPQX+Dv37t4genIXLZRJlb7pHqQUClyVyTfuFna/ADwM40s5cM1e9Dr G/m+wSk5vNx+e13V7zRGmzV+uVuMCSsjiNXhTzWDjnS/ahw1E+LejAPr44SWMNlAUqV07dPmX mi1HVJYMLYFGQKRc+Rz0a5tAiTEBUli/XwTEyv1Yc0+E/41Y4HCGxZEc9Y3yk+4IRTGc= X-Spam-Score: 3.4 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Did you mean to use with-eval-after-load? eval-after-load takes a quoted form IIRC. Clément. On 2016-09-06 11:11, Roland Winkler wrote: > > cat > foo.el < (eval-after-load 'foo > (message "feature foo loaded: %s" (featurep 'foo))) > EOF > > emacs -Q -l foo.el > > According to the doc string of eval-after-load: > > Alternatively, FILE can be a feature (i.e. a symbol), in which case FORM > is evaluated at the end of any file that ‘provide’s this feature. > > So I would expect that the above form is not run because the file > foo.el does not provide the feature foo. Yet the algorithm > underlying eval-after-load compares the symbol foo with the string > "foo.el" and this is sufficient to evaluate the form. > > I think that the behavior described in the docstring would be > useful: my init.el is broken into smaller files which have the same > names as the features they refer to. So I suggest to change the > behavior of eval-after-load instead of fixing its docstring. But > there might also be other issues that I am not aware of. > > > > > In GNU Emacs 25.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2016-07-15 built on lukas > Windowing system distributor 'The X.Org Foundation', version 11.0.11600000 > System Description: Ubuntu 14.04.5 LTS > > > > [...] Content analysis details: (3.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (clement.pit[at]gmail.com) 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [212.227.126.130 listed in dnsbl.sorbs.net] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.130 listed in list.dnswl.org] X-Debbugs-Envelope-To: 24381 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.4 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Did you mean to use with-eval-after-load? eval-after-load takes a quoted form IIRC. Clément. On 2016-09-06 11:11, Roland Winkler wrote: > > cat > foo.el < (eval-after-load 'foo > (message "feature foo loaded: %s" (featurep 'foo))) > EOF > > emacs -Q -l foo.el > > According to the doc string of eval-after-load: > > Alternatively, FILE can be a feature (i.e. a symbol), in which case FORM > is evaluated at the end of any file that ‘provide’s this feature. > > So I would expect that the above form is not run because the file > foo.el does not provide the feature foo. Yet the algorithm > underlying eval-after-load compares the symbol foo with the string > "foo.el" and this is sufficient to evaluate the form. > > I think that the behavior described in the docstring would be > useful: my init.el is broken into smaller files which have the same > names as the features they refer to. So I suggest to change the > behavior of eval-after-load instead of fixing its docstring. But > there might also be other issues that I am not aware of. > > > > > In GNU Emacs 25.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2016-07-15 built on lukas > Windowing system distributor 'The X.Org Foundation', version 11.0.11600000 > System Description: Ubuntu 14.04.5 LTS > > > > [...] Content analysis details: (3.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.130 listed in list.dnswl.org] 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [212.227.126.130 listed in dnsbl.sorbs.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (clement.pit[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LdUosD7kVGmQKjwTUSPxcEn2idSGx2DbP Content-Type: multipart/mixed; boundary="m2aqgEA7lcUr1drlGaqL0LVvVsT0AL2Ph"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Roland Winkler , 24381@debbugs.gnu.org Message-ID: <58bdcbb0-dd28-4e33-200d-5b5c553506d7@gmail.com> Subject: Re: bug#24381: 25.0.95; eval-after-load for features References: <56499.28484.464994.22478@gargle.gargle.HOWL> In-Reply-To: <56499.28484.464994.22478@gargle.gargle.HOWL> --m2aqgEA7lcUr1drlGaqL0LVvVsT0AL2Ph Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Did you mean to use with-eval-after-load? eval-after-load takes a quoted= form IIRC. Cl=C3=A9ment. On 2016-09-06 11:11, Roland Winkler wrote: >=20 > cat > foo.el < (eval-after-load 'foo > (message "feature foo loaded: %s" (featurep 'foo))) > EOF >=20 > emacs -Q -l foo.el >=20 > According to the doc string of eval-after-load: >=20 > Alternatively, FILE can be a feature (i.e. a symbol), in which case F= ORM > is evaluated at the end of any file that =E2=80=98provide=E2=80=99s t= his feature. >=20 > So I would expect that the above form is not run because the file > foo.el does not provide the feature foo. Yet the algorithm > underlying eval-after-load compares the symbol foo with the string > "foo.el" and this is sufficient to evaluate the form. >=20 > I think that the behavior described in the docstring would be > useful: my init.el is broken into smaller files which have the same > names as the features they refer to. So I suggest to change the > behavior of eval-after-load instead of fixing its docstring. But > there might also be other issues that I am not aware of. >=20 >=20 >=20 >=20 > In GNU Emacs 25.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) > of 2016-07-15 built on lukas > Windowing system distributor 'The X.Org Foundation', version 11.0.11600= 000 > System Description: Ubuntu 14.04.5 LTS >=20 >=20 >=20 >=20 --m2aqgEA7lcUr1drlGaqL0LVvVsT0AL2Ph-- --LdUosD7kVGmQKjwTUSPxcEn2idSGx2DbP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXzt6vAAoJEPqg+cTm90wjiWcP/2qPlR0rFJv27Arv7akMRxsh mFNGqRzgqOwkHWjAjjjE6HmaCJlHwgjJdEWQ2RGqmD+oaj7rsYB1FRHDwAz+NR6S pI4g/ZhUdmUHSiqTh5GGy2q0B7zS6fdqQxw8jKMT6LURMmOpjTYIh1QITkXPJK3v 5uFvEYKwCWNesHiXN/wGlkFSU0lvtUEwD6W3Zh8ZtXinuJ7jJDkUJYcEjQw4nxcd EQKlb+3SXiDbNtoN4kscUHD/k7Fs0RtLelQXGnbLVjlWFIY8qpx2z3mqEO+mYchr +JcLf5xiiNhZEfbDiO7obiNlc23wQlztHV2+rqW3UUeKUpPlxJMWm+dMCUaP0hp4 VWijTPOghqu1DVEbT0ZpvlK/xgy15n7JZJk3ghXWYUPRpU8r9Sxcq+Qi9EwAm/zm uqZd9a6AVte6QlXQhGsV6GzdzIs8EM7jOmmTTq7s20nu0ZnDDnFImJLGaDhBsfTU 4m1VuGi0YQIenJoxWI/ETfO/X+LWBDnFxUANaIMV5NqQJ0sLnfJkyqDytZgB8QQ1 hOKe/T0IRMf1kioqUyUj21mJrtIfX7cnSlaXLp4JOSd9PrD417d2KpRlylOUdmH5 Cu+M2oIJYoREdsivZySMl075pKOQeRvl9qnAYWqhXBOpbYWY3FbvYutSusa2+UaG zZoBh+zjW7zBHP8zUEe6 =bglK -----END PGP SIGNATURE----- --LdUosD7kVGmQKjwTUSPxcEn2idSGx2DbP-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 06 11:40:22 2016 Received: (at 24381-done) by debbugs.gnu.org; 6 Sep 2016 15:40:23 +0000 Received: from localhost ([127.0.0.1]:51528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhITx-0000s5-Im for submit@debbugs.gnu.org; Tue, 06 Sep 2016 11:40:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhITq-0000rJ-Nd for 24381-done@debbugs.gnu.org; Tue, 06 Sep 2016 11:40:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhITi-0007gi-Bp for 24381-done@debbugs.gnu.org; Tue, 06 Sep 2016 11:40:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhITi-0007gZ-8p; Tue, 06 Sep 2016 11:40:02 -0400 Received: from lukas.physics.niu.edu ([131.156.224.124]:46931 helo=lukas) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bhITg-0004lO-QO; Tue, 06 Sep 2016 11:40:00 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <58190.27471.470400.22478@gargle.gargle.HOWL> Date: Tue, 6 Sep 2016 10:39:58 -0500 From: "Roland Winkler" To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Subject: Re: bug#24381: 25.0.95; eval-after-load for features In-Reply-To: <58bdcbb0-dd28-4e33-200d-5b5c553506d7@gmail.com> References: <56499.28484.464994.22478@gargle.gargle.HOWL> <58bdcbb0-dd28-4e33-200d-5b5c553506d7@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 24381-done Cc: 24381-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.1 (------) On Tue Sep 6 2016 Cl=C3=A9ment Pit--Claudel wrote: > Did you mean to use with-eval-after-load? eval-after-load takes a > quoted form IIRC. You are right, it must have been too early in the morning for me. I am sorry for the noise. Closing. From unknown Wed Jun 18 23:16:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 05 Oct 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator