diff options
| author | Lars Ingebrigtsen | 2016-02-10 14:34:22 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-10 14:34:22 +1100 |
| commit | f962e3cde2710f1514020f1ef35f214f7aa87967 (patch) | |
| tree | 6eaf9cbd4cf1d687ceff1a1d8a1cdc59606da9af | |
| parent | a3c2634f90ae744ae53c408257c416a9645cf158 (diff) | |
| download | emacs-f962e3cde2710f1514020f1ef35f214f7aa87967.tar.gz emacs-f962e3cde2710f1514020f1ef35f214f7aa87967.zip | |
Drop Gnus compat functions
* lisp/gnus/gnus-ems.el (gnus-mule-max-width-function): Remove.
* lisp/gnus/gnus-util.el (gnus-kill-all-overlays): Move here.
* lisp/gnus/gnus.el (gnus-mode-line-modified): Remove.
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 30 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-spec.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 2 |
5 files changed, 12 insertions, 35 deletions
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index 7c3a2cc02a1..90687e150fd 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -34,36 +34,6 @@ | |||
| 34 | (defvar gnus-down-mouse-3 [down-mouse-3]) | 34 | (defvar gnus-down-mouse-3 [down-mouse-3]) |
| 35 | (defvar gnus-down-mouse-2 [down-mouse-2]) | 35 | (defvar gnus-down-mouse-2 [down-mouse-2]) |
| 36 | (defvar gnus-widget-button-keymap nil) | 36 | (defvar gnus-widget-button-keymap nil) |
| 37 | (defvar gnus-mode-line-modified | ||
| 38 | (if (featurep 'xemacs) | ||
| 39 | '("--**-" . "-----") | ||
| 40 | '("**" "--"))) | ||
| 41 | |||
| 42 | (eval-and-compile | ||
| 43 | (autoload 'gnus-xmas-define "gnus-xmas") | ||
| 44 | (autoload 'gnus-xmas-redefine "gnus-xmas")) | ||
| 45 | |||
| 46 | (autoload 'gnus-get-buffer-create "gnus") | ||
| 47 | (autoload 'nnheader-find-etc-directory "nnheader") | ||
| 48 | (autoload 'smiley-region "smiley") | ||
| 49 | |||
| 50 | (defun gnus-kill-all-overlays () | ||
| 51 | "Delete all overlays in the current buffer." | ||
| 52 | (let* ((overlayss (overlay-lists)) | ||
| 53 | (buffer-read-only nil) | ||
| 54 | (overlays (delq nil (nconc (car overlayss) (cdr overlayss))))) | ||
| 55 | (while overlays | ||
| 56 | (delete-overlay (pop overlays))))) | ||
| 57 | |||
| 58 | ;;; Mule functions. | ||
| 59 | |||
| 60 | (defun gnus-mule-max-width-function (el max-width) | ||
| 61 | `(let* ((val (eval (, el))) | ||
| 62 | (valstr (if (numberp val) | ||
| 63 | (int-to-string val) val))) | ||
| 64 | (if (> (length valstr) ,max-width) | ||
| 65 | (truncate-string-to-width valstr ,max-width) | ||
| 66 | valstr))) | ||
| 67 | 37 | ||
| 68 | (provide 'gnus-ems) | 38 | (provide 'gnus-ems) |
| 69 | 39 | ||
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 8b81c877bda..63125ef14ee 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -633,7 +633,7 @@ simple manner.") | |||
| 633 | "\M-e" gnus-group-edit-group-method | 633 | "\M-e" gnus-group-edit-group-method |
| 634 | "^" gnus-group-enter-server-mode | 634 | "^" gnus-group-enter-server-mode |
| 635 | gnus-mouse-2 gnus-mouse-pick-group | 635 | gnus-mouse-2 gnus-mouse-pick-group |
| 636 | [follow-link] mouse-face | 636 | [follow-link] 'mouse-face |
| 637 | "<" beginning-of-buffer | 637 | "<" beginning-of-buffer |
| 638 | ">" end-of-buffer | 638 | ">" end-of-buffer |
| 639 | "\C-c\C-b" gnus-bug | 639 | "\C-c\C-b" gnus-bug |
| @@ -1800,8 +1800,7 @@ already. If INFO-UNCHANGED is non-nil, dribble buffer is not updated." | |||
| 1800 | (mode-string (eval gformat))) | 1800 | (mode-string (eval gformat))) |
| 1801 | ;; Say whether the dribble buffer has been modified. | 1801 | ;; Say whether the dribble buffer has been modified. |
| 1802 | (setq mode-line-modified | 1802 | (setq mode-line-modified |
| 1803 | (if modified (car gnus-mode-line-modified) | 1803 | (if modified "**" "--")) |
| 1804 | (cdr gnus-mode-line-modified))) | ||
| 1805 | ;; If the line is too long, we chop it off. | 1804 | ;; If the line is too long, we chop it off. |
| 1806 | (when (> (length mode-string) max-len) | 1805 | (when (> (length mode-string) max-len) |
| 1807 | (setq mode-string (substring mode-string 0 (- max-len 4)))) | 1806 | (setq mode-string (substring mode-string 0 (- max-len 4)))) |
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el index 380474d925b..8e8b5d4e240 100644 --- a/lisp/gnus/gnus-spec.el +++ b/lisp/gnus/gnus-spec.el | |||
| @@ -227,7 +227,7 @@ Return a list of updated types." | |||
| 227 | (defun gnus-mouse-face-function (form type) | 227 | (defun gnus-mouse-face-function (form type) |
| 228 | `(gnus-put-text-property | 228 | `(gnus-put-text-property |
| 229 | (point) (progn ,@form (point)) | 229 | (point) (progn ,@form (point)) |
| 230 | mouse-face | 230 | 'mouse-face |
| 231 | ,(if (equal type 0) | 231 | ,(if (equal type 0) |
| 232 | 'gnus-mouse-face | 232 | 'gnus-mouse-face |
| 233 | `(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type))))))) | 233 | `(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type))))))) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 33d96bd20eb..99565a27496 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -2069,6 +2069,14 @@ lists of strings." | |||
| 2069 | (setq start end | 2069 | (setq start end |
| 2070 | end nil)))))) | 2070 | end nil)))))) |
| 2071 | 2071 | ||
| 2072 | (defun gnus-kill-all-overlays () | ||
| 2073 | "Delete all overlays in the current buffer." | ||
| 2074 | (let* ((overlayss (overlay-lists)) | ||
| 2075 | (buffer-read-only nil) | ||
| 2076 | (overlays (delq nil (nconc (car overlayss) (cdr overlayss))))) | ||
| 2077 | (while overlays | ||
| 2078 | (delete-overlay (pop overlays))))) | ||
| 2079 | |||
| 2072 | (provide 'gnus-util) | 2080 | (provide 'gnus-util) |
| 2073 | 2081 | ||
| 2074 | ;;; gnus-util.el ends here | 2082 | ;;; gnus-util.el ends here |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index 2690e5eb930..a9a7726c1fb 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -3448,7 +3448,7 @@ that that variable is buffer-local to the summary buffers." | |||
| 3448 | 3448 | ||
| 3449 | (defun gnus-simplify-mode-line () | 3449 | (defun gnus-simplify-mode-line () |
| 3450 | "Make mode lines a bit simpler." | 3450 | "Make mode lines a bit simpler." |
| 3451 | (setq mode-line-modified (cdr gnus-mode-line-modified)) | 3451 | (setq mode-line-modified "--") |
| 3452 | (when (listp mode-line-format) | 3452 | (when (listp mode-line-format) |
| 3453 | (make-local-variable 'mode-line-format) | 3453 | (make-local-variable 'mode-line-format) |
| 3454 | (setq mode-line-format (copy-sequence mode-line-format)) | 3454 | (setq mode-line-format (copy-sequence mode-line-format)) |