From 19de378a7dcdc0e66e85c707bb371da8e25ac452 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 10 Jan 2020 17:17:59 +0100 Subject: Fix eager macro-expansion failure during startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .emacs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.emacs b/.emacs index 35ab4f8..fc4e0de 100644 --- 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 -- cgit v1.2.3