diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-04 07:16:02 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-04 07:16:02 -0600 |
| commit | 39ddf034c9987b39c9342d0c810ea9f2bb462b88 (patch) | |
| tree | e1f02f17fbd04886d2f6476c9f985c65b8f8370c /modules/custom-buffer-file.el | |
| parent | ca5759c04a054ebcea972cf846bd12825489675f (diff) | |
| download | dotemacs-39ddf034c9987b39c9342d0c810ea9f2bb462b88.tar.gz dotemacs-39ddf034c9987b39c9342d0c810ea9f2bb462b88.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/custom-buffer-file.el')
| -rw-r--r-- | modules/custom-buffer-file.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/custom-buffer-file.el b/modules/custom-buffer-file.el index 2c999266c..7ff382502 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") |
