GNU bug report logs - #17841
24.3; Info description of Emacs startup could better describe package initialization

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Alan.Wehmann@HIDDEN; dated Tue, 24 Jun 2014 05:55:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 17841 <at> debbugs.gnu.org:


Received: (at 17841) by debbugs.gnu.org; 24 Jun 2014 15:31:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 11:31:20 2014
Received: from localhost ([127.0.0.1]:59440 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzSgp-0003h2-FK
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 11:31:19 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:39945)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1WzSgm-0003gl-4Y
 for 17841 <at> debbugs.gnu.org; Tue, 24 Jun 2014 11:31:17 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0N7O00A00J22F400@HIDDEN> for 17841 <at> debbugs.gnu.org;
 Tue, 24 Jun 2014 18:31:09 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0N7O00AHDJ3WAB30@HIDDEN>;
 Tue, 24 Jun 2014 18:31:09 +0300 (IDT)
Date: Tue, 24 Jun 2014 18:31:07 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#17841: 24.3;
 Info description of Emacs startup could better describe
 package	initialization
In-reply-to: <21416.59077.521255.155563@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Alan.Wehmann@HIDDEN
Message-id: <8338eus4sk.fsf@HIDDEN>
References: <21416.59077.521255.155563@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 17841
Cc: 17841 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: alan.wehmann@HIDDEN
> Date: Mon, 23 Jun 2014 21:47:33 -0500
> 
> Info node "(emacs) Initial Options" says:
> 
> "   Some initial options affect the loading of the initialization file.
> Normally, Emacs first loads `site-start.el' if it exists, then your own
> initialization file if it exists, and finally the default
> initialization file `default.el' if it exists (*note Init File::)."
> 
> It fails to mention package initialization in this paragraph & I think
> that it should.  It is one of the first places where I looked to find
> out when in the startup sequence packages are initialized.  I found
> other locations which described when packages are initializaed, but was
> confused for a while after reading this paragraph and no mention was
> made of package initialization.

In the Emacs manual, I typed "i package TAB TAB" and was presented
with a list that included "package-install" and "package-initialize".
They both land me in the "Package Installation" section which seems to
describe what you wanted.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17841; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Jun 2014 05:54:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 24 01:54:58 2014
Received: from localhost ([127.0.0.1]:58791 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WzJh3-0002Kl-BN
	for submit <at> debbugs.gnu.org; Tue, 24 Jun 2014 01:54:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59338)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <alan.wehmann@HIDDEN>) id 1WzGm7-0005Kc-O3
 for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 22:48:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alan.wehmann@HIDDEN>) id 1WzGly-00013b-8o
 for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 22:47:54 -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.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50,
 FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44257)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <alan.wehmann@HIDDEN>) id 1WzGly-00013X-5X
 for submit <at> debbugs.gnu.org; Mon, 23 Jun 2014 22:47:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:32826)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <alan.wehmann@HIDDEN>) id 1WzGlt-0001vn-QI
 for bug-gnu-emacs@HIDDEN; Mon, 23 Jun 2014 22:47:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alan.wehmann@HIDDEN>) id 1WzGlp-000135-DU
 for bug-gnu-emacs@HIDDEN; Mon, 23 Jun 2014 22:47:45 -0400
Received: from mail-yk0-x233.google.com ([2607:f8b0:4002:c07::233]:40273)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <alan.wehmann@HIDDEN>) id 1WzGlp-00012x-7P
 for bug-gnu-emacs@HIDDEN; Mon, 23 Jun 2014 22:47:41 -0400
Received: by mail-yk0-f179.google.com with SMTP id 20so5209482yks.24
 for <bug-gnu-emacs@HIDDEN>; Mon, 23 Jun 2014 19:47:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:mime-version:content-type:content-transfer-encoding:message-id
 :date:to:subject:reply-to;
 bh=sDuZP1XGXyr3dSRdRg0HkjmA8rcC4vecXO29qsp2D7s=;
 b=tOqIxCq9sjcjbNqGKuRq6VRVCw7Eki+epOisqdCdoifw552Lpt6arX1fkefzqpQ1N9
 0yjSr0uv92kr+2nglgI67/jHZwnR1z9PaFlqUSiRWuz2PPro3SXd6m053nuNT+s9X5Re
 IaWGOm/s4PesLz6DcdS7JOefj1r+ZRif3aV5STy8ZWEM4SWNay2W2rd6MClA2keDy4tk
 B2yp579TD1vU0mU4FAPKUN5O7qUW9QW/KTJG2UDPVEOiJRTOT3VVJDJb6HHUhZi0iLwQ
 qf2kcIFlGSht2/z66c18arQh+CZDvikrS0UFVAY+7tyysabIXQf+cW+fUKkAaF9HSPGL
 CvNw==
X-Received: by 10.236.117.169 with SMTP id j29mr42271263yhh.118.1403578060065; 
 Mon, 23 Jun 2014 19:47:40 -0700 (PDT)
Received: from 171-134-121-173.kscymo.spcsdns.net ([173.121.134.171])
 by mx.google.com with ESMTPSA id k29sm32694248yha.33.2014.06.23.19.47.38
 for <multiple recipients>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 23 Jun 2014 19:47:39 -0700 (PDT)
From: alan.wehmann@HIDDEN
X-Google-Original-From: Alan.Wehmann@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <21416.59077.521255.155563@HIDDEN>
Date: Mon, 23 Jun 2014 21:47:33 -0500
To: bug-gnu-emacs@HIDDEN
Subject: 24.3; Info description of Emacs startup could better describe package
 initialization
