From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kostafey Newsgroups: gmane.emacs.bugs Subject: bug#12721: 24.2; package-installed-p behavior on emacs startup Date: Wed, 24 Oct 2012 16:45:40 +0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1c14ecdff8b04cccd76bc X-Trace: ger.gmane.org 1351094732 21826 80.91.229.3 (24 Oct 2012 16:05:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2012 16:05:32 +0000 (UTC) To: 12721@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 18:05:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TR3Sc-0004MK-3u for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 18:05:38 +0200 Original-Received: from localhost ([::1]:46187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR3SS-0001dT-U9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 12:05:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR3SG-0001Vz-Ib for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 12:05:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR3S4-0001yo-OZ for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 12:05:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR3S4-0001xe-Kq for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 12:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TR3Ty-00024U-4w for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: kostafey Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2012 16:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13510948117941 (code B ref -1); Wed, 24 Oct 2012 16:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2012 16:06:51 +0000 Original-Received: from localhost ([127.0.0.1]:59755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR3Tm-000241-FJ for submit@debbugs.gnu.org; Wed, 24 Oct 2012 12:06:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50974) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR0NL-0003Eb-TH for submit@debbugs.gnu.org; Wed, 24 Oct 2012 08:48:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR0LG-0006U2-II for submit@debbugs.gnu.org; Wed, 24 Oct 2012 08:45:56 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR0LG-0006Ty-Fc for submit@debbugs.gnu.org; Wed, 24 Oct 2012 08:45:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR0L9-00063P-T2 for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 08:45:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR0L7-0006RY-Uj for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 08:45:43 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:33820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR0L7-0006RI-NR for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 08:45:41 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so461147oag.0 for ; Wed, 24 Oct 2012 05:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1JnvRuDhYiTnSRmuOLwOcsODvTM9aw+iaKEmnVF6Z4c=; b=QSdNhzd0kIVOD+pGEu7ZRkdR8B/7tJJIKG7Il1zP1BLJuO/9Lowh3vCswV1Uuotb6Q tAuIcbCtLfZJsisdGuV+MFMthlhs1xMK2eB03zvSu8BvaE3TrHtmpN1gCAAIgEKPASGN tQfc932bUdP4e5y6BQq6PMxFSufMifJX5ShoCVsGGRQy1I9ZRh2uF6N6fbTB5w3yF977 MfRiEVViWhIxEvO0I1Jc0RrmBREEWtw5dcYsr3BBaQgCJUt9PhKddZYMdG8OIbbh4d3L y6jLHXr9P0ZS2V/AhNjrBQJ8j8oNiK1ifXfvK++wPmsrYyAThPiYkxTQjXVb/YVKHFOA FcFQ== Original-Received: by 10.60.12.233 with SMTP id b9mr14020564oec.95.1351082740416; Wed, 24 Oct 2012 05:45:40 -0700 (PDT) Original-Received: by 10.76.172.167 with HTTP; Wed, 24 Oct 2012 05:45:40 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 24 Oct 2012 12:06:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65978 Archived-At: --e89a8ff1c14ecdff8b04cccd76bc Content-Type: text/plain; charset=ISO-8859-1 How the function package-installed-p should behave on emacs startup if some package is already installed? It seems that it returns nil for installed package on emacs startup. Here is the full .emacs file (used for this test): (require 'package) (message "**** auto-complete is installed: %s ****" (package-installed-p 'auto-complete)) auto-complete package is installed for this moument, but during emacs sturtup *Messages* buffer shows: **** auto-complete is installed: nil **** But after sturtup the evaluation of the expression (message "**** auto-complete is installed: %s ****" (package-installed-p 'auto-complete)) returns: **** auto-complete is installed: t **** But how it is possible to install just not already installed packages on startup. For this moument all packages are re-downloaded and reinstalled for me during every emacs startup. In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-29 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: RUS value of $XMODIFIERS: nil locale-coding-system: cp1251 default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: 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: C-a C-x C-e C-a Recent messages: **** auto-complete is installed: nil **** memoize-wrap-frame-local: Symbol's function definition is void: gensym Quit Loading vc-git...done **** auto-complete is installed: t **** "**** auto-complete is installed: t ****" Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git finder-inf package tabulated-list time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) --e89a8ff1c14ecdff8b04cccd76bc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
How the function package-installed-p should behave on emacs startup if=
some package is already installed? It seems that it returns nil = for
installed package on emacs startup.

