aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-11 15:52:11 +1100
committerLars Ingebrigtsen2016-02-11 15:52:11 +1100
commit16b7e605f32862c592ffd1134079b91e3ee4ef91 (patch)
treee15bbc40b310ea510abfa94f81e77d57de2276dd
parent68a1669f57f551f714c156d3ad68a058094b3a52 (diff)
downloademacs-16b7e605f32862c592ffd1134079b91e3ee4ef91.tar.gz
emacs-16b7e605f32862c592ffd1134079b91e3ee4ef91.zip
Remove Gnus XEmacs compat
* lisp/gnus/gnus-start.el (gnus-dribble-enter): Remove comment about code that doesn't work in XEmacs. * lisp/gnus/gnus-sum.el: Remove XEmacs compat. * lisp/gnus/gnus-topic.el: Remove XEmacs compat.
-rw-r--r--lisp/gnus/gnus-start.el5
-rw-r--r--lisp/gnus/gnus-sum.el127
-rw-r--r--lisp/gnus/gnus-topic.el3
-rw-r--r--lisp/gnus/gnus-undo.el3
-rw-r--r--lisp/gnus/gnus-util.el15
5 files changed, 43 insertions, 110 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 692c8346130..8669ff4013d 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -865,11 +865,6 @@ If REGEXP is given, lines that match it will be deleted."
865 ;; Make sure that each dribble entry is a single line, so that 865 ;; Make sure that each dribble entry is a single line, so that
866 ;; the "remove" code above works. 866 ;; the "remove" code above works.
867 (insert (replace-regexp-in-string "\n" "\\\\n" string) "\n") 867 (insert (replace-regexp-in-string "\n" "\\\\n" string) "\n")
868 ;; This has been commented by Josh Huber <huber@alum.wpi.edu>
869 ;; It causes problems with both XEmacs and Emacs 21, and doesn't
870 ;; seem to be of much value. (FIXME: remove this after we make sure
871 ;; it's not needed).
872 ;; (set-window-point (get-buffer-window (current-buffer)) (point-max))
873 (bury-buffer gnus-dribble-buffer) 868 (bury-buffer gnus-dribble-buffer)
874 (with-current-buffer gnus-group-buffer 869 (with-current-buffer gnus-group-buffer
875 (gnus-group-set-mode-line)) 870 (gnus-group-set-mode-line))
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index d47e6d02795..b85a4034cd1 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -24,11 +24,7 @@
24 24
25;;; Code: 25;;; Code:
26 26
27(eval-when-compile 27(eval-when-compile (require 'cl))
28 (require 'cl))
29(eval-when-compile
30 (when (featurep 'xemacs)
31 (require 'easy-mmode))) ; for `define-minor-mode'
32 28
33(defvar tool-bar-mode) 29(defvar tool-bar-mode)
34(defvar gnus-tmp-header) 30(defvar gnus-tmp-header)
@@ -948,13 +944,6 @@ This hook is run before any variables are set in the summary buffer."
948 :group 'gnus-summary-various 944 :group 'gnus-summary-various
949 :type 'hook) 945 :type 'hook)
950 946
951;; Extracted from gnus-xmas-redefine in order to preserve user settings
952(when (featurep 'xemacs)
953 (add-hook 'gnus-summary-mode-hook 'gnus-xmas-summary-menu-add)
954 (add-hook 'gnus-summary-mode-hook 'gnus-xmas-setup-summary-toolbar)
955 (add-hook 'gnus-summary-mode-hook
956 'gnus-xmas-switch-horizontal-scrollbar-off))
957
958(defcustom gnus-summary-menu-hook nil 947(defcustom gnus-summary-menu-hook nil
959 "*Hook run after the creation of the summary mode menu." 948 "*Hook run after the creation of the summary mode menu."
960 :group 'gnus-summary-visual 949 :group 'gnus-summary-visual
@@ -2404,8 +2393,7 @@ increase the score of each group you read."
2404 ["Verify and Decrypt" gnus-summary-force-verify-and-decrypt t] 2393 ["Verify and Decrypt" gnus-summary-force-verify-and-decrypt t]
2405 ["Encrypt body" gnus-article-encrypt-body 2394 ["Encrypt body" gnus-article-encrypt-body
2406 :active (not (gnus-group-read-only-p)) 2395 :active (not (gnus-group-read-only-p))
2407 ,@(if (featurep 'xemacs) nil 2396 :help "Encrypt the message body on disk"]
2408 '(:help "Encrypt the message body on disk"))]
2409 ["Extract all parts..." gnus-summary-save-parts t] 2397 ["Extract all parts..." gnus-summary-save-parts t]
2410 ("Multipart" 2398 ("Multipart"
2411 ["Repair multipart" gnus-summary-repair-multipart t] 2399 ["Repair multipart" gnus-summary-repair-multipart t]
@@ -2414,8 +2402,7 @@ increase the score of each group you read."
2414 ["View part as type..." gnus-article-view-part-as-type t] 2402 ["View part as type..." gnus-article-view-part-as-type t]
2415 ["Encrypt body" gnus-article-encrypt-body 2403 ["Encrypt body" gnus-article-encrypt-body
2416 :active (not (gnus-group-read-only-p)) 2404 :active (not (gnus-group-read-only-p))
2417 ,@(if (featurep 'xemacs) nil 2405 :help "Encrypt the message body on disk"]
2418 '(:help "Encrypt the message body on disk"))]
2419 ["View part externally" gnus-article-view-part-externally t] 2406 ["View part externally" gnus-article-view-part-externally t]
2420 ["View HTML parts in browser" gnus-article-browse-html-article t] 2407 ["View HTML parts in browser" gnus-article-browse-html-article t]
2421 ["View part with charset..." gnus-article-view-part-as-charset t] 2408 ["View part with charset..." gnus-article-view-part-as-charset t]
@@ -2482,8 +2469,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2482 ["Quoted-Printable" gnus-article-de-quoted-unreadable t] 2469 ["Quoted-Printable" gnus-article-de-quoted-unreadable t]
2483 ["Base64" gnus-article-de-base64-unreadable t] 2470 ["Base64" gnus-article-de-base64-unreadable t]
2484 ["Rot 13" gnus-summary-caesar-message 2471 ["Rot 13" gnus-summary-caesar-message
2485 ,@(if (featurep 'xemacs) '(t) 2472 :help "\"Caesar rotate\" article by 13"]
2486 '(:help "\"Caesar rotate\" article by 13"))]
2487 ["De-IDNA" gnus-summary-idna-message t] 2473 ["De-IDNA" gnus-summary-idna-message t]
2488 ["Morse decode" gnus-summary-morse-message t] 2474 ["Morse decode" gnus-summary-morse-message t]
2489 ["Unix pipe..." gnus-summary-pipe-message t] 2475 ["Unix pipe..." gnus-summary-pipe-message t]
@@ -2508,11 +2494,9 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2508 ) 2494 )
2509 ("Output" 2495 ("Output"
2510 ["Save in default format..." gnus-summary-save-article 2496 ["Save in default format..." gnus-summary-save-article
2511 ,@(if (featurep 'xemacs) '(t) 2497 :help "Save article using default method"]
2512 '(:help "Save article using default method"))]
2513 ["Save in file..." gnus-summary-save-article-file 2498 ["Save in file..." gnus-summary-save-article-file
2514 ,@(if (featurep 'xemacs) '(t) 2499 :help "Save article in file"]
2515 '(:help "Save article in file"))]
2516 ["Save in Unix mail format..." gnus-summary-save-article-mail t] 2500 ["Save in Unix mail format..." gnus-summary-save-article-mail t]
2517 ["Save in MH folder..." gnus-summary-save-article-folder t] 2501 ["Save in MH folder..." gnus-summary-save-article-folder t]
2518 ["Save in VM folder..." gnus-summary-save-article-vm t] 2502 ["Save in VM folder..." gnus-summary-save-article-vm t]
@@ -2521,11 +2505,9 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2521 ["Pipe through a filter..." gnus-summary-pipe-output t] 2505 ["Pipe through a filter..." gnus-summary-pipe-output t]
2522 ["Print with Muttprint..." gnus-summary-muttprint t] 2506 ["Print with Muttprint..." gnus-summary-muttprint t]
2523 ["Print" gnus-summary-print-article 2507 ["Print" gnus-summary-print-article
2524 ,@(if (featurep 'xemacs) '(t) 2508 :help "Generate and print a PostScript image"])
2525 '(:help "Generate and print a PostScript image"))])
2526 ("Copy, move,... (Backend)" 2509 ("Copy, move,... (Backend)"
2527 ,@(if (featurep 'xemacs) nil 2510 :help "Copying, moving, expiring articles..."
2528 '(:help "Copying, moving, expiring articles..."))
2529 ["Respool article..." gnus-summary-respool-article t] 2511 ["Respool article..." gnus-summary-respool-article t]
2530 ["Move article..." gnus-summary-move-article 2512 ["Move article..." gnus-summary-move-article
2531 (gnus-check-backend-function 2513 (gnus-check-backend-function
@@ -2552,9 +2534,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2552 (gnus-check-backend-function 2534 (gnus-check-backend-function
2553 'request-expire-articles gnus-newsgroup-name)]) 2535 'request-expire-articles gnus-newsgroup-name)])
2554 ("Extract" 2536 ("Extract"
2555 ["Uudecode" gnus-uu-decode-uu 2537 ["Uudecode" gnus-uu-decode-uu :help "Decode uuencoded article(s)"]
2556 ,@(if (featurep 'xemacs) '(t)
2557 '(:help "Decode uuencoded article(s)"))]
2558 ["Uudecode and save" gnus-uu-decode-uu-and-save t] 2538 ["Uudecode and save" gnus-uu-decode-uu-and-save t]
2559 ["Unshar" gnus-uu-decode-unshar t] 2539 ["Unshar" gnus-uu-decode-unshar t]
2560 ["Unshar and save" gnus-uu-decode-unshar-and-save t] 2540 ["Unshar and save" gnus-uu-decode-unshar-and-save t]
@@ -2617,28 +2597,22 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2617 gnus-summary-post-menu gnus-summary-mode-map "" 2597 gnus-summary-post-menu gnus-summary-mode-map ""
2618 `("Post" 2598 `("Post"
2619 ["Send a message (mail or news)" gnus-summary-post-news 2599 ["Send a message (mail or news)" gnus-summary-post-news
2620 ,@(if (featurep 'xemacs) '(t) 2600 :help "Compose a new message (mail or news)"]
2621 '(:help "Compose a new message (mail or news)"))]
2622 ["Followup" gnus-summary-followup 2601 ["Followup" gnus-summary-followup
2623 ,@(if (featurep 'xemacs) '(t) 2602 :help "Post followup to this article"]
2624 '(:help "Post followup to this article"))]
2625 ["Followup and yank" gnus-summary-followup-with-original 2603 ["Followup and yank" gnus-summary-followup-with-original
2626 ,@(if (featurep 'xemacs) '(t) 2604 :help "Post followup to this article, quoting its contents"]
2627 '(:help "Post followup to this article, quoting its contents"))]
2628 ["Supersede article" gnus-summary-supersede-article t] 2605 ["Supersede article" gnus-summary-supersede-article t]
2629 ["Cancel article" gnus-summary-cancel-article 2606 ["Cancel article" gnus-summary-cancel-article
2630 ,@(if (featurep 'xemacs) '(t) 2607 :help "Cancel an article you posted"]
2631 '(:help "Cancel an article you posted"))]
2632 ["Reply" gnus-summary-reply t] 2608 ["Reply" gnus-summary-reply t]
2633 ["Reply and yank" gnus-summary-reply-with-original t] 2609 ["Reply and yank" gnus-summary-reply-with-original t]
2634 ["Wide reply" gnus-summary-wide-reply t] 2610 ["Wide reply" gnus-summary-wide-reply t]
2635 ["Wide reply and yank" gnus-summary-wide-reply-with-original 2611 ["Wide reply and yank" gnus-summary-wide-reply-with-original
2636 ,@(if (featurep 'xemacs) '(t) 2612 :help "Mail a reply, quoting this article"]
2637 '(:help "Mail a reply, quoting this article"))]
2638 ["Very wide reply" gnus-summary-very-wide-reply t] 2613 ["Very wide reply" gnus-summary-very-wide-reply t]
2639 ["Very wide reply and yank" gnus-summary-very-wide-reply-with-original 2614 ["Very wide reply and yank" gnus-summary-very-wide-reply-with-original
2640 ,@(if (featurep 'xemacs) '(t) 2615 :help "Mail a very wide reply, quoting this article"]
2641 '(:help "Mail a very wide reply, quoting this article"))]
2642 ["Mail forward" gnus-summary-mail-forward t] 2616 ["Mail forward" gnus-summary-mail-forward t]
2643 ["Post forward" gnus-summary-post-forward t] 2617 ["Post forward" gnus-summary-post-forward t]
2644 ["Digest and mail" gnus-uu-digest-mail-forward t] 2618 ["Digest and mail" gnus-uu-digest-mail-forward t]
@@ -2649,38 +2623,25 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2649 ["Send a mail" gnus-summary-mail-other-window t] 2623 ["Send a mail" gnus-summary-mail-other-window t]
2650 ["Create a local message" gnus-summary-news-other-window t] 2624 ["Create a local message" gnus-summary-news-other-window t]
2651 ["Uuencode and post" gnus-uu-post-news 2625 ["Uuencode and post" gnus-uu-post-news
2652 ,@(if (featurep 'xemacs) '(t) 2626 :help "Post a uuencoded article"]
2653 '(:help "Post a uuencoded article"))]
2654 ["Followup via news" gnus-summary-followup-to-mail t] 2627 ["Followup via news" gnus-summary-followup-to-mail t]
2655 ["Followup via news and yank" 2628 ["Followup via news and yank"
2656 gnus-summary-followup-to-mail-with-original t] 2629 gnus-summary-followup-to-mail-with-original t]
2657 ["Strip signature on reply" 2630 ["Strip signature on reply"
2658 (lambda () 2631 (lambda ()
2659 (interactive) 2632 (interactive)
2660 (if (not (memq message-cite-function 2633 (setq message-cite-function
2661 '(message-cite-original-without-signature 2634 (if (eq message-cite-function
2662 message-cite-original))) 2635 'message-cite-original-without-signature)
2663 ;; Stupid workaround for XEmacs not honoring :visible. 2636 'message-cite-original
2664 (message "Can't toggle this value of `message-cite-function'") 2637 'message-cite-original-without-signature)))
2665 (setq message-cite-function 2638 :visible (memq message-cite-function
2666 (if (eq message-cite-function 2639 '(message-cite-original-without-signature
2667 'message-cite-original-without-signature) 2640 message-cite-original))
2668 'message-cite-original
2669 'message-cite-original-without-signature))))
2670 ;; XEmacs barfs on :visible.
2671 ,@(if (featurep 'xemacs) nil
2672 '(:visible (memq message-cite-function
2673 '(message-cite-original-without-signature
2674 message-cite-original))))
2675 :style toggle 2641 :style toggle
2676 :selected (eq message-cite-function 2642 :selected (eq message-cite-function
2677 'message-cite-original-without-signature) 2643 'message-cite-original-without-signature)
2678 ,@(if (featurep 'xemacs) nil 2644 :help "Strip signature from cited article when replying."]))
2679 '(:help "Strip signature from cited article when replying."))]
2680 ;;("Draft"
2681 ;;["Send" gnus-summary-send-draft t]
2682 ;;["Send bounced" gnus-resend-bounced-mail t])
2683 ))
2684 2645
2685 (cond 2646 (cond
2686 ((not (keymapp gnus-summary-post-menu)) 2647 ((not (keymapp gnus-summary-post-menu))
@@ -2701,8 +2662,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2701 gnus-summary-kill-same-subject-and-select t] 2662 gnus-summary-kill-same-subject-and-select t]
2702 ["Mark same subject" gnus-summary-kill-same-subject t] 2663 ["Mark same subject" gnus-summary-kill-same-subject t]
2703 ["Catchup" gnus-summary-catchup 2664 ["Catchup" gnus-summary-catchup
2704 ,@(if (featurep 'xemacs) '(t) 2665 :help "Mark unread articles in this group as read"]
2705 '(:help "Mark unread articles in this group as read"))]
2706 ["Catchup all" gnus-summary-catchup-all t] 2666 ["Catchup all" gnus-summary-catchup-all t]
2707 ["Catchup to here" gnus-summary-catchup-to-here t] 2667 ["Catchup to here" gnus-summary-catchup-to-here t]
2708 ["Catchup from here" gnus-summary-catchup-from-here t] 2668 ["Catchup from here" gnus-summary-catchup-from-here t]
@@ -2763,11 +2723,9 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2763 ("Registry Marks") 2723 ("Registry Marks")
2764 ("Scroll article" 2724 ("Scroll article"
2765 ["Page forward" gnus-summary-next-page 2725 ["Page forward" gnus-summary-next-page
2766 ,@(if (featurep 'xemacs) '(t) 2726 :help "Show next page of article"]
2767 '(:help "Show next page of article"))]
2768 ["Page backward" gnus-summary-prev-page 2727 ["Page backward" gnus-summary-prev-page
2769 ,@(if (featurep 'xemacs) '(t) 2728 :help "Show previous page of article"]
2770 '(:help "Show previous page of article"))]
2771 ["Line forward" gnus-summary-scroll-up t]) 2729 ["Line forward" gnus-summary-scroll-up t])
2772 ("Move" 2730 ("Move"
2773 ["Next unread article" gnus-summary-next-unread-article t] 2731 ["Next unread article" gnus-summary-next-unread-article t]
@@ -2827,14 +2785,12 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs))))
2827 ["Send a bug report" gnus-bug t] 2785 ["Send a bug report" gnus-bug t]
2828 ("Exit" 2786 ("Exit"
2829 ["Catchup and exit" gnus-summary-catchup-and-exit 2787 ["Catchup and exit" gnus-summary-catchup-and-exit
2830 ,@(if (featurep 'xemacs) '(t) 2788 :help "Mark unread articles in this group as read, then exit"]
2831 '(:help "Mark unread articles in this group as read, then exit"))]
2832 ["Catchup all and exit" gnus-summary-catchup-all-and-exit t] 2789 ["Catchup all and exit" gnus-summary-catchup-all-and-exit t]
2833 ["Catchup and goto next" gnus-summary-catchup-and-goto-next-group t] 2790 ["Catchup and goto next" gnus-summary-catchup-and-goto-next-group t]
2834 ["Catchup and goto prev" gnus-summary-catchup-and-goto-prev-group t] 2791 ["Catchup and goto prev" gnus-summary-catchup-and-goto-prev-group t]
2835 ["Exit group" gnus-summary-exit 2792 ["Exit group" gnus-summary-exit
2836 ,@(if (featurep 'xemacs) '(t) 2793 :help "Exit current group, return to group selection mode"]
2837 '(:help "Exit current group, return to group selection mode"))]
2838 ["Exit group without updating" gnus-summary-exit-no-update t] 2794 ["Exit group without updating" gnus-summary-exit-no-update t]
2839 ["Exit and goto next group" gnus-summary-next-group t] 2795 ["Exit and goto next group" gnus-summary-next-group t]
2840 ["Exit and goto prev group" gnus-summary-prev-group t] 2796 ["Exit and goto prev group" gnus-summary-prev-group t]
@@ -2983,8 +2939,7 @@ See `gmm-tool-bar-from-list' for the format of the list."
2983(defun gnus-summary-make-tool-bar (&optional force) 2939(defun gnus-summary-make-tool-bar (&optional force)
2984 "Make a summary mode tool bar from `gnus-summary-tool-bar'. 2940 "Make a summary mode tool bar from `gnus-summary-tool-bar'.
2985When FORCE, rebuild the tool bar." 2941When FORCE, rebuild the tool bar."
2986 (when (and (not (featurep 'xemacs)) 2942 (when (and (boundp 'tool-bar-mode)
2987 (boundp 'tool-bar-mode)
2988 tool-bar-mode 2943 tool-bar-mode
2989 (or (not gnus-summary-tool-bar-map) force)) 2944 (or (not gnus-summary-tool-bar-map) force))
2990 (let* ((load-path 2945 (let* ((load-path
@@ -3124,12 +3079,10 @@ The following commands are available:
3124 (setq mode-name "Summary") 3079 (setq mode-name "Summary")
3125 (use-local-map gnus-summary-mode-map) 3080 (use-local-map gnus-summary-mode-map)
3126 (buffer-disable-undo) 3081 (buffer-disable-undo)
3127 (setq buffer-read-only t ;Disable modification 3082 (setq buffer-read-only t
3128 show-trailing-whitespace nil) 3083 show-trailing-whitespace nil
3129 (setq truncate-lines t) 3084 truncate-lines t
3130 ;; Force paragraph direction to be left-to-right. Don't make it 3085 bidi-paragraph-direction 'left-to-right)
3131 ;; bound globally in old Emacsen and XEmacsen.
3132 (set (make-local-variable 'bidi-paragraph-direction) 'left-to-right)
3133 (add-to-invisibility-spec '(gnus-sum . t)) 3086 (add-to-invisibility-spec '(gnus-sum . t))
3134 (gnus-summary-set-display-table) 3087 (gnus-summary-set-display-table)
3135 (gnus-set-default-directory) 3088 (gnus-set-default-directory)
@@ -7817,9 +7770,7 @@ If BACKWARD, the previous article is selected instead of the next."
7817 (t 7770 (t
7818 (unless (gnus-ephemeral-group-p gnus-newsgroup-name) 7771 (unless (gnus-ephemeral-group-p gnus-newsgroup-name)
7819 (gnus-summary-jump-to-group gnus-newsgroup-name)) 7772 (gnus-summary-jump-to-group gnus-newsgroup-name))
7820 (let ((cmd (if (featurep 'xemacs) 7773 (let ((cmd last-command-event)
7821 last-command-char
7822 last-command-event))
7823 (point 7774 (point
7824 (with-current-buffer gnus-group-buffer 7775 (with-current-buffer gnus-group-buffer
7825 (point))) 7776 (point)))
@@ -9438,7 +9389,6 @@ Optional argument BACKWARD means do search for backward.
9438 (gnus-article-prepare-hook nil) 9389 (gnus-article-prepare-hook nil)
9439 (gnus-mark-article-hook nil) ;Inhibit marking as read. 9390 (gnus-mark-article-hook nil) ;Inhibit marking as read.
9440 (gnus-use-article-prefetch nil) 9391 (gnus-use-article-prefetch nil)
9441 (gnus-xmas-force-redisplay nil) ;Inhibit XEmacs redisplay.
9442 (gnus-use-trees nil) ;Inhibit updating tree buffer. 9392 (gnus-use-trees nil) ;Inhibit updating tree buffer.
9443 (gnus-visual nil) 9393 (gnus-visual nil)
9444 (gnus-keep-backlog nil) 9394 (gnus-keep-backlog nil)
@@ -11721,9 +11671,7 @@ Returns nil if no thread was there to be shown."
11721 (beg (progn (beginning-of-line) (if (bobp) (point) (1- (point))))) 11671 (beg (progn (beginning-of-line) (if (bobp) (point) (1- (point)))))
11722 (eoi (when end 11672 (eoi (when end
11723 (if (fboundp 'next-single-char-property-change) 11673 (if (fboundp 'next-single-char-property-change)
11724 ;; Note: XEmacs version of n-s-c-p-c may return nil 11674 (next-single-char-property-change end 'invisible)
11725 (or (next-single-char-property-change end 'invisible)
11726 (point-max))
11727 (while (progn 11675 (while (progn
11728 (end-of-line 2) 11676 (end-of-line 2)
11729 (and (not (eobp)) 11677 (and (not (eobp))
@@ -12304,7 +12252,6 @@ save those articles instead."
12304(defun gnus-read-move-group-name (prompt default articles prefix) 12252(defun gnus-read-move-group-name (prompt default articles prefix)
12305 "Read a group name." 12253 "Read a group name."
12306 (let* ((split-name (gnus-get-split-value gnus-move-split-methods)) 12254 (let* ((split-name (gnus-get-split-value gnus-move-split-methods))
12307 (minibuffer-confirm-incomplete nil) ; XEmacs
12308 (prom 12255 (prom
12309 (format "%s %s to" 12256 (format "%s %s to"
12310 prompt 12257 prompt
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el
index 3255aa9a8a4..c5a1777f403 100644
--- a/lisp/gnus/gnus-topic.el
+++ b/lisp/gnus/gnus-topic.el
@@ -44,9 +44,6 @@
44 :type 'hook 44 :type 'hook
45 :group 'gnus-topic) 45 :group 'gnus-topic)
46 46
47(when (featurep 'xemacs)
48 (add-hook 'gnus-topic-mode-hook 'gnus-xmas-topic-menu-add))
49
50(defcustom gnus-topic-line-format "%i[ %(%{%n%}%) -- %A ]%v\n" 47(defcustom gnus-topic-line-format "%i[ %(%{%n%}%) -- %A ]%v\n"
51 "Format of topic lines. 48 "Format of topic lines.
52It works along the same lines as a normal formatting string, 49It works along the same lines as a normal formatting string,
diff --git a/lisp/gnus/gnus-undo.el b/lisp/gnus/gnus-undo.el
index b3afcd7f440..8206b527065 100644
--- a/lisp/gnus/gnus-undo.el
+++ b/lisp/gnus/gnus-undo.el
@@ -44,9 +44,6 @@
44;;; Code: 44;;; Code:
45 45
46(eval-when-compile (require 'cl)) 46(eval-when-compile (require 'cl))
47(eval-when-compile
48 (when (featurep 'xemacs)
49 (require 'easy-mmode))) ; for `define-minor-mode'
50 47
51(require 'gnus-util) 48(require 'gnus-util)
52(require 'gnus) 49(require 'gnus)
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 99565a27496..a883de9b083 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -44,15 +44,12 @@
44 :type `(radio (function-item 44 :type `(radio (function-item
45 :doc "Use Emacs standard `completing-read' function." 45 :doc "Use Emacs standard `completing-read' function."
46 gnus-emacs-completing-read) 46 gnus-emacs-completing-read)
47 ;; iswitchb.el is very old and ido.el is unavailable 47 (function-item
48 ;; in XEmacs, so we exclude those function items. 48 :doc "Use `ido-completing-read' function."
49 ,@(unless (featurep 'xemacs) 49 gnus-ido-completing-read)
50 '((function-item 50 (function-item
51 :doc "Use `ido-completing-read' function." 51 :doc "Use iswitchb based completing-read function."
52 gnus-ido-completing-read) 52 gnus-iswitchb-completing-read)))
53 (function-item
54 :doc "Use iswitchb based completing-read function."
55 gnus-iswitchb-completing-read)))))
56 53
57(defcustom gnus-completion-styles 54(defcustom gnus-completion-styles
58 (if (and (boundp 'completion-styles-alist) 55 (if (and (boundp 'completion-styles-alist)