X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-apple-darwin)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 24 Jun 2014 01:54:54 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Alan.Wehmann@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.0 (---)

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

Info node "(emacs) Initial Options" says:

"   Some initial options affect the loading of the initialization file.
Normally, Emacs first loads `site-start.el' if it exists, then your own
initialization file if it exists, and finally the default
initialization file `default.el' if it exists (*note Init File::)."

It fails to mention package initialization in this paragraph & I think
that it should.  It is one of the first places where I looked to find
out when in the startup sequence packages are initialized.  I found
other locations which described when packages are initializaed, but was
confused for a while after reading this paragraph and no mention was
made of package initialization.

-------------------------------------------------------

More specifics: I had upgraded bookmarks+ via melpa.  Since I already
had melpa in the 'package-archives list I had removed the following code
from my initialization file:

(when (> emacs-major-version 23)
  (require 'package)
  (package-initialize)
  (add-to-list 'package-archives 
	       '("melpa" . "http://melpa.milkbox.net/packages/")
	       'APPEND))

I then realized that the variable load-path wasn't pointing to
"~/.emacs.d/elpa/bookmark+-20140531.104" just after my initialization
file was loaded (but it was added later).  Since I had a reason to have
"(require 'bookmark+)" in my initialization file, I ran into trouble.

I have since restored the lines

(when (> emacs-major-version 23)
  (require 'package)
  (package-initialize))

to my initialization file.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1265
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
'--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
-isystem
/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
-F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''

Important settings:
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Custom

Minor modes in effect:
  mail-abbrevs-mode: t
  display-time-mode: t
  dynamic-completion-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
n C-d C-d / C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-d C-d / C-x C-s C-v C-v C-v <escape> x C-g <escape> 
: ( b m <backspace> <backspace> C-g C-h f v m - s e 
s s <tab> C-SPC C-a <escape> w C-g <escape> : ( C-y 
) <return> C-h v v m - u s e r - a g e n t <return> 
C-g C-x 1 C-x C-b C-c C-c C-x C-b n n n n n n n SPC 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> C-h f <return> q 
<escape> , <escape> , C-x C-b n n n n n n SPC <left> 
C-x C-b <escape> > SPC q <down> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> C-h f <return> <help-echo> <down-mouse-1> <mouse-2> 
C-f C-x p m <escape> C-w <escape> C-w <escape> C-w 
<escape> C-w <return> C-l C-l C-h i g ( v m ) <return> 
m s e n d <tab> <return> SPC SPC 1 <help-echo> <down-mouse-1> 
<mouse-1> C-h v <return> q <escape> x c u s t o m i 
z e - v a r <tab> <return> <return> <down-mouse-1> 
<down-mouse-1> <mouse-1> A l a n . W e h m a n n @ 
g m a i l . c o m <help-echo> <down-mouse-1> C-x C-b 
n n n n n n n n n n n n n n SPC C-SPC C-v <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> C-x r s c C-x C-b d SPC <escape> x r e p o r 
t <tab> <return>

Recent messages:

Creating customization items...
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
To install your edits, invoke [State] and choose the Set operation
<<< Type SPC or RET to bury the buffer list >>>
Mark activated
Saved text from "This bug report will be sent to the Bug-"
<<< Type SPC or RET to bury the buffer list >>> [3 times]

Load-path shadows:
/Applications/Emacs.app/Contents/Resources/lisp/whitespace hides /Users/alanwehmann/elisp/whitespace
/Applications/Emacs.app/Contents/Resources/lisp/align hides /Users/alanwehmann/elisp/align
/Applications/Emacs.app/Contents/Resources/lisp/textmodes/texinfo hides /Users/alanwehmann/elisp/my_lisp/texinfo
/Applications/Emacs.app/Contents/Resources/lisp/macros hides /Users/alanwehmann/elisp/my_lisp/macros

Features:
(etags sh-script smie executable vc-bzr find-func uudecode uce
supercite regi starttls spam-report spam spam-stat gnus-uu yenc
gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig
mailcap gnus-sum nnoo gnus-group gnus-undo nnmail mail-source
gnus-start gnus-spec gnus-int gnus-range gnus-win sieve-manage shr
rmail pop3 mspools metamail mairix mailclient browse-url mail-hist
ring mail-extr imap hashcash gnus-dired gnus gnus-ems nnheader fortune
feedmail eudc-vars ecomplete binhex jka-compr shadow mailalias
vm-reply emacsbug message cl-macs gv format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader
view misearch multi-isearch dired-aux mailabbrev mule-util ebuff-menu
electric image-file parse-time vc-cvs cus-edit wid-edit time warnings
edmacro kmacro smtpmail auth-source eieio byte-opt bytecomp
byte-compile cconv gnus-util password-cache sendmail rfc2047 rfc2045
ietf-drums mail-utils vm-rfaddons vm-undo vm-virtual vm-summary-faces
utf7 mm-util mail-prsvr vm-imap vm-thread vm-mime vm-toolbar vm-menu
vm-window vm-folder vm-crypto vm-summary vm-mouse vm-page vm-motion
vm-minibuf vm-message vm-misc vm-macro edebug vm-pop vm-autoloads
vm-vars vm-version vm completion cl bookmark+ bookmark+-key easy-mmode
advice help-fns cl-lib advice-preload dired-x dired bookmark+-1
bookmark+-bmu help-mode bookmark+-lit bookmark pp thingatpt info
easymenu desktop cus-start cus-load bookmark+-autoloads package
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
ns multi-tty emacs)

-- 
Alan Wehmann
Alan.Wehmann@HIDDEN




Acknowledgement sent to Alan.Wehmann@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17841; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.