diff options
| -rw-r--r-- | lisp/gnus/gnus-demon.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-dired.el | 13 | ||||
| -rw-r--r-- | lisp/gnus/gnus-draft.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-gravatar.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 56 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 19 | ||||
| -rw-r--r-- | lisp/gnus/gnus-ml.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-picon.el | 1 |
8 files changed, 22 insertions, 87 deletions
diff --git a/lisp/gnus/gnus-demon.el b/lisp/gnus/gnus-demon.el index eb7d0f87155..1d4b021d7fa 100644 --- a/lisp/gnus/gnus-demon.el +++ b/lisp/gnus/gnus-demon.el | |||
| @@ -93,10 +93,7 @@ Emacs has been idle for IDLE `gnus-demon-timestep's." | |||
| 93 | 93 | ||
| 94 | (defun gnus-demon-idle-since () | 94 | (defun gnus-demon-idle-since () |
| 95 | "Return the number of seconds since when Emacs is idle." | 95 | "Return the number of seconds since when Emacs is idle." |
| 96 | (if (featurep 'xemacs) | 96 | (float-time (or (current-idle-time) '(0 0 0)))) |
| 97 | (itimer-time-difference (current-time) last-command-event-time) | ||
| 98 | (float-time (or (current-idle-time) | ||
| 99 | '(0 0 0))))) | ||
| 100 | 97 | ||
| 101 | (defun gnus-demon-run-callback (func &optional idle time special) | 98 | (defun gnus-demon-run-callback (func &optional idle time special) |
| 102 | "Run FUNC if Emacs has been idle for longer than IDLE seconds. | 99 | "Run FUNC if Emacs has been idle for longer than IDLE seconds. |
diff --git a/lisp/gnus/gnus-dired.el b/lisp/gnus/gnus-dired.el index 3bbd4de1fe0..f7eae94a7d8 100644 --- a/lisp/gnus/gnus-dired.el +++ b/lisp/gnus/gnus-dired.el | |||
| @@ -38,9 +38,6 @@ | |||
| 38 | 38 | ||
| 39 | ;;; Code: | 39 | ;;; Code: |
| 40 | 40 | ||
| 41 | (eval-when-compile | ||
| 42 | (when (featurep 'xemacs) | ||
| 43 | (require 'easy-mmode))) ; for `define-minor-mode' | ||
| 44 | (require 'dired) | 41 | (require 'dired) |
| 45 | (autoload 'mml-attach-file "mml") | 42 | (autoload 'mml-attach-file "mml") |
| 46 | (autoload 'mm-default-file-encoding "mm-decode");; Shift this to `mailcap.el'? | 43 | (autoload 'mm-default-file-encoding "mm-decode");; Shift this to `mailcap.el'? |
| @@ -86,12 +83,6 @@ See `mail-user-agent' for more information." | |||
| 86 | gnus-user-agent) | 83 | gnus-user-agent) |
| 87 | (function :tag "Other"))) | 84 | (function :tag "Other"))) |
| 88 | 85 | ||
| 89 | (eval-when-compile | ||
| 90 | (when (featurep 'xemacs) | ||
| 91 | (defvar gnus-dired-mode-hook) | ||
| 92 | (defvar gnus-dired-mode-on-hook) | ||
| 93 | (defvar gnus-dired-mode-off-hook))) | ||
| 94 | |||
| 95 | (define-minor-mode gnus-dired-mode | 86 | (define-minor-mode gnus-dired-mode |
| 96 | "Minor mode for intersections of gnus and dired. | 87 | "Minor mode for intersections of gnus and dired. |
| 97 | 88 | ||
| @@ -134,9 +125,7 @@ filenames." | |||
| 134 | (mapcar | 125 | (mapcar |
| 135 | ;; don't attach directories | 126 | ;; don't attach directories |
| 136 | (lambda (f) (if (file-directory-p f) nil f)) | 127 | (lambda (f) (if (file-directory-p f) nil f)) |
| 137 | (nreverse | 128 | (nreverse (dired-map-over-marks (dired-get-filename) nil)))))) |
| 138 | (let ((arg nil)) ;; Silence XEmacs 21.5 when compiling. | ||
| 139 | (dired-map-over-marks (dired-get-filename) arg))))))) | ||
| 140 | (let ((destination nil) | 129 | (let ((destination nil) |
| 141 | (files-str nil) | 130 | (files-str nil) |
| 142 | (bufs nil)) | 131 | (bufs nil)) |
diff --git a/lisp/gnus/gnus-draft.el b/lisp/gnus/gnus-draft.el index b5b17ba42b0..7a52266544c 100644 --- a/lisp/gnus/gnus-draft.el +++ b/lisp/gnus/gnus-draft.el | |||
| @@ -31,9 +31,6 @@ | |||
| 31 | (require 'nndraft) | 31 | (require 'nndraft) |
| 32 | (require 'gnus-agent) | 32 | (require 'gnus-agent) |
| 33 | (eval-when-compile (require 'cl)) | 33 | (eval-when-compile (require 'cl)) |
| 34 | (eval-when-compile | ||
| 35 | (when (featurep 'xemacs) | ||
| 36 | (require 'easy-mmode))) ; for `define-minor-mode' | ||
| 37 | 34 | ||
| 38 | ;;; Draft minor mode | 35 | ;;; Draft minor mode |
| 39 | 36 | ||
diff --git a/lisp/gnus/gnus-gravatar.el b/lisp/gnus/gnus-gravatar.el index de7203d9d10..77fce259b4b 100644 --- a/lisp/gnus/gnus-gravatar.el +++ b/lisp/gnus/gnus-gravatar.el | |||
| @@ -110,8 +110,7 @@ Set image category to CATEGORY." | |||
| 110 | ;; another mail with the same someaddress. | 110 | ;; another mail with the same someaddress. |
| 111 | (unless (memq 'gnus-gravatar (text-properties-at (point))) | 111 | (unless (memq 'gnus-gravatar (text-properties-at (point))) |
| 112 | (let ((point (point))) | 112 | (let ((point (point))) |
| 113 | (unless (featurep 'xemacs) | 113 | (setq gravatar (append gravatar gnus-gravatar-properties)) |
| 114 | (setq gravatar (append gravatar gnus-gravatar-properties))) | ||
| 115 | (gnus-put-image gravatar (buffer-substring (point) (1+ point)) category) | 114 | (gnus-put-image gravatar (buffer-substring (point) (1+ point)) category) |
| 116 | (put-text-property point (point) 'gnus-gravatar address) | 115 | (put-text-property point (point) 'gnus-gravatar address) |
| 117 | (gnus-add-wash-type category) | 116 | (gnus-add-wash-type category) |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index f66d9cef22a..838e7470856 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -223,11 +223,6 @@ with some simple extensions: | |||
| 223 | :group 'gnus-group-visual | 223 | :group 'gnus-group-visual |
| 224 | :type 'string) | 224 | :type 'string) |
| 225 | 225 | ||
| 226 | ;; Extracted from gnus-xmas-redefine in order to preserve user settings | ||
| 227 | (when (featurep 'xemacs) | ||
| 228 | (add-hook 'gnus-group-mode-hook 'gnus-xmas-group-menu-add) | ||
| 229 | (add-hook 'gnus-group-mode-hook 'gnus-xmas-setup-group-toolbar)) | ||
| 230 | |||
| 231 | (defcustom gnus-group-menu-hook nil | 226 | (defcustom gnus-group-menu-hook nil |
| 232 | "Hook run after the creation of the group mode menu." | 227 | "Hook run after the creation of the group mode menu." |
| 233 | :group 'gnus-group-various | 228 | :group 'gnus-group-various |
| @@ -534,10 +529,7 @@ simple manner.") | |||
| 534 | (?O gnus-tmp-moderated-string ?s) | 529 | (?O gnus-tmp-moderated-string ?s) |
| 535 | (?p gnus-tmp-process-marked ?c) | 530 | (?p gnus-tmp-process-marked ?c) |
| 536 | (?s gnus-tmp-news-server ?s) | 531 | (?s gnus-tmp-news-server ?s) |
| 537 | (?n ,(if (featurep 'xemacs) | 532 | (?n gnus-tmp-news-method ?s) |
| 538 | '(symbol-name gnus-tmp-news-method) | ||
| 539 | 'gnus-tmp-news-method) | ||
| 540 | ?s) | ||
| 541 | (?P gnus-group-indentation ?s) | 533 | (?P gnus-group-indentation ?s) |
| 542 | (?E gnus-tmp-group-icon ?s) | 534 | (?E gnus-tmp-group-icon ?s) |
| 543 | (?B gnus-tmp-summary-live ?c) | 535 | (?B gnus-tmp-summary-live ?c) |
| @@ -797,32 +789,26 @@ simple manner.") | |||
| 797 | ["Catch up" gnus-group-catchup-current | 789 | ["Catch up" gnus-group-catchup-current |
| 798 | :included (not (gnus-topic-mode-p)) | 790 | :included (not (gnus-topic-mode-p)) |
| 799 | :active (gnus-group-group-name) | 791 | :active (gnus-group-group-name) |
| 800 | ,@(if (featurep 'xemacs) nil | 792 | :help "Mark unread articles in the current group as read"] |
| 801 | '(:help "Mark unread articles in the current group as read"))] | ||
| 802 | ["Catch up " gnus-topic-catchup-articles | 793 | ["Catch up " gnus-topic-catchup-articles |
| 803 | :included (gnus-topic-mode-p) | 794 | :included (gnus-topic-mode-p) |
| 804 | ,@(if (featurep 'xemacs) nil | 795 | :help "Mark unread articles in the current group or topic as read"] |
| 805 | '(:help "Mark unread articles in the current group or topic as read"))] | ||
| 806 | ["Catch up all articles" gnus-group-catchup-current-all | 796 | ["Catch up all articles" gnus-group-catchup-current-all |
| 807 | (gnus-group-group-name)] | 797 | (gnus-group-group-name)] |
| 808 | ["Check for new articles" gnus-group-get-new-news-this-group | 798 | ["Check for new articles" gnus-group-get-new-news-this-group |
| 809 | :included (not (gnus-topic-mode-p)) | 799 | :included (not (gnus-topic-mode-p)) |
| 810 | :active (gnus-group-group-name) | 800 | :active (gnus-group-group-name) |
| 811 | ,@(if (featurep 'xemacs) nil | 801 | :help "Check for new messages in current group"] |
| 812 | '(:help "Check for new messages in current group"))] | ||
| 813 | ["Check for new articles " gnus-topic-get-new-news-this-topic | 802 | ["Check for new articles " gnus-topic-get-new-news-this-topic |
| 814 | :included (gnus-topic-mode-p) | 803 | :included (gnus-topic-mode-p) |
| 815 | ,@(if (featurep 'xemacs) nil | 804 | :help "Check for new messages in current group or topic"] |
| 816 | '(:help "Check for new messages in current group or topic"))] | ||
| 817 | ["Toggle subscription" gnus-group-unsubscribe-current-group | 805 | ["Toggle subscription" gnus-group-unsubscribe-current-group |
| 818 | (gnus-group-group-name)] | 806 | (gnus-group-group-name)] |
| 819 | ["Kill" gnus-group-kill-group :active (gnus-group-group-name) | 807 | ["Kill" gnus-group-kill-group :active (gnus-group-group-name) |
| 820 | ,@(if (featurep 'xemacs) nil | 808 | :help "Kill (remove) current group"] |
| 821 | '(:help "Kill (remove) current group"))] | ||
| 822 | ["Yank" gnus-group-yank-group gnus-list-of-killed-groups] | 809 | ["Yank" gnus-group-yank-group gnus-list-of-killed-groups] |
| 823 | ["Describe" gnus-group-describe-group :active (gnus-group-group-name) | 810 | ["Describe" gnus-group-describe-group :active (gnus-group-group-name) |
| 824 | ,@(if (featurep 'xemacs) nil | 811 | :help "Display description of the current group"] |
| 825 | '(:help "Display description of the current group"))] | ||
| 826 | ;; Actually one should check, if any of the marked groups gives t for | 812 | ;; Actually one should check, if any of the marked groups gives t for |
| 827 | ;; (gnus-check-backend-function 'request-expire-articles ...) | 813 | ;; (gnus-check-backend-function 'request-expire-articles ...) |
| 828 | ["Expire articles" gnus-group-expire-articles | 814 | ["Expire articles" gnus-group-expire-articles |
| @@ -959,13 +945,9 @@ simple manner.") | |||
| 959 | ["Send a message (mail or news)" gnus-group-post-news t] | 945 | ["Send a message (mail or news)" gnus-group-post-news t] |
| 960 | ["Create a local message" gnus-group-news t] | 946 | ["Create a local message" gnus-group-news t] |
| 961 | ["Check for new news" gnus-group-get-new-news | 947 | ["Check for new news" gnus-group-get-new-news |
| 962 | ,@(if (featurep 'xemacs) '(t) | 948 | :help "Get newly arrived articles"] |
| 963 | '(:help "Get newly arrived articles")) | ||
| 964 | ] | ||
| 965 | ["Send queued messages" gnus-delay-send-queue | 949 | ["Send queued messages" gnus-delay-send-queue |
| 966 | ,@(if (featurep 'xemacs) '(t) | 950 | :help "Send all messages that are scheduled to be sent now"] |
| 967 | '(:help "Send all messages that are scheduled to be sent now")) | ||
| 968 | ] | ||
| 969 | ["Activate all groups" gnus-activate-all-groups t] | 951 | ["Activate all groups" gnus-activate-all-groups t] |
| 970 | ["Restart Gnus" gnus-group-restart t] | 952 | ["Restart Gnus" gnus-group-restart t] |
| 971 | ["Read init file" gnus-group-read-init-file t] | 953 | ["Read init file" gnus-group-read-init-file t] |
| @@ -980,9 +962,7 @@ simple manner.") | |||
| 980 | ["Flush score cache" gnus-score-flush-cache t] | 962 | ["Flush score cache" gnus-score-flush-cache t] |
| 981 | ["Toggle topics" gnus-topic-mode t] | 963 | ["Toggle topics" gnus-topic-mode t] |
| 982 | ["Send a bug report" gnus-bug t] | 964 | ["Send a bug report" gnus-bug t] |
| 983 | ["Exit from Gnus" gnus-group-exit | 965 | ["Exit from Gnus" gnus-group-exit :help "Quit reading news"] |
| 984 | ,@(if (featurep 'xemacs) '(t) | ||
| 985 | '(:help "Quit reading news"))] | ||
| 986 | ["Exit without saving" gnus-group-quit t])) | 966 | ["Exit without saving" gnus-group-quit t])) |
| 987 | 967 | ||
| 988 | (gnus-run-hooks 'gnus-group-menu-hook))) | 968 | (gnus-run-hooks 'gnus-group-menu-hook))) |
| @@ -1100,8 +1080,7 @@ See `gmm-tool-bar-from-list' for the format of the list." | |||
| 1100 | (defun gnus-group-make-tool-bar (&optional force) | 1080 | (defun gnus-group-make-tool-bar (&optional force) |
| 1101 | "Make a group mode tool bar from `gnus-group-tool-bar'. | 1081 | "Make a group mode tool bar from `gnus-group-tool-bar'. |
| 1102 | When FORCE, rebuild the tool bar." | 1082 | When FORCE, rebuild the tool bar." |
| 1103 | (when (and (not (featurep 'xemacs)) | 1083 | (when (and (boundp 'tool-bar-mode) |
| 1104 | (boundp 'tool-bar-mode) | ||
| 1105 | tool-bar-mode | 1084 | tool-bar-mode |
| 1106 | (display-graphic-p) | 1085 | (display-graphic-p) |
| 1107 | (or (not gnus-group-tool-bar-map) force)) | 1086 | (or (not gnus-group-tool-bar-map) force)) |
| @@ -1510,8 +1489,7 @@ if it is a string, only list groups matching REGEXP." | |||
| 1510 | ;; Message-ID: <v9acdmrcse.fsf@marauder.physik.uni-ulm.de> | 1489 | ;; Message-ID: <v9acdmrcse.fsf@marauder.physik.uni-ulm.de> |
| 1511 | 1490 | ||
| 1512 | (defcustom gnus-group-update-tool-bar | 1491 | (defcustom gnus-group-update-tool-bar |
| 1513 | (and (not (featurep 'xemacs)) | 1492 | (and (boundp 'tool-bar-mode) |
| 1514 | (boundp 'tool-bar-mode) | ||
| 1515 | tool-bar-mode | 1493 | tool-bar-mode |
| 1516 | ;; Using `redraw-frame' (see `gnus-tool-bar-update') in Emacs might | 1494 | ;; Using `redraw-frame' (see `gnus-tool-bar-update') in Emacs might |
| 1517 | ;; be confusing, so maybe we shouldn't call it by default. | 1495 | ;; be confusing, so maybe we shouldn't call it by default. |
| @@ -4673,14 +4651,10 @@ This command may read the active file." | |||
| 4673 | (gnus-group-list-mode gnus-group-list-mode) ;; Save it. | 4651 | (gnus-group-list-mode gnus-group-list-mode) ;; Save it. |
| 4674 | func) | 4652 | func) |
| 4675 | (push last-command-event unread-command-events) | 4653 | (push last-command-event unread-command-events) |
| 4676 | (if (featurep 'xemacs) | 4654 | (push ?A unread-command-events) |
| 4677 | (push (make-event 'key-press '(key ?A)) unread-command-events) | ||
| 4678 | (push ?A unread-command-events)) | ||
| 4679 | (let (gnus-pick-mode keys) | 4655 | (let (gnus-pick-mode keys) |
| 4680 | (setq keys (if (featurep 'xemacs) | 4656 | (setq keys (read-key-sequence nil) |
| 4681 | (events-to-keys (read-key-sequence nil)) | 4657 | func (lookup-key (current-local-map) keys))) |
| 4682 | (read-key-sequence nil))) | ||
| 4683 | (setq func (lookup-key (current-local-map) keys))) | ||
| 4684 | (if (or (not func) | 4658 | (if (or (not func) |
| 4685 | (numberp func)) | 4659 | (numberp func)) |
| 4686 | (ding) | 4660 | (ding) |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 9413d4e1b2a..23b8836ac7c 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | (require 'xml) | 39 | (require 'xml) |
| 40 | (require 'browse-url) | 40 | (require 'browse-url) |
| 41 | (require 'mm-util) | 41 | (require 'mm-util) |
| 42 | (eval-and-compile (unless (featurep 'xemacs) (require 'help-fns))) | 42 | (require 'help-fns) |
| 43 | 43 | ||
| 44 | (defcustom gnus-html-image-cache-ttl (days-to-time 7) | 44 | (defcustom gnus-html-image-cache-ttl (days-to-time 7) |
| 45 | "Time used to determine if we should use images from the cache." | 45 | "Time used to determine if we should use images from the cache." |
| @@ -454,10 +454,7 @@ Return a string with image data." | |||
| 454 | (let* ((image | 454 | (let* ((image |
| 455 | (ignore-errors | 455 | (ignore-errors |
| 456 | (gnus-create-image data nil t))) | 456 | (gnus-create-image data nil t))) |
| 457 | (size (and image | 457 | (size (and image (image-size image t)))) |
| 458 | (if (featurep 'xemacs) | ||
| 459 | (cons (glyph-width image) (glyph-height image)) | ||
| 460 | (image-size image t))))) | ||
| 461 | (save-excursion | 458 | (save-excursion |
| 462 | (goto-char start) | 459 | (goto-char start) |
| 463 | (let ((alt-text (or alt-text | 460 | (let ((alt-text (or alt-text |
| @@ -466,16 +463,8 @@ Return a string with image data." | |||
| 466 | (if (and image | 463 | (if (and image |
| 467 | ;; Kludge to avoid displaying 30x30 gif images, which | 464 | ;; Kludge to avoid displaying 30x30 gif images, which |
| 468 | ;; seems to be a signal of a broken image. | 465 | ;; seems to be a signal of a broken image. |
| 469 | (not (and (if (featurep 'xemacs) | 466 | (not (and (listp image) |
| 470 | (glyphp image) | 467 | (eq (plist-get (cdr image) :type) |
| 471 | (listp image)) | ||
| 472 | (eq (if (featurep 'xemacs) | ||
| 473 | (let ((d (cdadar | ||
| 474 | (specifier-spec-list | ||
| 475 | (glyph-image image))))) | ||
| 476 | (and (vectorp d) | ||
| 477 | (aref d 0))) | ||
| 478 | (plist-get (cdr image) :type)) | ||
| 479 | 'gif) | 468 | 'gif) |
| 480 | (= (car size) 30) | 469 | (= (car size) 30) |
| 481 | (= (cdr size) 30)))) | 470 | (= (cdr size) 30)))) |
diff --git a/lisp/gnus/gnus-ml.el b/lisp/gnus/gnus-ml.el index 8ff36160f09..97bbab41fd1 100644 --- a/lisp/gnus/gnus-ml.el +++ b/lisp/gnus/gnus-ml.el | |||
| @@ -29,9 +29,6 @@ | |||
| 29 | (require 'gnus) | 29 | (require 'gnus) |
| 30 | (require 'gnus-msg) | 30 | (require 'gnus-msg) |
| 31 | (eval-when-compile (require 'cl)) | 31 | (eval-when-compile (require 'cl)) |
| 32 | (eval-when-compile | ||
| 33 | (when (featurep 'xemacs) | ||
| 34 | (require 'easy-mmode))) ; for `define-minor-mode' | ||
| 35 | 32 | ||
| 36 | ;;; Mailing list minor mode | 33 | ;;; Mailing list minor mode |
| 37 | 34 | ||
| @@ -84,12 +81,6 @@ If FORCE is non-nil, replace the old ones." | |||
| 84 | (gnus-mailing-list-mode 1)) | 81 | (gnus-mailing-list-mode 1)) |
| 85 | (gnus-message 1 "no list-post in this message.")))) | 82 | (gnus-message 1 "no list-post in this message.")))) |
| 86 | 83 | ||
| 87 | (eval-when-compile | ||
| 88 | (when (featurep 'xemacs) | ||
| 89 | (defvar gnus-mailing-list-mode-hook) | ||
| 90 | (defvar gnus-mailing-list-mode-on-hook) | ||
| 91 | (defvar gnus-mailing-list-mode-off-hook))) | ||
| 92 | |||
| 93 | ;;;###autoload | 84 | ;;;###autoload |
| 94 | (define-minor-mode gnus-mailing-list-mode | 85 | (define-minor-mode gnus-mailing-list-mode |
| 95 | "Minor mode for providing mailing-list commands. | 86 | "Minor mode for providing mailing-list commands. |
diff --git a/lisp/gnus/gnus-picon.el b/lisp/gnus/gnus-picon.el index bbbe0eded4e..1b0acd24030 100644 --- a/lisp/gnus/gnus-picon.el +++ b/lisp/gnus/gnus-picon.el | |||
| @@ -81,7 +81,6 @@ Some people may want to add \"unknown\" to this list." | |||
| 81 | "How should picons be displayed. | 81 | "How should picons be displayed. |
| 82 | If `inline', the textual representation is replaced. If `right', picons are | 82 | If `inline', the textual representation is replaced. If `right', picons are |
| 83 | added right to the textual representation." | 83 | added right to the textual representation." |
| 84 | ;; FIXME: `right' needs improvement for XEmacs. | ||
| 85 | :type '(choice (const inline) | 84 | :type '(choice (const inline) |
| 86 | (const right)) | 85 | (const right)) |
| 87 | :group 'gnus-picon) | 86 | :group 'gnus-picon) |