diff options
| author | Kevin Brubeck Unhammer | 2022-06-21 13:02:05 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-06-21 13:02:05 +0200 |
| commit | 97950f2bc4cda476d540037b59cf1f90fcb9bc0a (patch) | |
| tree | 931fc0c26de5b0c79752ba8a7cfd3391f271e736 | |
| parent | 3d4b389f3247d0158ba8572caf89331cb6f04a6d (diff) | |
| download | emacs-97950f2bc4cda476d540037b59cf1f90fcb9bc0a.tar.gz emacs-97950f2bc4cda476d540037b59cf1f90fcb9bc0a.zip | |
Speed up mail-extr in some configurations
* lisp/mail/mail-extr.el (mail-extract-address-components):
(mail-extract-address-components): The buffer is already in
fundamental-mode, so don't re-enable it (bug#56113).
| -rw-r--r-- | lisp/mail/mail-extr.el | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el index 50ba04ccc1e..c87ea2b46e6 100644 --- a/lisp/mail/mail-extr.el +++ b/lisp/mail/mail-extr.el | |||
| @@ -716,7 +716,6 @@ to the results." | |||
| 716 | value-list) | 716 | value-list) |
| 717 | 717 | ||
| 718 | (with-current-buffer (get-buffer-create extraction-buffer) | 718 | (with-current-buffer (get-buffer-create extraction-buffer) |
| 719 | (fundamental-mode) | ||
| 720 | (buffer-disable-undo extraction-buffer) | 719 | (buffer-disable-undo extraction-buffer) |
| 721 | (set-syntax-table mail-extr-address-syntax-table) | 720 | (set-syntax-table mail-extr-address-syntax-table) |
| 722 | (widen) | 721 | (widen) |
| @@ -738,7 +737,6 @@ to the results." | |||
| 738 | (set-text-properties (point-min) (point-max) nil) | 737 | (set-text-properties (point-min) (point-max) nil) |
| 739 | 738 | ||
| 740 | (with-current-buffer (get-buffer-create canonicalization-buffer) | 739 | (with-current-buffer (get-buffer-create canonicalization-buffer) |
| 741 | (fundamental-mode) | ||
| 742 | (buffer-disable-undo canonicalization-buffer) | 740 | (buffer-disable-undo canonicalization-buffer) |
| 743 | (setq case-fold-search nil)) | 741 | (setq case-fold-search nil)) |
| 744 | 742 | ||