[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] emacs-26 97b0e41: Improve documentation of safe values

From: Stefan Monnier
Subject: Re: [Emacs-diffs] emacs-26 97b0e41: Improve documentation of safe values of variables
Date: Sat, 13 Jan 2018 17:08:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> +Definitions}).  However, a safety predicate defined using @code{:safe}
> +will only be known once the byte-compiler is loaded.

[ That was the case for byte-compile-error-on-warn, but that's only
  because it's defined in the byte-compiler, so I changed this to say
  "the package that contains the defcustom".  ]

> address@hidden
> +The safe value definitions specified with @code{autoload} are copied
> +into the @file{loaddefs.el} file, and are known to Emacs since the
> +beginning of a session.

I'm not sure how to improve this description, but for the many readers
who are not hacking on Emacs's bundled files this is misleading:
e.g. for an ELPA package, the autoload will not go into loaddefs.el but
into <pkg>-autoloads.el.  And for non-packaged files, the autoload
cookie will even likely be ignored because the user won't know how to
create&update&use an autoloads file.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]