GNU bug report logs - #72887
31.0.50; use-package: :diminish keyword doesn't work unless form re-evaluated

Previous Next

Package: emacs;

Reported by: emacs-bug <at> cobaltmailbox.com

Date: Fri, 30 Aug 2024 08:49:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72887 in the body.
You can then email your comments to 72887 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72887; Package emacs. (Fri, 30 Aug 2024 08:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to emacs-bug <at> cobaltmailbox.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 30 Aug 2024 08:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: emacs-bug <at> cobaltmailbox.com
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50;
 use-package: :diminish keyword doesn't work unless form re-evaluated
Date: Thu, 29 Aug 2024 22:33:57 -0700
the use-package :diminish keyword is not removing indicators from the mode-line unless the form is evaluated a second time.  This was previously working as expected.  This might be related to the fix for #72453.

;; evaluate the following forms (in *scratch* or from init file)
(use-package diminish :ensure t)
(use-package which-key :init (which-key-mode) :diminish)

;; "WK" indicator appears in mode-line.

;; re-evaluate and the "WK" indicator is removed as expected.
(use-package which-key :init (which-key-mode) :diminish)


In GNU Emacs 31.0.50 (build 1, aarch64-unknown-linux-gnu, GTK+ Version
 3.24.41, cairo version 1.18.0) of 2024-08-28 built on ubuntu
Repository revision: e97ab1c41332e179939f457cc010a606a5124ff8
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12302006
System Description: Ubuntu 24.04.1 LTS

Configured using:
 'configure --with-pgtk3 --prefix=/usr/local/emacs
 --with-native-compilation=aot --with-tree-sitter --with-xwidgets
 CFLAGS=-O2'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBOTF
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB

Important settings:
  value of $LC_ALL: en_US.UTF-8
  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:
  which-key-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-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
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug which-key use-package-diminish comp-run
comp-common rx diminish warnings compile comint ansi-osc ansi-color ring
diminish-autoloads loaddefs-gen lisp-mnt radix-tree tar-mode arc-mode
archive-mode cus-edit pp cus-start cus-load wid-edit mm-archive message
sendmail yank-media dired dired-loaddefs rfc822 mml mml-sec epa derived
gnus-util text-property-search mailabbrev gmm-utils mailheader mm-decode
mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http
url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr url-gw nsm puny epg rfc6068 epg-config finder-inf package
browse-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers
url-parse auth-source eieio eieio-core icons password-cache json map
byte-opt url-vars cl-macs gv cl-extra help-mode use-package-ensure
cl-seq use-package-core bytecomp byte-compile time-date subr-x
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads xwidget-internal dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process
native-compile emacs)

