diff options
| author | Lars Magne Ingebrigtsen | 2015-04-15 15:28:20 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2015-04-15 15:28:20 +0200 |
| commit | cb75e80b2091b7d61376d42822d3a1dd67325543 (patch) | |
| tree | bb82b5afb114fd0ad198b2a49dbae6902acbedac | |
| parent | a122a0276bddbda8ca84f9b94250a5a5f4e0582a (diff) | |
| download | emacs-cb75e80b2091b7d61376d42822d3a1dd67325543.tar.gz emacs-cb75e80b2091b7d61376d42822d3a1dd67325543.zip | |
Clean up gnus-uu saving code slightly
* gnus-uu.el (gnus-uu-save-article): Make the
save-restriction/widen calls make more sense.
| -rw-r--r-- | lisp/gnus/gnus-uu.el | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index f5d44959391..94f01c6158d 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el | |||
| @@ -873,14 +873,8 @@ When called interactively, prompt for REGEXP." | |||
| 873 | (setq state (list 'middle)))) | 873 | (setq state (list 'middle)))) |
| 874 | (with-current-buffer "*gnus-uu-body*" | 874 | (with-current-buffer "*gnus-uu-body*" |
| 875 | (goto-char (setq beg (point-max))) | 875 | (goto-char (setq beg (point-max))) |
| 876 | (save-excursion | 876 | (with-current-buffer buffer |
| 877 | (save-restriction | 877 | (save-restriction |
| 878 | ;; FIXME: We save excursion and restriction in "*gnus-uu-body*", | ||
| 879 | ;; only to immediately move to another buffer? And we narrow in | ||
| 880 | ;; that buffer without save-restriction? And we finish the | ||
| 881 | ;; save-restriction with a call to `widen'? How can that | ||
| 882 | ;; make sense? | ||
| 883 | (set-buffer buffer) | ||
| 884 | (let ((inhibit-read-only t)) | 878 | (let ((inhibit-read-only t)) |
| 885 | (set-text-properties (point-min) (point-max) nil) | 879 | (set-text-properties (point-min) (point-max) nil) |
| 886 | ;; These two are necessary for XEmacs 19.12 fascism. | 880 | ;; These two are necessary for XEmacs 19.12 fascism. |
| @@ -915,8 +909,7 @@ When called interactively, prompt for REGEXP." | |||
| 915 | (match-beginning 0) | 909 | (match-beginning 0) |
| 916 | (or (and (re-search-forward "^[^ \t]" nil t) | 910 | (or (and (re-search-forward "^[^ \t]" nil t) |
| 917 | (1- (point))) | 911 | (1- (point))) |
| 918 | (progn (forward-line 1) (point))))))))) | 912 | (progn (forward-line 1) (point))))))))))) |
| 919 | (widen))) | ||
| 920 | (if (and message-forward-as-mime gnus-uu-digest-buffer) | 913 | (if (and message-forward-as-mime gnus-uu-digest-buffer) |
| 921 | (if message-forward-show-mml | 914 | (if message-forward-show-mml |
| 922 | (progn | 915 | (progn |