summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-04 07:16:02 -0600
committerCraig Jennings <c@cjennings.net>2026-02-04 07:16:02 -0600
commit30f0418268a990478a745d8a0550e4f7ba0af750 (patch)
treedbd390b2ecf90539bbb3a8680a833d3725f63f2f
parent13e8dc3549d5eefc4cc39659771e343d7a80a1ec (diff)
fix(email): require mm-decode at load time for macro availability
mm-handle-type is a macro that must be available when the code is read, not just at runtime. Changed from declare-function to require.
-rw-r--r--modules/custom-buffer-file.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/custom-buffer-file.el b/modules/custom-buffer-file.el
index 2c999266..7ff38250 100644
--- a/modules/custom-buffer-file.el
+++ b/modules/custom-buffer-file.el
@@ -30,12 +30,8 @@
(declare-function ps-print-buffer-with-faces "ps-print")
(declare-function ps-print-region-with-faces "ps-print")
-;; mm-decode functions for email viewing
-(declare-function mm-dissect-buffer "mm-decode")
-(declare-function mm-find-part-by-type "mm-decode")
-(declare-function mm-insert-part "mm-decode")
-(declare-function mm-handle-type "mm-decode")
-(declare-function mm-destroy-parts "mm-decode")
+;; mm-decode for email viewing (mm-handle-type is a macro, needs early require)
+(require 'mm-decode)
;; cj/kill-buffer-and-window defined in undead-buffers.el
(declare-function cj/kill-buffer-and-window "undead-buffers")