diff options
| author | Lars Ingebrigtsen | 2016-02-11 15:27:45 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-11 15:27:45 +1100 |
| commit | 1ff3e583f58be4c2b56000baa83ab3a738011ab3 (patch) | |
| tree | 1afb74e9ea876e268b879bb8019437e3db754cb4 | |
| parent | 35953890c59f3d7fc6abe4a5f4aefc4c0d005ad4 (diff) | |
| download | emacs-1ff3e583f58be4c2b56000baa83ab3a738011ab3.tar.gz emacs-1ff3e583f58be4c2b56000baa83ab3a738011ab3.zip | |
Remove Gnus XEmacs compat functions
* lisp/gnus/gnus-registry.el: Remove XEmacs compat.
* lisp/gnus/gnus-salt.el: Remove XEmacs compat.
* lisp/gnus/gnus-score.el (gnus-decay-score): Remove XEmacs compat.
| -rw-r--r-- | lisp/gnus/gnus-registry.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-salt.el | 21 | ||||
| -rw-r--r-- | lisp/gnus/gnus-score.el | 19 | ||||
| -rw-r--r-- | lisp/gnus/gnus-spec.el | 4 |
4 files changed, 8 insertions, 42 deletions
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index f49eb0d85eb..c636c7eb32b 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el | |||
| @@ -87,12 +87,6 @@ | |||
| 87 | (require 'easymenu) | 87 | (require 'easymenu) |
| 88 | (require 'registry) | 88 | (require 'registry) |
| 89 | 89 | ||
| 90 | ;; Silence XEmacs byte compiler, which will otherwise complain about | ||
| 91 | ;; call to `eieio-persistent-read'. | ||
| 92 | (when (featurep 'xemacs) | ||
| 93 | (byte-compiler-options | ||
| 94 | (warnings (- callargs)))) | ||
| 95 | |||
| 96 | (defvar gnus-adaptive-word-syntax-table) | 90 | (defvar gnus-adaptive-word-syntax-table) |
| 97 | 91 | ||
| 98 | (defvar gnus-registry-dirty t | 92 | (defvar gnus-registry-dirty t |
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el index 350921762a8..b7af969bc20 100644 --- a/lisp/gnus/gnus-salt.el +++ b/lisp/gnus/gnus-salt.el | |||
| @@ -25,9 +25,6 @@ | |||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'cl)) | 27 | (eval-when-compile (require 'cl)) |
| 28 | (eval-when-compile | ||
| 29 | (when (featurep 'xemacs) | ||
| 30 | (require 'easy-mmode))) ; for `define-minor-mode' | ||
| 31 | 28 | ||
| 32 | (require 'gnus) | 29 | (require 'gnus) |
| 33 | (require 'gnus-sum) | 30 | (require 'gnus-sum) |
| @@ -47,9 +44,6 @@ | |||
| 47 | :type 'hook | 44 | :type 'hook |
| 48 | :group 'gnus-summary-pick) | 45 | :group 'gnus-summary-pick) |
| 49 | 46 | ||
| 50 | (when (featurep 'xemacs) | ||
| 51 | (add-hook 'gnus-pick-mode-hook 'gnus-xmas-pick-menu-add)) | ||
| 52 | |||
| 53 | (defcustom gnus-mark-unpicked-articles-as-read nil | 47 | (defcustom gnus-mark-unpicked-articles-as-read nil |
| 54 | "*If non-nil, mark all unpicked articles as read." | 48 | "*If non-nil, mark all unpicked articles as read." |
| 55 | :type 'boolean | 49 | :type 'boolean |
| @@ -100,11 +94,6 @@ It accepts the same format specs that `gnus-summary-line-format' does." | |||
| 100 | ["Start reading" gnus-pick-start-reading t] | 94 | ["Start reading" gnus-pick-start-reading t] |
| 101 | ["Switch pick mode off" gnus-pick-mode gnus-pick-mode])))) | 95 | ["Switch pick mode off" gnus-pick-mode gnus-pick-mode])))) |
| 102 | 96 | ||
| 103 | (eval-when-compile | ||
| 104 | (when (featurep 'xemacs) | ||
| 105 | (defvar gnus-pick-mode-on-hook) | ||
| 106 | (defvar gnus-pick-mode-off-hook))) | ||
| 107 | |||
| 108 | (define-minor-mode gnus-pick-mode | 97 | (define-minor-mode gnus-pick-mode |
| 109 | "Minor mode for providing a pick-and-read interface in Gnus summary buffers. | 98 | "Minor mode for providing a pick-and-read interface in Gnus summary buffers. |
| 110 | 99 | ||
| @@ -339,11 +328,6 @@ This must be bound to a button-down mouse event." | |||
| 339 | '("Pick" | 328 | '("Pick" |
| 340 | ["Switch binary mode off" gnus-binary-mode t])))) | 329 | ["Switch binary mode off" gnus-binary-mode t])))) |
| 341 | 330 | ||
| 342 | (eval-when-compile | ||
| 343 | (when (featurep 'xemacs) | ||
| 344 | (defvar gnus-binary-mode-on-hook) | ||
| 345 | (defvar gnus-binary-mode-off-hook))) | ||
| 346 | |||
| 347 | (define-minor-mode gnus-binary-mode | 331 | (define-minor-mode gnus-binary-mode |
| 348 | "Minor mode for providing a binary group interface in Gnus summary buffers." | 332 | "Minor mode for providing a binary group interface in Gnus summary buffers." |
| 349 | :lighter " Binary" :keymap gnus-binary-mode-map | 333 | :lighter " Binary" :keymap gnus-binary-mode-map |
| @@ -419,11 +403,6 @@ Two predefined functions are available: | |||
| 419 | :type 'hook | 403 | :type 'hook |
| 420 | :group 'gnus-summary-tree) | 404 | :group 'gnus-summary-tree) |
| 421 | 405 | ||
| 422 | (when (featurep 'xemacs) | ||
| 423 | (add-hook 'gnus-tree-mode-hook 'gnus-xmas-tree-menu-add) | ||
| 424 | (add-hook 'gnus-tree-mode-hook 'gnus-xmas-switch-horizontal-scrollbar-off)) | ||
| 425 | |||
| 426 | |||
| 427 | ;;; Internal variables. | 406 | ;;; Internal variables. |
| 428 | 407 | ||
| 429 | (defvar gnus-tmp-name) | 408 | (defvar gnus-tmp-name) |
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el index b486a05db09..82a804933b2 100644 --- a/lisp/gnus/gnus-score.el +++ b/lisp/gnus/gnus-score.el | |||
| @@ -3050,19 +3050,12 @@ If ADAPT, return the home adaptive file instead." | |||
| 3050 | 3050 | ||
| 3051 | (defun gnus-decay-score (score) | 3051 | (defun gnus-decay-score (score) |
| 3052 | "Decay SCORE according to `gnus-score-decay-constant' and `gnus-score-decay-scale'." | 3052 | "Decay SCORE according to `gnus-score-decay-constant' and `gnus-score-decay-scale'." |
| 3053 | (let ((n (- score | 3053 | (floor (- score |
| 3054 | (* (if (< score 0) -1 1) | 3054 | (* (if (< score 0) -1 1) |
| 3055 | (min (abs score) | 3055 | (min (abs score) |
| 3056 | (max gnus-score-decay-constant | 3056 | (max gnus-score-decay-constant |
| 3057 | (* (abs score) | 3057 | (* (abs score) |
| 3058 | gnus-score-decay-scale))))))) | 3058 | gnus-score-decay-scale))))))) |
| 3059 | (if (and (featurep 'xemacs) | ||
| 3060 | ;; XEmacs's floor can handle only the floating point | ||
| 3061 | ;; number below the half of the maximum integer. | ||
| 3062 | (> (abs n) (lsh -1 -2))) | ||
| 3063 | (string-to-number | ||
| 3064 | (car (split-string (number-to-string n) "\\."))) | ||
| 3065 | (floor n)))) | ||
| 3066 | 3059 | ||
| 3067 | (defun gnus-decay-scores (alist day) | 3060 | (defun gnus-decay-scores (alist day) |
| 3068 | "Decay non-permanent scores in ALIST." | 3061 | "Decay non-permanent scores in ALIST." |
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el index 8e8b5d4e240..7c1fdf22232 100644 --- a/lisp/gnus/gnus-spec.el +++ b/lisp/gnus/gnus-spec.el | |||
| @@ -29,13 +29,13 @@ | |||
| 29 | 29 | ||
| 30 | (require 'gnus) | 30 | (require 'gnus) |
| 31 | 31 | ||
| 32 | (defcustom gnus-use-correct-string-widths (featurep 'xemacs) | 32 | (defcustom gnus-use-correct-string-widths nil |
| 33 | "*If non-nil, use correct functions for dealing with wide characters." | 33 | "*If non-nil, use correct functions for dealing with wide characters." |
| 34 | :version "22.1" | 34 | :version "22.1" |
| 35 | :group 'gnus-format | 35 | :group 'gnus-format |
| 36 | :type 'boolean) | 36 | :type 'boolean) |
| 37 | 37 | ||
| 38 | (defcustom gnus-make-format-preserve-properties (featurep 'xemacs) | 38 | (defcustom gnus-make-format-preserve-properties nil |
| 39 | "*If non-nil, use a replacement `format' function which preserves | 39 | "*If non-nil, use a replacement `format' function which preserves |
| 40 | text properties. This is only needed on XEmacs, as Emacs does this anyway." | 40 | text properties. This is only needed on XEmacs, as Emacs does this anyway." |
| 41 | :version "22.1" | 41 | :version "22.1" |