diff options
| author | Lars Ingebrigtsen | 2016-02-13 18:57:01 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-13 18:57:01 +1100 |
| commit | 02d7069fef8fdb27847a168a05cae4afd303bc12 (patch) | |
| tree | a74644224dd0700838a31fc9fc94e08afc9f5756 | |
| parent | 3982245371c0b8e17b4d96d16ed4b1d87c0ffc25 (diff) | |
| download | emacs-02d7069fef8fdb27847a168a05cae4afd303bc12.tar.gz emacs-02d7069fef8fdb27847a168a05cae4afd303bc12.zip | |
Remove some Gnus compat code
* lisp/gnus/gnus-art.el (gnus-mime-inline-part): Remove compat code.
(gnus-mm-display-part): Ditto.
* lisp/gnus/gnus-start.el (gnus-dribble-read-file): Remove
compat code.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 30 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 4 |
2 files changed, 7 insertions, 27 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 5925f013848..317d2c83f0f 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5346,18 +5346,9 @@ Compressed files like .gz and .bz2 are decompressed." | |||
| 5346 | (let ((displayed-p (mm-handle-displayed-p handle))) | 5346 | (let ((displayed-p (mm-handle-displayed-p handle))) |
| 5347 | (gnus-insert-mime-button handle (get-text-property btn 'gnus-part) | 5347 | (gnus-insert-mime-button handle (get-text-property btn 'gnus-part) |
| 5348 | (list displayed-p)) | 5348 | (list displayed-p)) |
| 5349 | (if (featurep 'emacs) | 5349 | (delete-region |
| 5350 | (delete-region | 5350 | (point) |
| 5351 | (point) | 5351 | (next-single-property-change (point) 'gnus-data nil (point-max))) |
| 5352 | (next-single-property-change (point) 'gnus-data nil (point-max))) | ||
| 5353 | (let* ((end (next-single-property-change (point) 'gnus-data)) | ||
| 5354 | (annots (annotations-at (or end (point-max))))) | ||
| 5355 | (delete-region (point) | ||
| 5356 | (if end | ||
| 5357 | (if annots (1+ end) end) | ||
| 5358 | (point-max))) | ||
| 5359 | (dolist (annot annots) | ||
| 5360 | (set-extent-endpoints annot (point) (point))))) | ||
| 5361 | (setq start (point)) | 5352 | (setq start (point)) |
| 5362 | (if (search-backward "\n\n" nil t) | 5353 | (if (search-backward "\n\n" nil t) |
| 5363 | (progn | 5354 | (progn |
| @@ -5740,18 +5731,9 @@ all parts." | |||
| 5740 | ;; Toggle the button appearance between `[button]...' and `[button]'. | 5731 | ;; Toggle the button appearance between `[button]...' and `[button]'. |
| 5741 | (let ((displayed-p (mm-handle-displayed-p handle))) | 5732 | (let ((displayed-p (mm-handle-displayed-p handle))) |
| 5742 | (gnus-insert-mime-button handle id (list displayed-p)) | 5733 | (gnus-insert-mime-button handle id (list displayed-p)) |
| 5743 | (if (featurep 'emacs) | 5734 | (delete-region |
| 5744 | (delete-region | 5735 | (point) |
| 5745 | (point) | 5736 | (next-single-property-change (point) 'gnus-data nil (point-max))) |
| 5746 | (next-single-property-change (point) 'gnus-data nil (point-max))) | ||
| 5747 | (let* ((end (next-single-property-change (point) 'gnus-data)) | ||
| 5748 | (annots (annotations-at (or end (point-max))))) | ||
| 5749 | (delete-region (point) | ||
| 5750 | (if end | ||
| 5751 | (if annots (1+ end) end) | ||
| 5752 | (point-max))) | ||
| 5753 | (dolist (annot annots) | ||
| 5754 | (set-extent-endpoints annot (point) (point))))) | ||
| 5755 | (setq start (point)) | 5737 | (setq start (point)) |
| 5756 | (if (search-backward "\n\n" nil t) | 5738 | (if (search-backward "\n\n" nil t) |
| 5757 | (progn | 5739 | (progn |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index f2965bad6d5..61e5409964f 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -888,9 +888,7 @@ If REGEXP is given, lines that match it will be deleted." | |||
| 888 | (setq buffer-file-name dribble-file) | 888 | (setq buffer-file-name dribble-file) |
| 889 | ;; The buffer may be shrunk a lot when deleting old entries. | 889 | ;; The buffer may be shrunk a lot when deleting old entries. |
| 890 | ;; It caused the auto-saving to stop. | 890 | ;; It caused the auto-saving to stop. |
| 891 | (if (featurep 'emacs) | 891 | (set (make-local-variable 'auto-save-include-big-deletions) t) |
| 892 | (set (make-local-variable 'auto-save-include-big-deletions) t) | ||
| 893 | (set (make-local-variable 'disable-auto-save-when-buffer-shrinks) nil)) | ||
| 894 | (auto-save-mode t) | 892 | (auto-save-mode t) |
| 895 | (buffer-disable-undo) | 893 | (buffer-disable-undo) |
| 896 | (bury-buffer (current-buffer)) | 894 | (bury-buffer (current-buffer)) |