diff options
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index 4c479f93b94..084fdc092d2 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -26,22 +26,16 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (eval-when-compile | 29 | (eval-when-compile (require 'cl)) |
| 30 | (require 'cl) | ||
| 31 | (require 'ring)) | ||
| 32 | 30 | ||
| 33 | ;;; Function aliases later to be redefined for XEmacs usage. | 31 | ;;; Function aliases later to be redefined for XEmacs usage. |
| 34 | 32 | ||
| 35 | (eval-and-compile | ||
| 36 | (defvar gnus-xemacs (featurep 'xemacs) | ||
| 37 | "Non-nil if running under XEmacs.")) | ||
| 38 | |||
| 39 | (defvar gnus-mouse-2 [mouse-2]) | 33 | (defvar gnus-mouse-2 [mouse-2]) |
| 40 | (defvar gnus-down-mouse-3 [down-mouse-3]) | 34 | (defvar gnus-down-mouse-3 [down-mouse-3]) |
| 41 | (defvar gnus-down-mouse-2 [down-mouse-2]) | 35 | (defvar gnus-down-mouse-2 [down-mouse-2]) |
| 42 | (defvar gnus-widget-button-keymap nil) | 36 | (defvar gnus-widget-button-keymap nil) |
| 43 | (defvar gnus-mode-line-modified | 37 | (defvar gnus-mode-line-modified |
| 44 | (if (or gnus-xemacs | 38 | (if (or (featurep 'xemacs) |
| 45 | (< emacs-major-version 20)) | 39 | (< emacs-major-version 20)) |
| 46 | '("--**-" . "-----") | 40 | '("--**-" . "-----") |
| 47 | '("**" "--"))) | 41 | '("**" "--"))) |
| @@ -51,7 +45,18 @@ | |||
| 51 | (autoload 'gnus-xmas-redefine "gnus-xmas") | 45 | (autoload 'gnus-xmas-redefine "gnus-xmas") |
| 52 | (autoload 'appt-select-lowest-window "appt")) | 46 | (autoload 'appt-select-lowest-window "appt")) |
| 53 | 47 | ||
| 54 | (autoload 'gnus-smiley-display "smiley-ems") ; override XEmacs version | 48 | (if (featurep 'xemacs) |
| 49 | (autoload 'gnus-smiley-display "smiley") | ||
| 50 | (autoload 'gnus-smiley-display "smiley-ems") ; override XEmacs version | ||
| 51 | ) | ||
| 52 | |||
| 53 | (defun gnus-kill-all-overlays () | ||
| 54 | "Delete all overlays in the current buffer." | ||
| 55 | (let* ((overlayss (overlay-lists)) | ||
| 56 | (buffer-read-only nil) | ||
| 57 | (overlays (delq nil (nconc (car overlayss) (cdr overlayss))))) | ||
| 58 | (while overlays | ||
| 59 | (delete-overlay (pop overlays))))) | ||
| 55 | 60 | ||
| 56 | ;;; Mule functions. | 61 | ;;; Mule functions. |
| 57 | 62 | ||
| @@ -64,7 +69,7 @@ | |||
| 64 | valstr))) | 69 | valstr))) |
| 65 | 70 | ||
| 66 | (eval-and-compile | 71 | (eval-and-compile |
| 67 | (if gnus-xemacs | 72 | (if (featurep 'xemacs) |
| 68 | (gnus-xmas-define) | 73 | (gnus-xmas-define) |
| 69 | (defvar gnus-mouse-face-prop 'mouse-face | 74 | (defvar gnus-mouse-face-prop 'mouse-face |
| 70 | "Property used for highlighting mouse regions."))) | 75 | "Property used for highlighting mouse regions."))) |