dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit 19de378a7dcdc0e66e85c707bb371da8e25ac452
parent 0f5b2e48def25e31b19105a2612b08c3d6748def
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Fri, 10 Jan 2020 17:17:59 +0100

Fix eager macro-expansion failure during startup

Emacs attempts to expand macros when loading uncompiled files to speed
up their execution.  Since rx is not loaded during startup, Emacs is
not aware of the rx pattern for pcase, and takes it for the rx macro.

Since this macro does not understand (let …) forms, it throws an
"unknown rx pattern" error, which interrupts macro-expansion and shows
a noisy warning.

Diffstat:
M.emacs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/.emacs b/.emacs @@ -201,6 +201,10 @@ ((derived-mode-p 'magit-mode) (magit-branch-or-commit-at-point)))) +(eval-when-compile + ;; Load rx's pcase pattern. + (require 'rx)) + (defun my/action-stamp-at-point (rev) (interactive (list