* bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$
@ 2024-08-26 10:53 Marc Fargas
2024-08-26 11:15 ` Rudolf Schlatte
2024-08-26 11:34 ` Eli Zaretskii
0 siblings, 2 replies; 6+ messages in thread
From: Marc Fargas @ 2024-08-26 10:53 UTC (permalink / raw)
To: 72818
Hi,
In the Emacs LISP Manual you see:
-- Variable: after-make-frame-functions
An abnormal hook run by ‘make-frame’ after it created the frame.
Each function in ‘after-make-frame-functions’ receives one
argument, the frame just created.
This hook cannot be configured with `use-package' :hook keyword as it
does not end in `-hook'.
The following example will result in `after-make-frame-functions-hook'
being created instead of adding the function to `after-make-frame-functions':
(use-package fontaine ; Fonts!
:ensure t
:hook ((after-make-frame-functions . ; Apply fontaine to new frames
(lambda(frame)
(with-selected-frame frame
(fontaine-apply-current-preset)))))
; :custom removed for brevity.
:config
(when (display-graphic-p)
(if (> (frame-monitor-attribute 'scale-factor) 1.0)
(fontaine-set-preset 'large)
(fontaine-set-preset 'regular))))
Marc
What follows is from report-emacs-bug:
In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43,
cairo version 1.18.0)
Repository revision: emacs-29.4
Repository branch: master
System Description: Fedora Linux 40.20240824.0 (Silverblue)
Configured using:
'configure
--prefix=/nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4
--disable-build-details --with-modules --with-pgtk
--with-compress-install --with-toolkit-scroll-bars
--with-native-compilation --without-imagemagick --with-mailutils
--without-small-ja-dic --with-tree-sitter --without-xinput2
--with-xwidgets --with-dbus --with-selinux'
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB
Important settings:
value of $EMACSLOADPATH:
value of $EMACSNATIVELOADPATH:
value of $LC_MONETARY: es_ES.UTF-8
value of $LC_NUMERIC: es_ES.UTF-8
value of $LC_TIME: es_ES.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: ELisp/d
Minor modes in effect:
consult-notes-denote-mode: t
denote-rename-buffer-mode: t
denote-menu-bar-mode: t
orglink-mode: t
envrc-global-mode: t
envrc-mode: t
server-mode: t
pdf-occur-global-minor-mode: t
subword-mode: t
show-smartparens-global-mode: t
show-smartparens-mode: t
smartparens-mode: t
rainbow-delimiters-mode: t
corfu-popupinfo-mode: t
corfu-mode: t
auto-dark-mode: t
mood-line-mode: t
vertico-mode: t
marginalia-mode: t
winner-mode: t
windmove-mode: t
shell-dirtrack-mode: t
midnight-mode: t
savehist-mode: t
global-auto-revert-mode: t
recentf-mode: t
save-place-mode: t
delete-selection-mode: t
repeat-mode: t
elpaca-use-package-mode: t
override-global-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
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:
/nix/store/1l0g3a5agvlnqkqj706cvx4glfv9l4s6-emacs-packages-deps/share/emacs/site-lisp/site-start hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/site-lisp/site-start
/var/home/marc/.config/emacs/elpaca/builds/transient/transient hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/transient
/var/home/marc/.config/emacs/elpaca/builds/modus-themes/theme-loaddefs hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/theme-loaddefs
/var/home/marc/.config/emacs/elpaca/builds/use-package-ensure-system-package/use-package-ensure-system-package hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/use-package/use-package-ensure-system-package
/var/home/marc/.config/emacs/elpaca/builds/org/ox hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox
/var/home/marc/.config/emacs/elpaca/builds/org/ox-texinfo hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-texinfo
/var/home/marc/.config/emacs/elpaca/builds/org/ox-publish hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-publish
/var/home/marc/.config/emacs/elpaca/builds/org/ox-org hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-org
/var/home/marc/.config/emacs/elpaca/builds/org/ox-odt hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-odt
/var/home/marc/.config/emacs/elpaca/builds/org/ox-md hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-md
/var/home/marc/.config/emacs/elpaca/builds/org/ox-man hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-man
/var/home/marc/.config/emacs/elpaca/builds/org/ox-latex hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-latex
/var/home/marc/.config/emacs/elpaca/builds/org/ox-koma-letter hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-koma-letter
/var/home/marc/.config/emacs/elpaca/builds/org/ox-icalendar hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-icalendar
/var/home/marc/.config/emacs/elpaca/builds/org/ox-html hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-html
/var/home/marc/.config/emacs/elpaca/builds/org/ox-beamer hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-beamer
/var/home/marc/.config/emacs/elpaca/builds/org/ox-ascii hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ox-ascii
/var/home/marc/.config/emacs/elpaca/builds/org/org hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org
/var/home/marc/.config/emacs/elpaca/builds/org/org-version hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-version
/var/home/marc/.config/emacs/elpaca/builds/org/org-timer hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-timer
/var/home/marc/.config/emacs/elpaca/builds/org/org-tempo hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-tempo
/var/home/marc/.config/emacs/elpaca/builds/org/org-table hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-table
/var/home/marc/.config/emacs/elpaca/builds/org/org-src hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-src
/var/home/marc/.config/emacs/elpaca/builds/org/org-refile hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-refile
/var/home/marc/.config/emacs/elpaca/builds/org/org-protocol hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-protocol
/var/home/marc/.config/emacs/elpaca/builds/org/org-plot hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-plot
/var/home/marc/.config/emacs/elpaca/builds/org/org-persist hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-persist
/var/home/marc/.config/emacs/elpaca/builds/org/org-pcomplete hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-pcomplete
/var/home/marc/.config/emacs/elpaca/builds/org/org-num hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-num
/var/home/marc/.config/emacs/elpaca/builds/org/org-mouse hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-mouse
/var/home/marc/.config/emacs/elpaca/builds/org/org-mobile hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-mobile
/var/home/marc/.config/emacs/elpaca/builds/org/org-macs hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-macs
/var/home/marc/.config/emacs/elpaca/builds/org/org-macro hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-macro
/var/home/marc/.config/emacs/elpaca/builds/org/org-loaddefs hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-loaddefs
/var/home/marc/.config/emacs/elpaca/builds/org/org-list hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-list
/var/home/marc/.config/emacs/elpaca/builds/org/org-lint hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-lint
/var/home/marc/.config/emacs/elpaca/builds/org/org-keys hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-keys
/var/home/marc/.config/emacs/elpaca/builds/org/org-inlinetask hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-inlinetask
/var/home/marc/.config/emacs/elpaca/builds/org/org-indent hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-indent
/var/home/marc/.config/emacs/elpaca/builds/org/org-id hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-id
/var/home/marc/.config/emacs/elpaca/builds/org/org-habit hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-habit
/var/home/marc/.config/emacs/elpaca/builds/org/org-goto hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-goto
/var/home/marc/.config/emacs/elpaca/builds/org/org-footnote hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-footnote
/var/home/marc/.config/emacs/elpaca/builds/org/org-fold hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-fold
/var/home/marc/.config/emacs/elpaca/builds/org/org-fold-core hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-fold-core
/var/home/marc/.config/emacs/elpaca/builds/org/org-feed hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-feed
/var/home/marc/.config/emacs/elpaca/builds/org/org-faces hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-faces
/var/home/marc/.config/emacs/elpaca/builds/org/org-entities hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-entities
/var/home/marc/.config/emacs/elpaca/builds/org/org-element hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-element
/var/home/marc/.config/emacs/elpaca/builds/org/org-duration hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-duration
/var/home/marc/.config/emacs/elpaca/builds/org/org-datetree hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-datetree
/var/home/marc/.config/emacs/elpaca/builds/org/org-cycle hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-cycle
/var/home/marc/.config/emacs/elpaca/builds/org/org-ctags hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-ctags
/var/home/marc/.config/emacs/elpaca/builds/org/org-crypt hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-crypt
/var/home/marc/.config/emacs/elpaca/builds/org/org-compat hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-compat
/var/home/marc/.config/emacs/elpaca/builds/org/org-colview hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-colview
/var/home/marc/.config/emacs/elpaca/builds/org/org-clock hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-clock
/var/home/marc/.config/emacs/elpaca/builds/org/org-capture hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-capture
/var/home/marc/.config/emacs/elpaca/builds/org/org-attach hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-attach
/var/home/marc/.config/emacs/elpaca/builds/org/org-attach-git hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-attach-git
/var/home/marc/.config/emacs/elpaca/builds/org/org-archive hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-archive
/var/home/marc/.config/emacs/elpaca/builds/org/org-agenda hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/org-agenda
/var/home/marc/.config/emacs/elpaca/builds/org/ol hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol
/var/home/marc/.config/emacs/elpaca/builds/org/ol-w3m hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-w3m
/var/home/marc/.config/emacs/elpaca/builds/org/ol-rmail hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-rmail
/var/home/marc/.config/emacs/elpaca/builds/org/ol-mhe hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-mhe
/var/home/marc/.config/emacs/elpaca/builds/org/ol-man hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-man
/var/home/marc/.config/emacs/elpaca/builds/org/ol-irc hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-irc
/var/home/marc/.config/emacs/elpaca/builds/org/ol-info hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-info
/var/home/marc/.config/emacs/elpaca/builds/org/ol-gnus hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-gnus
/var/home/marc/.config/emacs/elpaca/builds/org/ol-eww hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-eww
/var/home/marc/.config/emacs/elpaca/builds/org/ol-eshell hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-eshell
/var/home/marc/.config/emacs/elpaca/builds/org/ol-doi hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-doi
/var/home/marc/.config/emacs/elpaca/builds/org/ol-docview hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-docview
/var/home/marc/.config/emacs/elpaca/builds/org/ol-bibtex hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-bibtex
/var/home/marc/.config/emacs/elpaca/builds/org/ol-bbdb hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ol-bbdb
/var/home/marc/.config/emacs/elpaca/builds/org/oc hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/oc
/var/home/marc/.config/emacs/elpaca/builds/org/oc-natbib hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/oc-natbib
/var/home/marc/.config/emacs/elpaca/builds/org/oc-csl hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/oc-csl
/var/home/marc/.config/emacs/elpaca/builds/org/oc-bibtex hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/oc-bibtex
/var/home/marc/.config/emacs/elpaca/builds/org/oc-biblatex hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/oc-biblatex
/var/home/marc/.config/emacs/elpaca/builds/org/oc-basic hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/oc-basic
/var/home/marc/.config/emacs/elpaca/builds/org/ob hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob
/var/home/marc/.config/emacs/elpaca/builds/org/ob-tangle hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-tangle
/var/home/marc/.config/emacs/elpaca/builds/org/ob-table hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-table
/var/home/marc/.config/emacs/elpaca/builds/org/ob-sqlite hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-sqlite
/var/home/marc/.config/emacs/elpaca/builds/org/ob-sql hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-sql
/var/home/marc/.config/emacs/elpaca/builds/org/ob-shell hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-shell
/var/home/marc/.config/emacs/elpaca/builds/org/ob-sed hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-sed
/var/home/marc/.config/emacs/elpaca/builds/org/ob-screen hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-screen
/var/home/marc/.config/emacs/elpaca/builds/org/ob-scheme hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-scheme
/var/home/marc/.config/emacs/elpaca/builds/org/ob-sass hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-sass
/var/home/marc/.config/emacs/elpaca/builds/org/ob-ruby hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-ruby
/var/home/marc/.config/emacs/elpaca/builds/org/ob-ref hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-ref
/var/home/marc/.config/emacs/elpaca/builds/org/ob-python hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-python
/var/home/marc/.config/emacs/elpaca/builds/org/ob-processing hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-processing
/var/home/marc/.config/emacs/elpaca/builds/org/ob-plantuml hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-plantuml
/var/home/marc/.config/emacs/elpaca/builds/org/ob-perl hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-perl
/var/home/marc/.config/emacs/elpaca/builds/org/ob-org hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-org
/var/home/marc/.config/emacs/elpaca/builds/org/ob-octave hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-octave
/var/home/marc/.config/emacs/elpaca/builds/org/ob-ocaml hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-ocaml
/var/home/marc/.config/emacs/elpaca/builds/org/ob-maxima hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-maxima
/var/home/marc/.config/emacs/elpaca/builds/org/ob-matlab hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-matlab
/var/home/marc/.config/emacs/elpaca/builds/org/ob-makefile hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-makefile
/var/home/marc/.config/emacs/elpaca/builds/org/ob-lua hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-lua
/var/home/marc/.config/emacs/elpaca/builds/org/ob-lob hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-lob
/var/home/marc/.config/emacs/elpaca/builds/org/ob-lisp hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-lisp
/var/home/marc/.config/emacs/elpaca/builds/org/ob-lilypond hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-lilypond
/var/home/marc/.config/emacs/elpaca/builds/org/ob-latex hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-latex
/var/home/marc/.config/emacs/elpaca/builds/org/ob-julia hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-julia
/var/home/marc/.config/emacs/elpaca/builds/org/ob-js hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-js
/var/home/marc/.config/emacs/elpaca/builds/org/ob-java hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-java
/var/home/marc/.config/emacs/elpaca/builds/org/ob-haskell hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-haskell
/var/home/marc/.config/emacs/elpaca/builds/org/ob-groovy hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-groovy
/var/home/marc/.config/emacs/elpaca/builds/org/ob-gnuplot hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-gnuplot
/var/home/marc/.config/emacs/elpaca/builds/org/ob-fortran hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-fortran
/var/home/marc/.config/emacs/elpaca/builds/org/ob-forth hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-forth
/var/home/marc/.config/emacs/elpaca/builds/org/ob-exp hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-exp
/var/home/marc/.config/emacs/elpaca/builds/org/ob-eval hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-eval
/var/home/marc/.config/emacs/elpaca/builds/org/ob-eshell hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-eshell
/var/home/marc/.config/emacs/elpaca/builds/org/ob-emacs-lisp hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-emacs-lisp
/var/home/marc/.config/emacs/elpaca/builds/org/ob-dot hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-dot
/var/home/marc/.config/emacs/elpaca/builds/org/ob-ditaa hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-ditaa
/var/home/marc/.config/emacs/elpaca/builds/org/ob-css hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-css
/var/home/marc/.config/emacs/elpaca/builds/org/ob-core hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-core
/var/home/marc/.config/emacs/elpaca/builds/org/ob-comint hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-comint
/var/home/marc/.config/emacs/elpaca/builds/org/ob-clojure hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-clojure
/var/home/marc/.config/emacs/elpaca/builds/org/ob-calc hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-calc
/var/home/marc/.config/emacs/elpaca/builds/org/ob-awk hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-awk
/var/home/marc/.config/emacs/elpaca/builds/org/ob-R hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-R
/var/home/marc/.config/emacs/elpaca/builds/org/ob-C hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/org/ob-C
/nix/store/1l0g3a5agvlnqkqj706cvx4glfv9l4s6-emacs-packages-deps/share/emacs/site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/1hbx6jrs9z0v7prhlf5vxi5kmsa130g8-emacs-unstable-29.4/share/emacs/29.4/lisp/emacs-lisp/let-alist
Features:
(shadow emacsbug misearch multi-isearch display-line-numbers secrets
tabify org-datetree org-ql-find org-ql-completing-read org-ql-search
org-ql-view ov calc-alg calc-ext tramp-cmds calc-menu calc calc-loaddefs
rect calc-macs consult-notes-denote consult-notes consult-imenu consult
shr-color denote-journal-extras denote-org-extras denote-sort
denote-rename-buffer denote timezone textsec uni-scripts idna-mapping
ucs-normalize uni-confusable textsec-check sort cal-move mm-archive
mail-extr qp org-clock view mule-util cal-china cal-bahai cal-islam
cal-hebrew holidays holiday-loaddefs cal-julian lunar solar cal-dst
cal-iso vc-git mood-line-segment-vc org-modern org-indent image-file
image-converter oc-basic ffap modus-operandi-theme ol-eww eww url-queue
mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
mml2015 gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud
nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range
gnus-win gnus nnheader range ol-docview doc-view ol-bibtex bibtex
ol-bbdb ol-w3m ol-doi org-link-doi orglink org-lint dockerfile-mode
yaml-mode smartparens-python python-mode tramp-sh which-func hideshow
hippie-exp cc-cmds cc-engine envrc inheritenv cus-start gnus-alias
dockerfile-mode-autoloads yaml-mode-autoloads nov-autoloads
esxml-autoloads kv-autoloads nix-mode-autoloads python-mode-autoloads
envrc-autoloads inheritenv-autoloads forge-autoloads closql-autoloads
emacsql-autoloads ghub-autoloads treepy-autoloads
markdown-mode-autoloads yaml-autoloads magit-autoloads
git-commit-autoloads with-editor-autoloads gnus-alias-autoloads server
pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent
semantic/wisent/wisent semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch
let-alist pdf-misc pdf-tools-autoloads pdf-tools package url-handlers
pdf-view jka-compr pdf-cache pdf-info tq pdf-util pdf-macs mf-email
notmuch-delay notmuch-addr org-mime ox-org ol-notmuch notmuch
notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print
notmuch-crypto notmuch-mua notmuch-message notmuch-draft
notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser
notmuch-wash diff-mode coolj goto-addr icalendar notmuch-tag crm
notmuch-lib notmuch-compat hl-line message sendmail yank-media rfc822
mml mailabbrev mail-utils gmm-utils mailheader mm-view mml-smime mml-sec
epa epg rfc6068 epg-config gnus-util smime gnutls dig mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr htmlize ement ement-notifications ement-notify
notifications ement-room shr pixel-fill kinsoku url-file puny svg dom
browse-url ement-lib ement-api ement-structs plz ement-macros
taxy-magit-section magit-section cursor-sensor taxy dns org-re-reveal
iso-cvt org-super-agenda ht org-ql peg ts org-habit org-duration
org-archive org-archive-subtree-hierarchical smartparens-org mf-pim
ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn
nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar
org-agenda ox-html table ox-ascii ox-publish ox org-element org-persist
org-attach org-id org-element-ast inline org-capture org-refile org ob
ob-tangle ob-ref ob-lob ob-table org-macro org-src sh-script smie
treesit executable ob-comint org-pcomplete org-list org-footnote
org-faces org-entities noutline outline ob-emacs-lisp org-table org-keys
avl-tree ol oc ob-exp corg ob-core org-cycle org-fold org-fold-core
org-compat ob-eval org-version org-macs olivetti cap-words superword
subword smartparens-config smartparens-text smartparens loadhist
rainbow-delimiters corfu-popupinfo corfu transpose-frame auto-dark dbus
xml modus-themes mood-line vertico orderless comp comp-cstr marginalia
exec-path-from-shell eshell esh-cmd generator esh-ext esh-opt esh-proc
esh-io esh-arg esh-module esh-groups esh-util helpful cc-langs cc-vars
cc-defs trace edebug info-look f help-fns radix-tree elisp-refs s
casual-dired casual-dired-settings casual-dired-version
casual-dired-sort-by casual-dired-utils casual-dired-variables elint
checkdoc lisp-mnt image-dired image-dired-tags image-dired-external
image-dired-util image-mode exif wdired dired-x dired-subtree
dired-hacks-utils dired-aux dired dired-loaddefs dash casual-info
casual-info-settings casual-info-utils casual-info-variables
casual-info-version casual-lib casual-lib-version fontaine xmlgen rg vc
vc-dispatcher rg-info-hack advice rg-menu rg-ibuffer ibuf-macs rg-result
wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs
grep notmuch-addr-autoloads org-mime-autoloads ol-notmuch-autoloads
notmuch-autoloads ement-autoloads persist-autoloads plz-autoloads
taxy-magit-section-autoloads magit-section-autoloads taxy-autoloads
svg-lib-autoloads orglink-autoloads consult-notes-autoloads
consult-denote-autoloads denote-autoloads org-re-reveal-autoloads
htmlize-autoloads corg-autoloads org-mru-clock-autoloads
org-ql-autoloads org-super-agenda-autoloads ht-autoloads ov-autoloads
peg-autoloads ts-autoloads org-download-autoloads async-autoloads
org-modern-autoloads org-loaddefs olivetti-autoloads
transpose-frame-autoloads auto-dark-autoloads modus-themes-autoloads
mood-line-autoloads embark-consult-autoloads embark-autoloads
consult-autoloads vertico-autoloads orderless-autoloads
marginalia-autoloads corfu-autoloads exec-path-from-shell-autoloads
helpful-autoloads f-autoloads elisp-refs-autoloads s-autoloads
rainbow-delimiters-autoloads smartparens-autoloads
casual-dired-autoloads dired-sidebar-autoloads dired-narrow-autoloads
dired-subtree-autoloads dired-hacks-utils-autoloads dash-autoloads
casual-calc-autoloads casual-info-autoloads casual-lib-autoloads
ace-window-autoloads avy-autoloads fontaine-autoloads xmlgen-autoloads
rg-autoloads wgrep-autoloads mf-reference diary-lib diary-loaddefs
cal-menu calendar cal-loaddefs mf-calendar gnome-statusbar winner
windmove vterm bookmark face-remap color term disp-table ehelp
vterm-module term/xterm xterm tramp tramp-loaddefs trampver
tramp-integration files-x tramp-compat rx shell pcomplete parse-time
iso8601 time-date help-at-pt info midnight savehist autorevert recentf
tree-widget saveplace delsel repeat time transient format-spec edmacro
kmacro transient-autoloads eglot external-completion array filenotify
jsonrpc ert ewoc debug backtrace find-func xref flymake-proc flymake
thingatpt warnings compile text-property-search comint ansi-osc
ansi-color ring project imenu no-littering compat compat-30 compat-macs
no-littering-autoloads compat-autoloads
use-package-ensure-system-package system-packages
use-package-ensure-system-package-autoloads system-packages-autoloads
cl-extra help-mode elpaca-use-package use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
use-package-core elpaca-use-package-autoloads elpaca-log elpaca-ui
derived url url-proxy url-privacy url-expand url-methods url-history
url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source
eieio eieio-core password-cache json map byte-opt bytecomp byte-compile
url-vars mailcap elpaca easy-mmode pcase cl-seq cl-macs gv
elpaca-process subr-x elpaca-autoloads xdg cus-edit pp cus-load icons
wid-edit cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/pgtk-win pgtk-win term/common-win pgtk-dnd 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 pgtk multi-tty make-network-process native-compile emacs)
Memory information:
((conses 16 2221107 1430007)
(symbols 48 73214 14)
(strings 32 417771 68433)
(string-bytes 1 11211704)
(vectors 16 142368)
(vector-slots 8 3180010 1506916)
(floats 8 1381 1672)
(intervals 56 102686 6113)
(buffers 984 53))
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$
2024-08-26 10:53 bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$ Marc Fargas
@ 2024-08-26 11:15 ` Rudolf Schlatte
2024-08-26 11:34 ` Eli Zaretskii
1 sibling, 0 replies; 6+ messages in thread
From: Rudolf Schlatte @ 2024-08-26 11:15 UTC (permalink / raw)
To: 72818
Marc Fargas <telenieko@telenieko.com> writes:
> Hi,
>
> In the Emacs LISP Manual you see:
>
> -- Variable: after-make-frame-functions
> An abnormal hook run by ‘make-frame’ after it created the frame.
> Each function in ‘after-make-frame-functions’ receives one
> argument, the frame just created.
>
> This hook cannot be configured with `use-package' :hook keyword as it
> does not end in `-hook'.
>
> The following example will result in `after-make-frame-functions-hook'
> being created instead of adding the function to `after-make-frame-functions':
>
> (use-package fontaine ; Fonts!
> :ensure t
> :hook ((after-make-frame-functions . ; Apply fontaine to new frames
> (lambda(frame)
> (with-selected-frame frame
> (fontaine-apply-current-preset)))))
> ; :custom removed for brevity.
> :config
> (when (display-graphic-p)
> (if (> (frame-monitor-attribute 'scale-factor) 1.0)
> (fontaine-set-preset 'large)
> (fontaine-set-preset 'regular))))
FWIW, I have customized `use-package-hook-name-suffix' to NIL since I
prefer to be able to grep for where my hook variables are set. That
this value is T by default might be a bit unfortunate, but I guess can't
be changed since there is tons of documentation and code that relies on
the implicit renaming in the `:hook' clauses of `use-package' forms.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$
2024-08-26 10:53 bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$ Marc Fargas
2024-08-26 11:15 ` Rudolf Schlatte
@ 2024-08-26 11:34 ` Eli Zaretskii
2024-08-26 18:47 ` John Wiegley
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2024-08-26 11:34 UTC (permalink / raw)
To: Marc Fargas, John Wiegley; +Cc: 72818
> From: Marc Fargas <telenieko@telenieko.com>
> Date: Mon, 26 Aug 2024 12:53:17 +0200
>
> In the Emacs LISP Manual you see:
>
> -- Variable: after-make-frame-functions
> An abnormal hook run by ‘make-frame’ after it created the frame.
> Each function in ‘after-make-frame-functions’ receives one
> argument, the frame just created.
>
> This hook cannot be configured with `use-package' :hook keyword as it
> does not end in `-hook'.
>
> The following example will result in `after-make-frame-functions-hook'
> being created instead of adding the function to `after-make-frame-functions':
>
> (use-package fontaine ; Fonts!
> :ensure t
> :hook ((after-make-frame-functions . ; Apply fontaine to new frames
> (lambda(frame)
> (with-selected-frame frame
> (fontaine-apply-current-preset)))))
> ; :custom removed for brevity.
> :config
> (when (display-graphic-p)
> (if (> (frame-monitor-attribute 'scale-factor) 1.0)
> (fontaine-set-preset 'large)
> (fontaine-set-preset 'regular))))
Maybe I'm missing something, but how can use-package configure
abnormal hooks? It doesn't know which arguments to pass to them,
right?
John, am I missing something?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$
2024-08-26 11:34 ` Eli Zaretskii
@ 2024-08-26 18:47 ` John Wiegley
2024-08-31 10:08 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: John Wiegley @ 2024-08-26 18:47 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 72818, Marc Fargas
>>>>> Eli Zaretskii <eliz@gnu.org> writes:
>> From: Marc Fargas <telenieko@telenieko.com>
>>
>> -- Variable: after-make-frame-functions
>> An abnormal hook run by ‘make-frame’ after it created the frame.
>> Each function in ‘after-make-frame-functions’ receives one
>> argument, the frame just created.
>>
>> This hook cannot be configured with `use-package' :hook keyword as it
>> does not end in `-hook'.
> Maybe I'm missing something, but how can use-package configure
> abnormal hooks? It doesn't know which arguments to pass to them,
> right?
>
> John, am I missing something?
I think the behavior should be that if the variable name exists at the time
the use-package macro is encountered, it should use it directly. Only if the
named hook variable has no ‘symbol-value’ — at that time — should it try
appending the name ‘-hook‘ to find a place to append the function.
I.e., the definition could be:
(defun use-package-handler/:hook (name _keyword args rest state)
"Generate use-package custom keyword code."
(use-package-concat
(use-package-process-keywords name rest state)
(cl-mapcan
#'(lambda (def)
(let ((syms (car def))
(fun (cdr def)))
(when fun
(mapcar
#'(lambda (sym)
(if (boundp sym)
`(add-hook (quote ,sym) (function ,fun))
`(add-hook
(quote ,(intern
(concat (symbol-name sym)
use-package-hook-name-suffix)))
(function ,fun))))
(use-package-hook-handler-normalize-mode-symbols syms)))))
(use-package-normalize-commands args))))
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$
2024-08-26 18:47 ` John Wiegley
@ 2024-08-31 10:08 ` Eli Zaretskii
2024-09-10 8:27 ` Marc Fargas
0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2024-08-31 10:08 UTC (permalink / raw)
To: John Wiegley; +Cc: telenieko, 72818-done
> From: John Wiegley <johnw@gnu.org>
> Cc: Marc Fargas <telenieko@telenieko.com>, 72818@debbugs.gnu.org
> Date: Mon, 26 Aug 2024 11:47:25 -0700
>
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
>
> > Maybe I'm missing something, but how can use-package configure
> > abnormal hooks? It doesn't know which arguments to pass to them,
> > right?
> >
> > John, am I missing something?
>
> I think the behavior should be that if the variable name exists at the time
> the use-package macro is encountered, it should use it directly. Only if the
> named hook variable has no ‘symbol-value’ — at that time — should it try
> appending the name ‘-hook‘ to find a place to append the function.
>
> I.e., the definition could be:
>
> (defun use-package-handler/:hook (name _keyword args rest state)
> "Generate use-package custom keyword code."
> (use-package-concat
> (use-package-process-keywords name rest state)
> (cl-mapcan
> #'(lambda (def)
> (let ((syms (car def))
> (fun (cdr def)))
> (when fun
> (mapcar
> #'(lambda (sym)
> (if (boundp sym)
> `(add-hook (quote ,sym) (function ,fun))
> `(add-hook
> (quote ,(intern
> (concat (symbol-name sym)
> use-package-hook-name-suffix)))
> (function ,fun))))
> (use-package-hook-handler-normalize-mode-symbols syms)))))
> (use-package-normalize-commands args))))
Thanks, installed on the emacs-30 release branch, and closing the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$
2024-08-31 10:08 ` Eli Zaretskii
@ 2024-09-10 8:27 ` Marc Fargas
0 siblings, 0 replies; 6+ messages in thread
From: Marc Fargas @ 2024-09-10 8:27 UTC (permalink / raw)
To: Eli Zaretskii, John Wiegley; +Cc: 72818-done
Thank you all for the fix.
Emacs is Awesome
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-10 8:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-26 10:53 bug#72818: 29.4; Cannot hook with use-package if variable is not `-hook'$ Marc Fargas
2024-08-26 11:15 ` Rudolf Schlatte
2024-08-26 11:34 ` Eli Zaretskii
2024-08-26 18:47 ` John Wiegley
2024-08-31 10:08 ` Eli Zaretskii
2024-09-10 8:27 ` Marc Fargas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.