unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26888: 25.2; doc of `with-eval-after-load'
@ 2017-05-11 16:00 Drew Adams
  2021-02-05 12:52 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2017-05-11 16:00 UTC (permalink / raw)
  To: 26888

1. The doc does not make clear that argument LIBRARY is evaluated or
that argument BODY is _not_ evaluated, at the time the overall sexp is
evaluated.

2. The doc string and the Elisp manual should use the same name, LIBRARY
or FILE.

3. There is lots of information about the behavior that is missing from
the doc of `with-eval-after-load' but is present in the doc of
`eval-after-load'.  They don't behave the same, but the latter makes use
of the former.  You cannot understand all of the the behavior of the
former without consulting the doc (or the code) of the latter.

We've done users a disservice by removing the doc for `eval-after-load'
from the manual and by not, at least, providing equivalent information
for `with-eval-after-load'.  We've apparently intentionally tried to
"dumb this down", but users deserve better help than this.

At the very least, the doc for `with-eval-after-load' should refer to
the more complete doc of `eval-after-load', and explain that the former
just expands to the latter after wrapping BODY in an anonymous function.


In GNU Emacs 25.2.1 (x86_64-w64-mingw32)
 of 2017-04-24
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --without-compress-install 'CFLAGS=-O2
 -static -g3''





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#26888: 25.2; doc of `with-eval-after-load'
  2017-05-11 16:00 bug#26888: 25.2; doc of `with-eval-after-load' Drew Adams
@ 2021-02-05 12:52 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-05 12:52 UTC (permalink / raw)
  To: Drew Adams; +Cc: 26888

Drew Adams <drew.adams@oracle.com> writes:

> At the very least, the doc for `with-eval-after-load' should refer to
> the more complete doc of `eval-after-load', and explain that the former
> just expands to the latter after wrapping BODY in an anonymous function.

The doc string here is now:

FILE is normally a feature name, but it can also be a file name,
in case that file does not provide any feature.  See `eval-after-load'
for more details about the different forms of FILE and their semantics."

So I don't think there's more to be done here, and I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-05 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 16:00 bug#26888: 25.2; doc of `with-eval-after-load' Drew Adams
2021-02-05 12:52 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).