]> git.eshelyaron.com Git - emacs.git/commitdiff
Explain when package-initialize isn't called
authorNoam Postavsky <npostavs@gmail.com>
Sat, 2 Jul 2016 01:15:28 +0000 (21:15 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 3 Jul 2016 13:19:23 +0000 (09:19 -0400)
* doc/lispref/os.texi (Startup Summary): Explain that package-initialize
is not called when options -q, -Q, or --batch were passed (Bug #19151).

doc/lispref/os.texi

index 5f189b984a32f1de6105d3c8079f31ff24ac11ba..ec14b014e52cbc32594187f4aaa660b4e1c231f9 100644 (file)
@@ -155,9 +155,13 @@ It loads your abbrevs from the file specified by
 option @samp{--batch} was specified.
 
 @item
-If @code{package-enable-at-startup} is non-@code{nil}, it calls the
-function @code{package-initialize} to activate any optional Emacs Lisp
-package that has been installed.  @xref{Packaging Basics}.
+It calls the function @code{package-initialize} to activate any
+optional Emacs Lisp package that has been installed.  @xref{Packaging
+Basics}.  However, Emacs doesn't initialize packages when
+@code{package-enable-at-startup} is @code{nil} or when it's started
+with one of the options @samp{-q}, @samp{-Q}, or @samp{--batch}.  To
+initialize packages in the latter case, @code{package-initialize}
+should be called explicitly (e.g., via the @samp{--funcall} option).
 
 @vindex after-init-time
 @item