Memory information:
((conses 16 158728 22928) (symbols 48 12379 0) (strings 32 43742 1983)
 (string-bytes 1 1294473) (vectors 16 20312)
 (vector-slots 8 251460 8250) (floats 8 59 22) (intervals 56 331 0)
 (buffers 992 13))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72887; Package emacs. (Fri, 30 Aug 2024 10:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 72887 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: emacs-bug <at> cobaltmailbox.com,
 Stefan Kangas <stefankangas <at> gmail.com>
Cc: 72887 <at> debbugs.gnu.org
Subject: Re: bug#72887: 31.0.50;
 use-package: :diminish keyword doesn't work unless form re-evaluated
Date: Fri, 30 Aug 2024 13:53:06 +0300
> Date: Thu, 29 Aug 2024 22:33:57 -0700
> From: emacs-bug <at> cobaltmailbox.com
> 
> the use-package :diminish keyword is not removing indicators from the mode-line unless the form is evaluated a second time.  This was previously working as expected.  This might be related to the fix for #72453.
> 
> ;; evaluate the following forms (in *scratch* or from init file)
> (use-package diminish :ensure t)
> (use-package which-key :init (which-key-mode) :diminish)
> 
> ;; "WK" indicator appears in mode-line.
> 
> ;; re-evaluate and the "WK" indicator is removed as expected.
> (use-package which-key :init (which-key-mode) :diminish)

Stefan, can you please look into this?

(IMNSHO, the documentation of :diminish in the use-package manual is
less than satisfactory.  It should at least say what does this keyword
do when diminish _is_ installed.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72887; Package emacs. (Sat, 14 Sep 2024 07:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 72887 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: emacs-bug <at> cobaltmailbox.com, 72887 <at> debbugs.gnu.org
Subject: Re: bug#72887: 31.0.50;
 use-package: :diminish keyword doesn't work unless form re-evaluated
Date: Sat, 14 Sep 2024 10:31:52 +0300
Ping! Stefan, could you please look into this?

> Cc: 72887 <at> debbugs.gnu.org
> Date: Fri, 30 Aug 2024 13:53:06 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Date: Thu, 29 Aug 2024 22:33:57 -0700
> > From: emacs-bug <at> cobaltmailbox.com
> > 
> > the use-package :diminish keyword is not removing indicators from the mode-line unless the form is evaluated a second time.  This was previously working as expected.  This might be related to the fix for #72453.
> > 
> > ;; evaluate the following forms (in *scratch* or from init file)
> > (use-package diminish :ensure t)
> > (use-package which-key :init (which-key-mode) :diminish)
> > 
> > ;; "WK" indicator appears in mode-line.
> > 
> > ;; re-evaluate and the "WK" indicator is removed as expected.
> > (use-package which-key :init (which-key-mode) :diminish)
> 
> Stefan, can you please look into this?
> 
> (IMNSHO, the documentation of :diminish in the use-package manual is
> less than satisfactory.  It should at least say what does this keyword
> do when diminish _is_ installed.)
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72887; Package emacs. (Sat, 14 Sep 2024 13:04:02 GMT) Full text and rfc822 format available.

Message #14 received at 72887 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: emacs-bug <at> cobaltmailbox.com, 72887 <at> debbugs.gnu.org
Subject: Re: bug#72887: 31.0.50; use-package: :diminish keyword doesn't work
 unless form re-evaluated
Date: Sat, 14 Sep 2024 06:02:15 -0700
emacs-bug <at> cobaltmailbox.com writes:

> the use-package :diminish keyword is not removing indicators from the
> mode-line unless the form is evaluated a second time.  This was
> previously working as expected.  This might be related to the fix for
> #72453.
>
> ;; evaluate the following forms (in *scratch* or from init file)
> (use-package diminish :ensure t)
> (use-package which-key :init (which-key-mode) :diminish)

I can't reproduce the bug on master using the following recipe (starting
from emacs -Q):

    (progn
      (package-initialize)
      (use-package diminish :ensure t)
      (use-package which-key :init (which-key-mode) :diminish))

Are there any additional steps required to reproduce the bug?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72887; Package emacs. (Sat, 14 Sep 2024 16:21:01 GMT) Full text and rfc822 format available.

Message #17 received at 72887 <at> debbugs.gnu.org (full text, mbox):

From: emacs-bug <at> cobaltmailbox.com
To: 72887 <at> debbugs.gnu.org
Subject: Re: bug#72887: 31.0.50;
 use-package: :diminish keyword doesn't work unless form re-evaluated
Date: Sat, 14 Sep 2024 09:19:55 -0700
This was fixed by the bca315aa "Fix broken use-package tests" change.  I apologize for not updating the ticket earlier.

Thank you

On Sat, Sep 14, 2024, at 06:02, Stefan Kangas wrote:
> emacs-bug <at> cobaltmailbox.com writes:
>
>> the use-package :diminish keyword is not removing indicators from the
>> mode-line unless the form is evaluated a second time.  This was
>> previously working as expected.  This might be related to the fix for
>> #72453.
>>
>> ;; evaluate the following forms (in *scratch* or from init file)
>> (use-package diminish :ensure t)
>> (use-package which-key :init (which-key-mode) :diminish)
>
> I can't reproduce the bug on master using the following recipe (starting
> from emacs -Q):
>
>     (progn
>       (package-initialize)
>       (use-package diminish :ensure t)
>       (use-package which-key :init (which-key-mode) :diminish))
>
> Are there any additional steps required to reproduce the bug?




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sat, 14 Sep 2024 18:14:02 GMT) Full text and rfc822 format available.

Notification sent to emacs-bug <at> cobaltmailbox.com:
bug acknowledged by developer. (Sat, 14 Sep 2024 18:14:02 GMT) Full text and rfc822 format available.

Message #22 received at 72887-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: emacs-bug <at> cobaltmailbox.com, 72887-done <at> debbugs.gnu.org
Subject: Re: bug#72887: 31.0.50; use-package: :diminish keyword doesn't work
 unless form re-evaluated
Date: Sat, 14 Sep 2024 11:12:14 -0700
emacs-bug <at> cobaltmailbox.com writes:

> This was fixed by the bca315aa "Fix broken use-package tests" change.  I apologize for not updating the ticket earlier.

OK, thanks.  I'm therefore closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Oct 2024 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 307 days ago.

Previous Next


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