From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrey Orst Newsgroups: gmane.emacs.bugs Subject: bug#40638: 28.0.50; packages not loaded correctly with use-package on native-comp branch Date: Wed, 15 Apr 2020 12:44:00 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000089c3f105a35128ec" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92174"; mail-complaints-to="usenet@ciao.gmane.io" To: 40638@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 15 11:45:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOebb-000NtR-UF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Apr 2020 11:45:16 +0200 Original-Received: from localhost ([::1]:46878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOeba-0008Q3-V9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Apr 2020 05:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38566) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOebQ-0008MK-8X for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOebO-0006zx-Ai for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:45:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOebO-0006zq-7z for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOebO-000304-6Z for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Orst Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Apr 2020 09:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40638 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158694386011464 (code B ref -1); Wed, 15 Apr 2020 09:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Apr 2020 09:44:20 +0000 Original-Received: from localhost ([127.0.0.1]:35262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOeah-0002yq-JP for submit@debbugs.gnu.org; Wed, 15 Apr 2020 05:44:20 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOeaf-0002yi-OL for submit@debbugs.gnu.org; Wed, 15 Apr 2020 05:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38354) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOead-00087v-Bb for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:44:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOeab-0006j3-DP for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:44:15 -0400 Original-Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]:43965) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOeab-0006is-7y for bug-gnu-emacs@gnu.org; Wed, 15 Apr 2020 05:44:13 -0400 Original-Received: by mail-yb1-xb2e.google.com with SMTP id o70so8808907ybg.10 for ; Wed, 15 Apr 2020 02:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WrNzF0UJbN6SE1ObUk/nxoIRMK4UBamj9wYp2u/R56c=; b=Wd+r4Y2OrEjGmlddDlkVl7+8VfKvSE+JlCocvCjENek4vGnqa3/zwhRHBxfwBClk20 nNktB47yV9nSegduMVtcW8510wvGmIuKixcL2dOHRIHbYjxyh2MEP/e0HaZCDlvPe0No gvvABGLp/wgsjzuWnydfRgwu4rSw+xVTcme1FyO7By+hh4TjMPoBwyneZ2chO8OKXPAV AM1s8d9vU+z3DfAVsR84SeiN9zl0EjSgBCeMebN5M227JlNwmkT9AslixlPyHUU5TQRL ZDg4zP1XSU4oD5mzL7octKEhyDq4QCguxlUehBMgxV4o9GidC0Uuv9/LvPeIJ2eUqH3y SmkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WrNzF0UJbN6SE1ObUk/nxoIRMK4UBamj9wYp2u/R56c=; b=Q7ufuypBgDN0dBQ4tkts4+XA/zKK1razrAnmNeV3XkTjAcjSAl3ZKX58W/E+VJFhYa ah4HVmy3x0h+PlmKvEUV3l2znPqH0e1gh5Qx9/AlGRv0NE7r16h+/WtEPC2ph6ysH0yO t7AE2PFRFtapU9VsgGCveeGgIDYWAa2vLVY3/AHpvZ0d+tT2faEuhSn5KVUz+cByfz2n v3fxzVtItLacOC11lKhIXX/RFWNVMYLagVKnE+fSLRSbS8l9yBpiq90PYPOk9y2bIxU2 ALZno4y2vvmgN9OBs1xQJ7ArQ/y6wX+4vL0oISsblqa+r+JHMR54/oHQI8ocGdyghp+f QHsA== X-Gm-Message-State: AGi0PubRteIhMkq4zICZOi4ft4w5cvy3KJSBusKF7O8q9lduEvSSDtFh 59D/Mh+5ziUm1CO+HHtCNt+CoqvZ+8minlVgTNp6Ks9l X-Google-Smtp-Source: APiQypIcqQ+ffoSCjP4Dszt03CUKHvpV1ZpjNam+wS8u6NeFemJ3nfZS8ZW2FgvjYbc0xqT4eXuFbR9WoiO8j11+EUA= X-Received: by 2002:a5b:cc7:: with SMTP id e7mr7158534ybr.7.1586943851347; Wed, 15 Apr 2020 02:44:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178390 Archived-At: --00000000000089c3f105a35128ec Content-Type: text/plain; charset="UTF-8" I'm using my usual init file with native-comp build of Emacs, and it doesn't work, while in current master version it works just fine. Packages seem to load correctly only if there are `:init' keyword in `use-package' declaration. The below is example init file that I can represent the problem with: (defvar package-archives) (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/"))) (when (version= emacs-version "26.2") (defvar gnutls-algorithm-priority) (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")) (package-initialize) (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (require 'use-package) (setq use-package-always-ensure t) (use-package company :bind (:map company-active-map ("TAB" . company-complete-common-or-cycle) ("" . company-complete-common-or-cycle) ("" . company-select-previous) ("" . company-select-previous) ("C-n" . company-select-next) ("C-p" . company-select-previous)) :hook (after-init . global-company-mode) :config (setq company-require-match 'never company-minimum-prefix-length 2 company-tooltip-align-annotations t company-frontends '(company-pseudo-tooltip-unless-just-one-frontend company-preview-frontend company-echo-metadata-frontend) company-backends '(company-capf company-files))) (provide 'init) With this init file, load Emacs and open `*scratch*' buffer. Company mode should be loaded and active because of `:hook', but no configurations are applied, e.g. `company-minimum-prefix-length' is `3', and bindings are not defined. The very same init file can be loaded in Emacs built from master and it will configure company properly. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2020-04-15 built on toolbox Repository revision: 208a11d3f0ede17b29da45c2491b703b6942a764 Repository branch: feature/native-comp Windowing system distributor 'Fedora Project', version 11.0.12006000 System Description: Fedora 31 (Workstation Edition) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Quit [3 times] funcall-interactively: End of buffer Making completion list... Configured using: 'configure --with-nativecomp --prefix=/home/andreyorst/.local/emacs --bindir=/home/andreyorst/.local/bin' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-company-mode: t company-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils company-oddmuse company-keywords company-etags etags fileloop generator xref project ring company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company edmacro kmacro pcase init cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 218313 8591) (symbols 48 15381 1) (strings 32 75978 3165) (string-bytes 1 2116064) (vectors 16 21109) (vector-slots 8 327508 7598) (floats 8 44 40) (intervals 56 336 0) (buffers 992 12)) -- Best regards, Andrey Orst --00000000000089c3f105a35128ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm using my usual init file with native-comp build of= Emacs, and it
doesn't work, while in current master version it work= s just
fine. Packages seem to load correctly only if there are `:init= 9; keyword
in `use-package' declaration. The below is example init f= ile that I can
represent the problem with:

=C2=A0 =C2=A0 (defvar = package-archives)
=C2=A0 =C2=A0 (setq package-archives
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 '(("gnu" . "https://elpa.gnu.org/packages/")
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("melpa" . "https://melpa.org/packages/")))

=C2= =A0 =C2=A0 (when (version=3D emacs-version "26.2")
=C2=A0 =C2= =A0 =C2=A0 (defvar gnutls-algorithm-priority)
=C2=A0 =C2=A0 =C2=A0 (setq= gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
=C2=A0 =C2= =A0 (package-initialize)

=C2=A0 =C2=A0 (unless (package-installed-p = 'use-package)
=C2=A0 =C2=A0 =C2=A0 (package-refresh-contents)
=C2= =A0 =C2=A0 =C2=A0 (package-install 'use-package))

=C2=A0 =C2=A0 = (require 'use-package)
=C2=A0 =C2=A0 (setq use-package-always-ensure= t)

=C2=A0 =C2=A0 (use-package company
=C2=A0 =C2=A0 =C2=A0 :bind= (:map
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0company-active-ma= p
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("TAB" . com= pany-complete-common-or-cycle)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0("<tab>" . company-complete-common-or-cycle)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("<S-Tab>" . c= ompany-select-previous)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= ("<backtab>" . company-select-previous)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("C-n" . company-select-next)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("C-p" . compan= y-select-previous))
=C2=A0 =C2=A0 =C2=A0 :hook (after-init . global-comp= any-mode)
=C2=A0 =C2=A0 =C2=A0 :config
=C2=A0 =C2=A0 =C2=A0 (setq com= pany-require-match 'never
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = company-minimum-prefix-length 2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 company-tooltip-align-annotations t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 company-frontends '(company-pseudo-tooltip-unless-just-one-f= rontend
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 company-preview-frontend=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 company-echo-metadata-frontend)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 company-backends '(company-ca= pf company-files)))

=C2=A0 =C2=A0 (provide 'init)

With th= is init file, load Emacs and open `*scratch*' buffer. Company
mode s= hould be loaded and active because of `:hook', but no
configurations= are applied, e.g. `company-minimum-prefix-length' is `3',
and b= indings are not defined. The very same init file can be loaded in
Emacs = built from master and it will configure company properly.


In GNU= Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo v= ersion 1.16.0)
=C2=A0of 2020-04-15 built on toolbox
Repository revisi= on: 208a11d3f0ede17b29da45c2491b703b6942a764
Repository branch: feature/= native-comp
Windowing system distributor 'Fedora Project', versi= on 11.0.12006000
System Description: Fedora 31 (Workstation Edition)
=
Recent messages:
For information about GNU Emacs and the GNU system,= type C-h C-a.
Making completion list...
Quit [3 times]
funcall-in= teractively: End of buffer
Making completion list...

Configured u= sing:
=C2=A0'configure --with-nativecomp --prefix=3D/home/andreyorst= /.local/emacs
=C2=A0--bindir=3D/home/andreyorst/.local/bin'

C= onfigured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTING= S GLIB NOTIFY
INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIBTOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2<= br>GMP

Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
= =C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf= -8-unix

Major mode: Lisp Interaction

Minor modes in effect:=C2=A0 global-company-mode: t
=C2=A0 company-mode: t
=C2=A0 overrid= e-global-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wh= eel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0= file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font= -lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mod= e: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-p= ath shadows:
None found.

Features:
(shadow sort mail-extr emac= sbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-se= c epa derived epg epg-config gnus-util
rmail rmail-loaddefs text-propert= y-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mail= abbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util = mail-prsvr mail-utils company-oddmuse
company-keywords company-etags eta= gs fileloop generator xref project
ring company-gtags company-dabbrev-co= de company-dabbrev company-files
company-capf company-cmake company-xcod= e company-clang company-semantic
company-eclim company-template company-= bbdb company edmacro kmacro pcase
init cl-extra help-mode use-package us= e-package-ensure
use-package-delight use-package-diminish use-package-bi= nd-key bind-key
easy-mmode use-package-core finder-inf info package easy= menu browse-url
url-handlers url-parse auth-source cl-seq eieio eieio-co= re cl-macs
eieio-loaddefs password-cache json subr-x map url-vars seq by= te-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc e= lectric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x= -win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe<= br>tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog= -mode register page tab-bar menu-bar rfn-eshadow isearch timer
select sc= roll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-col= ors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietn= amese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew = greek romanian slovak czech european ethiopic indian
cyrillic chinese co= mposite charscript charprop case-table epa-hook
jka-cmpr-hook help simpl= e abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face mac= roexp files text-properties overlay sha1 md5
base64 format env code-page= s mule custom widget hashtable-print-readable
backquote threads dbusbind= inotify lcms2 dynamic-setting
system-font-setting font-render-setting c= airo move-toolbar gtk x-toolkit
x multi-tty make-network-process emacs)<= br>
Memory information:
((conses 16 218313 8591)
=C2=A0(symbols 48= 15381 1)
=C2=A0(strings 32 75978 3165)
=C2=A0(string-bytes 1 2116064= )
=C2=A0(vectors 16 21109)
=C2=A0(vector-slots 8 327508 7598)
=C2= =A0(floats 8 44 40)
=C2=A0(intervals 56 336 0)
=C2=A0(buffers 992 12)= )

--
<= div dir=3D"ltr">Best regards,
Andrey Orst
=
--00000000000089c3f105a35128ec--