summaryrefslogtreecommitdiff
path: root/modules
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
commit818f321809ffff9ea8f5a4e59d4c568cc85a4b9a (patch)
treedbd390b2ecf90539bbb3a8680a833d3725f63f2f /modules
parent66717ea2ded56d69f8c6931b5b73f75c1ed39b4e (diff)
downloaddotemacs-818f321809ffff9ea8f5a4e59d4c568cc85a4b9a.tar.gz
dotemacs-818f321809ffff9ea8f5a4e59d4c568cc85a4b9a.zip
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.
Diffstat (limited to 'modules')
-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")