aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-11 16:55:30 +1100
committerLars Ingebrigtsen2016-02-11 16:55:30 +1100
commit00cc327b9d7f2b90b10ec45f111dcc670dbbb102 (patch)
tree714a3e885db189c58818ec6787480f7d795649c2
parentefbaf95619cad8b9dc911c0393a004f225d44cec (diff)
downloademacs-00cc327b9d7f2b90b10ec45f111dcc670dbbb102.tar.gz
emacs-00cc327b9d7f2b90b10ec45f111dcc670dbbb102.zip
Remove more XEmacs compat code from Gnus
* lisp/gnus/gnus-util.el (gnus-bound-and-true-p): Remove. (gnus-timer--function): Remove. * lisp/gnus/gnus-uu.el (gnus-uu-save-article): Remove XEmacs 19.2 compat. * lisp/gnus/gnus-win.el: Remove XEmacs compat code.
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/gnus/gnus-util.el10
-rw-r--r--lisp/gnus/gnus-uu.el5
-rw-r--r--lisp/gnus/gnus-win.el19
-rw-r--r--lisp/gnus/gnus.el13
-rw-r--r--lisp/gnus/nnir.el4
-rw-r--r--lisp/gnus/nnmairix.el2
7 files changed, 13 insertions, 42 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 9b1215b7d6f..99d107e2beb 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -4562,7 +4562,7 @@ commands:
4562(defun gnus-article-stop-animations () 4562(defun gnus-article-stop-animations ()
4563 (dolist (timer (and (boundp 'timer-list) 4563 (dolist (timer (and (boundp 'timer-list)
4564 timer-list)) 4564 timer-list))
4565 (when (eq (gnus-timer--function timer) 'image-animate-timeout) 4565 (when (eq (timer--function timer) 'image-animate-timeout)
4566 (cancel-timer timer)))) 4566 (cancel-timer timer))))
4567 4567
4568(defun gnus-stop-downloads () 4568(defun gnus-stop-downloads ()
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 52b2df45718..eee80fdd6bc 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1819,16 +1819,6 @@ to case differences."
1819 (string-equal (downcase str1) (downcase prefix)) 1819 (string-equal (downcase str1) (downcase prefix))
1820 (string-equal str1 prefix)))))) 1820 (string-equal str1 prefix))))))
1821 1821
1822;; Simple check: can be a macro but this way, although slow, it's really clear.
1823;; We don't use `bound-and-true-p' because it's not in XEmacs.
1824(defun gnus-bound-and-true-p (sym)
1825 (and (boundp sym) (symbol-value sym)))
1826
1827(if (fboundp 'timer--function)
1828 (defalias 'gnus-timer--function 'timer--function)
1829 (defun gnus-timer--function (timer)
1830 (elt timer 5)))
1831
1832(defun gnus-test-list (list predicate) 1822(defun gnus-test-list (list predicate)
1833 "To each element of LIST apply PREDICATE. 1823 "To each element of LIST apply PREDICATE.
1834Return nil if LIST is no list or is empty or some test returns nil; 1824Return nil if LIST is no list or is empty or some test returns nil;
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el
index 416567ed285..1a249e95584 100644
--- a/lisp/gnus/gnus-uu.el
+++ b/lisp/gnus/gnus-uu.el
@@ -876,10 +876,7 @@ When called interactively, prompt for REGEXP."
876 (with-current-buffer buffer 876 (with-current-buffer buffer
877 (save-restriction 877 (save-restriction
878 (let ((inhibit-read-only t)) 878 (let ((inhibit-read-only t))
879 (set-text-properties (point-min) (point-max) nil) 879 (set-text-properties (point-min) (point-max) nil))
880 ;; These two are necessary for XEmacs 19.12 fascism.
881 (put-text-property (point-min) (point-max) 'invisible nil)
882 (put-text-property (point-min) (point-max) 'intangible nil))
883 (when (and message-forward-as-mime 880 (when (and message-forward-as-mime
884 message-forward-show-mml 881 message-forward-show-mml
885 gnus-uu-digest-buffer) 882 gnus-uu-digest-buffer)
diff --git a/lisp/gnus/gnus-win.el b/lisp/gnus/gnus-win.el
index 2c448aadb4c..c17ccd6858d 100644
--- a/lisp/gnus/gnus-win.el
+++ b/lisp/gnus/gnus-win.el
@@ -273,9 +273,7 @@ See the Gnus manual for an explanation of the syntax used.")
273 (cond 273 (cond
274 ((eq buf (window-buffer (selected-window))) 274 ((eq buf (window-buffer (selected-window)))
275 (set-buffer buf)) 275 (set-buffer buf))
276 ((eq t (window-dedicated-p 276 ((eq t (window-dedicated-p))
277 ;; XEmacs version of `window-dedicated-p' requires it.
278 (selected-window)))
279 ;; If the window is hard-dedicated, we have a problem because 277 ;; If the window is hard-dedicated, we have a problem because
280 ;; we just can't do what we're asked. But signaling an error, 278 ;; we just can't do what we're asked. But signaling an error,
281 ;; like `switch-to-buffer' would do, is not an option because 279 ;; like `switch-to-buffer' would do, is not an option because
@@ -417,15 +415,11 @@ See the Gnus manual for an explanation of the syntax used.")
417 (gnus-delete-windows-in-gnusey-frames)) 415 (gnus-delete-windows-in-gnusey-frames))
418 ;; Just remove some windows. 416 ;; Just remove some windows.
419 (gnus-remove-some-windows) 417 (gnus-remove-some-windows)
420 (if (featurep 'xemacs) 418 (set-buffer nntp-server-buffer))
421 (switch-to-buffer nntp-server-buffer)
422 (set-buffer nntp-server-buffer)))
423 (select-frame frame))) 419 (select-frame frame)))
424 420
425 (let (gnus-window-frame-focus) 421 (let (gnus-window-frame-focus)
426 (if (featurep 'xemacs) 422 (set-buffer nntp-server-buffer)
427 (switch-to-buffer nntp-server-buffer)
428 (set-buffer nntp-server-buffer))
429 (gnus-configure-frame split) 423 (gnus-configure-frame split)
430 (run-hooks 'gnus-configure-windows-hook) 424 (run-hooks 'gnus-configure-windows-hook)
431 (when gnus-window-frame-focus 425 (when gnus-window-frame-focus
@@ -510,9 +504,7 @@ should have point."
510 lowest-buf buf)))) 504 lowest-buf buf))))
511 (when lowest-buf 505 (when lowest-buf
512 (pop-to-buffer lowest-buf) 506 (pop-to-buffer lowest-buf)
513 (if (featurep 'xemacs) 507 (set-buffer nntp-server-buffer))
514 (switch-to-buffer nntp-server-buffer)
515 (set-buffer nntp-server-buffer)))
516 (mapcar (lambda (b) (delete-windows-on b t)) 508 (mapcar (lambda (b) (delete-windows-on b t))
517 (delq lowest-buf bufs))))) 509 (delq lowest-buf bufs)))))
518 510
@@ -520,9 +512,6 @@ should have point."
520 (cond 512 (cond
521 ((fboundp 'frames-on-display-list) 513 ((fboundp 'frames-on-display-list)
522 (defalias 'gnus-frames-on-display-list 'frames-on-display-list)) 514 (defalias 'gnus-frames-on-display-list 'frames-on-display-list))
523 ((and (featurep 'xemacs) (fboundp 'frame-device))
524 (defun gnus-frames-on-display-list ()
525 (apply 'filtered-frame-list 'identity (list (frame-device nil)))))
526 (t 515 (t
527 (defalias 'gnus-frames-on-display-list 'frame-list)))) 516 (defalias 'gnus-frames-on-display-list 'frame-list))))
528 517
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 661f4839634..fe867490df4 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -2503,16 +2503,11 @@ Disabling the agent may result in noticeable loss of performance."
2503 (function-item gnus-slave-no-server))) 2503 (function-item gnus-slave-no-server)))
2504 2504
2505(defcustom gnus-other-frame-parameters nil 2505(defcustom gnus-other-frame-parameters nil
2506 "Frame parameters used by `gnus-other-frame' to create a Gnus frame. 2506 "Frame parameters used by `gnus-other-frame' to create a Gnus frame."
2507This should be an alist for Emacs, or a plist for XEmacs."
2508 :group 'gnus-start 2507 :group 'gnus-start
2509 :type (if (featurep 'xemacs) 2508 :type '(repeat (cons :format "%v"
2510 '(repeat (list :inline t :format "%v" 2509 (symbol :tag "Parameter")
2511 (symbol :tag "Property") 2510 (sexp :tag "Value"))))
2512 (sexp :tag "Value")))
2513 '(repeat (cons :format "%v"
2514 (symbol :tag "Parameter")
2515 (sexp :tag "Value")))))
2516 2511
2517(defcustom gnus-user-agent '(emacs gnus type) 2512(defcustom gnus-user-agent '(emacs gnus type)
2518 "Which information should be exposed in the User-Agent header. 2513 "Which information should be exposed in the User-Agent header.
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index eb436f51df5..783d1b93038 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -1787,7 +1787,7 @@ article came from is also searched."
1787 (list (list (gnus-method-to-server 1787 (list (list (gnus-method-to-server
1788 (gnus-find-method-for-group gnus-newsgroup-name))))) 1788 (gnus-find-method-for-group gnus-newsgroup-name)))))
1789 (registry-group (and 1789 (registry-group (and
1790 (gnus-bound-and-true-p 'gnus-registry-enabled) 1790 (bound-and-true-p gnus-registry-enabled)
1791 (car (gnus-registry-get-id-key 1791 (car (gnus-registry-get-id-key
1792 (mail-header-id header) 'group)))) 1792 (mail-header-id header) 'group))))
1793 (registry-server 1793 (registry-server
@@ -1859,7 +1859,7 @@ article came from is also searched."
1859 (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir) 1859 (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir)
1860 (setq gnus-summary-line-format 1860 (setq gnus-summary-line-format
1861 (or nnir-summary-line-format gnus-summary-line-format)) 1861 (or nnir-summary-line-format gnus-summary-line-format))
1862 (when (gnus-bound-and-true-p 'gnus-registry-enabled) 1862 (when (bound-and-true-p gnus-registry-enabled)
1863 (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t) 1863 (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t)
1864 (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t) 1864 (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t)
1865 (remove-hook 'gnus-summary-article-expire-hook 'gnus-registry-action t) 1865 (remove-hook 'gnus-summary-article-expire-hook 'gnus-registry-action t)
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el
index d5fa4fa74b4..20aecd9f1b6 100644
--- a/lisp/gnus/nnmairix.el
+++ b/lisp/gnus/nnmairix.el
@@ -1635,7 +1635,7 @@ search in raw mode."
1635 1635
1636(defun nnmairix-determine-original-group-from-registry (mid) 1636(defun nnmairix-determine-original-group-from-registry (mid)
1637 "Try to determine original group for message-id MID from the registry." 1637 "Try to determine original group for message-id MID from the registry."
1638 (when (gnus-bound-and-true-p 'gnus-registry-enabled) 1638 (when (bound-and-true-p gnus-registry-enabled)
1639 (unless (string-match "^<" mid) 1639 (unless (string-match "^<" mid)
1640 (set mid (concat "<" mid))) 1640 (set mid (concat "<" mid)))
1641 (unless (string-match ">$" mid) 1641 (unless (string-match ">$" mid)