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
commite843f955b49c2af72752d4245849bcfba3898ab6 (patch)
treeacca2d7ee231f60bf7a3d788cdaf5db7a155525a /modules
parent2d74c1c56cbc17cc81d32e0d0bc83fa56f619a1d (diff)
downloaddotemacs-e843f955b49c2af72752d4245849bcfba3898ab6.tar.gz
dotemacs-e843f955b49c2af72752d4245849bcfba3898ab6.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")