Here is the full .emacs file (used for this test):

(require 'package)
(message "**** auto-complete is inst= alled: %s ****" (package-installed-p 'auto-complete))

auto-complete package is installed for this moument, but dur= ing emacs
sturtup *Messages* buffer shows:

**** auto-complete is installed: nil ****

But a= fter sturtup the evaluation of the expression

(message "**** auto-complete is installed: %s ****= " (package-installed-p 'auto-complete))

r= eturns:

**** auto-complete is installed: t ****

But how it is possible to install just not already inst= alled packages on
startup. For this moument all packages are re-d= ownloaded and reinstalled
for me during every emacs startup.


In GNU Emacs 24.2.1 (i386-mingw-nt5.1.26= 00)
=A0of 2012-08-29 on MARVIN
Windowing system distrib= utor `Microsoft Corp.', version 5.1.2600
Configured using:
=A0`configure --with-gcc (4.6) --cflags
=A0-ID:/devel/emacs/= libs/libXpm-3.5.8/include
=A0-ID:/devel/emacs/libs/libXpm-3.5.8/s= rc
=A0-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
= =A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
=A0-ID:/devel/emacs/libs/giflib-4.1.4-1/include
=A0-ID:/deve= l/emacs/libs/jpeg-6b-4/include
=A0-ID:/devel/emacs/libs/tiff-3.8.= 2-1/include
=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_COLLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil
=A0 value of $LC_MONETARY= : nil
=A0 value of $LC_NUMERIC: nil
=A0 value of $LC_TIME: nil
=A0 value of $LANG: RUS
=A0 value of $XMODIFIERS: nil
=A0 locale-coding-system: cp1251
=A0 default enable-multiby= te-characters: t

Major mode: Fundamental

Minor = modes in effect:
=A0 tooltip-mode: t
=A0 mouse-wheel-mo= de: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
= =A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo&g= t; <help-echo>=A0
<help-echo> <help-echo> <h= elp-echo> <help-echo> <help-echo>=A0
<help-echo> <help-echo> <help-echo> <help-echo>= ; <help-echo>=A0
<menu-bar> <buffer> C-a <he= lp-echo> <help-echo> <help-echo>=A0
<menu-bar&g= t; <file> <open-file> <help-echo> <help-echo>=A0
<tool-bar> <open-file> <down-mouse-1> <mouse-1>= ; C-x=A0
C-e <help-echo> <help-echo> <menu-bar>= <buffer> C-a=A0
<help-echo> <help-echo> <he= lp-echo> <help-echo> <help-echo>=A0
<help-echo> <help-echo> <help-echo> <help-echo>= ; <menu-bar>=A0
<help-menu> <send-emacs-bug-report= >

Recent messages:
**** auto-complete= is installed: nil ****
memoize-wrap-frame-local: Symbol's function definition is void: ge= nsym
Quit
Loading vc-git...done
**** auto-com= plete is installed: t ****
"**** auto-complete is installed:= t ****"

Load-path shadows:
None found.

=
Features:
(shadow sort gnus-util mail-extr emacsbug me= ssage format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies= mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils vc-git finder-inf package<= /div>
tabulated-list time-date tooltip ediff-hook vc-hooks lisp-float-t= ype
mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontse= t
image fringe 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 s= imple
abbrev minibuffer loaddefs button faces cus-face files text-properties=
overlay sha1 md5 base64 format env code-pages mule custom widget=
hashtable-print-readable backquote make-network-process multi-tt= y emacs)

--e89a8ff1c14ecdff8b04cccd76bc--