diff options
| author | David Bremner <david@tethera.net> | 2024-05-29 07:15:26 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2024-06-15 14:40:01 -0300 |
| commit | b02a53a5cc9b5c0c397fec9f8289fcec834f9992 (patch) | |
| tree | 9101600f77d1234459b4e4cdf29e5d405fd6a928 /emacs | |
| parent | cccee9009598f3aa6472ceb9aceedb9c32997691 (diff) | |
emacs/show: fix for text/calendar display
In certain scenarios involving symlinks and setting
find-file-visit-truename, text/calendar parts were not displayed
properly.
Following a suggestion of Al Haji-Ali [1], replace the use of
get-file-buffer with find-buffer-visiting.
[1]: id:m2wmneguh8.fsf@gmail.com
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/notmuch-show.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4c0ad74d..14e3c698 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -864,7 +864,7 @@ will return nil if the CID is unknown or cannot be retrieved." (unless (icalendar-import-buffer file t) (error "Icalendar import error. %s" "See *icalendar-errors* for more information")) - (set-buffer (get-file-buffer file)) + (set-buffer (find-buffer-visiting file)) (setq result (buffer-substring (point-min) (point-max))) (set-buffer-modified-p nil) (kill-buffer (current-buffer))) |
