diff options
| author | Lars Ingebrigtsen | 2016-02-10 10:58:59 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-10 11:01:03 +1100 |
| commit | 31c1a3df47d6178962443f92e6e235d327b60df5 (patch) | |
| tree | 37797169733454b8c780d32b56bd4d6162facc01 | |
| parent | 34662c20bc0f0d6cc40af99ab830a80bc4952258 (diff) | |
| download | emacs-31c1a3df47d6178962443f92e6e235d327b60df5.tar.gz emacs-31c1a3df47d6178962443f92e6e235d327b60df5.zip | |
Remove Gnus compat functions
* lisp/gnus/gnus-ems.el (gnus-mark-active-p)
(gnus-region-active-p, gnus-select-lowest-window)
(gnus-summary-display-table, gnus-max-width-function): Remove
compat functions.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 32 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-score.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 11 | ||||
| -rw-r--r-- | lisp/gnus/gnus-topic.el | 4 |
6 files changed, 16 insertions, 45 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 238a67f5532..147c258b4ba 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -6980,7 +6980,7 @@ the entire article will be yanked." | |||
| 6980 | (interactive) | 6980 | (interactive) |
| 6981 | (let ((article (cdr gnus-article-current)) | 6981 | (let ((article (cdr gnus-article-current)) |
| 6982 | contents) | 6982 | contents) |
| 6983 | (if (not (gnus-region-active-p)) | 6983 | (if (not (and transient-mark-mode mark-active)) |
| 6984 | (with-current-buffer gnus-summary-buffer | 6984 | (with-current-buffer gnus-summary-buffer |
| 6985 | (gnus-summary-reply (list (list article)) wide)) | 6985 | (gnus-summary-reply (list (list article)) wide)) |
| 6986 | (setq contents (buffer-substring (point) (mark t))) | 6986 | (setq contents (buffer-substring (point) (mark t))) |
| @@ -7006,7 +7006,7 @@ the entire article will be yanked." | |||
| 7006 | (interactive) | 7006 | (interactive) |
| 7007 | (let ((article (cdr gnus-article-current)) | 7007 | (let ((article (cdr gnus-article-current)) |
| 7008 | contents) | 7008 | contents) |
| 7009 | (if (not (gnus-region-active-p)) | 7009 | (if (not (and transient-mark-mode mark-active)) |
| 7010 | (with-current-buffer gnus-summary-buffer | 7010 | (with-current-buffer gnus-summary-buffer |
| 7011 | (gnus-summary-followup (list (list article)))) | 7011 | (gnus-summary-followup (list (list article)))) |
| 7012 | (setq contents (buffer-substring (point) (mark t))) | 7012 | (setq contents (buffer-substring (point) (mark t))) |
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index a4c091e4de7..0c18f022bf9 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -86,9 +86,6 @@ | |||
| 86 | 86 | ||
| 87 | (defun gnus-ems-redefine () | 87 | (defun gnus-ems-redefine () |
| 88 | (cond | 88 | (cond |
| 89 | ((featurep 'xemacs) | ||
| 90 | (gnus-xmas-redefine)) | ||
| 91 | |||
| 92 | ((featurep 'mule) | 89 | ((featurep 'mule) |
| 93 | ;; Mule and new Emacs definitions | 90 | ;; Mule and new Emacs definitions |
| 94 | 91 | ||
| @@ -108,10 +105,6 @@ | |||
| 108 | ;; (featurep 'xemacs). In this case, the implementation for | 105 | ;; (featurep 'xemacs). In this case, the implementation for |
| 109 | ;; XEmacs/mule may be shareable between XEmacs and XEmacs/mule. | 106 | ;; XEmacs/mule may be shareable between XEmacs and XEmacs/mule. |
| 110 | 107 | ||
| 111 | (defvar gnus-summary-display-table nil | ||
| 112 | "Display table used in summary mode buffers.") | ||
| 113 | (defalias 'gnus-max-width-function 'gnus-mule-max-width-function) | ||
| 114 | |||
| 115 | (when (boundp 'gnus-check-before-posting) | 108 | (when (boundp 'gnus-check-before-posting) |
| 116 | (setq gnus-check-before-posting | 109 | (setq gnus-check-before-posting |
| 117 | (delq 'long-lines | 110 | (delq 'long-lines |
| @@ -121,7 +114,7 @@ | |||
| 121 | (insert gnus-tmp-unread gnus-tmp-replied | 114 | (insert gnus-tmp-unread gnus-tmp-replied |
| 122 | gnus-tmp-score-char gnus-tmp-indentation) | 115 | gnus-tmp-score-char gnus-tmp-indentation) |
| 123 | (put-text-property | 116 | (put-text-property |
| 124 | (point) | 117 | g (point) |
| 125 | (progn | 118 | (progn |
| 126 | (insert | 119 | (insert |
| 127 | gnus-tmp-opening-bracket | 120 | gnus-tmp-opening-bracket |
| @@ -135,29 +128,6 @@ | |||
| 135 | gnus-mouse-face-prop gnus-mouse-face) | 128 | gnus-mouse-face-prop gnus-mouse-face) |
| 136 | (insert " " gnus-tmp-subject-or-nil "\n"))))) | 129 | (insert " " gnus-tmp-subject-or-nil "\n"))))) |
| 137 | 130 | ||
| 138 | ;; Clone of `appt-select-lowest-window' in appt.el. | ||
| 139 | (defun gnus-select-lowest-window () | ||
| 140 | "Select the lowest window on the frame." | ||
| 141 | (let ((lowest-window (selected-window)) | ||
| 142 | (bottom-edge (nth 3 (window-edges)))) | ||
| 143 | (walk-windows (lambda (w) | ||
| 144 | (let ((next-bottom-edge (nth 3 (window-edges w)))) | ||
| 145 | (when (< bottom-edge next-bottom-edge) | ||
| 146 | (setq bottom-edge next-bottom-edge | ||
| 147 | lowest-window w))))) | ||
| 148 | (select-window lowest-window))) | ||
| 149 | |||
| 150 | (defun gnus-region-active-p () | ||
| 151 | "Say whether the region is active." | ||
| 152 | (and (boundp 'transient-mark-mode) | ||
| 153 | transient-mark-mode | ||
| 154 | (boundp 'mark-active) | ||
| 155 | mark-active)) | ||
| 156 | |||
| 157 | (defun gnus-mark-active-p () | ||
| 158 | "Non-nil means the mark and region are currently active in this buffer." | ||
| 159 | mark-active) ; aliased to region-exists-p in XEmacs. | ||
| 160 | |||
| 161 | (provide 'gnus-ems) | 131 | (provide 'gnus-ems) |
| 162 | 132 | ||
| 163 | ;;; gnus-ems.el ends here | 133 | ;;; gnus-ems.el ends here |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 1cd16a4e043..8b81c877bda 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -905,14 +905,14 @@ simple manner.") | |||
| 905 | (memq (gnus-group-group-name) gnus-group-marked))] | 905 | (memq (gnus-group-group-name) gnus-group-marked))] |
| 906 | ["Unmark all" gnus-group-unmark-all-groups gnus-group-marked] | 906 | ["Unmark all" gnus-group-unmark-all-groups gnus-group-marked] |
| 907 | ["Mark regexp..." gnus-group-mark-regexp t] | 907 | ["Mark regexp..." gnus-group-mark-regexp t] |
| 908 | ["Mark region" gnus-group-mark-region :active (gnus-mark-active-p)] | 908 | ["Mark region" gnus-group-mark-region :active mark-active] |
| 909 | ["Mark buffer" gnus-group-mark-buffer t] | 909 | ["Mark buffer" gnus-group-mark-buffer t] |
| 910 | ["Execute command" gnus-group-universal-argument | 910 | ["Execute command" gnus-group-universal-argument |
| 911 | (or gnus-group-marked (gnus-group-group-name))]) | 911 | (or gnus-group-marked (gnus-group-group-name))]) |
| 912 | ("Subscribe" | 912 | ("Subscribe" |
| 913 | ["Subscribe to a group..." gnus-group-unsubscribe-group t] | 913 | ["Subscribe to a group..." gnus-group-unsubscribe-group t] |
| 914 | ["Kill all newsgroups in region" gnus-group-kill-region | 914 | ["Kill all newsgroups in region" gnus-group-kill-region |
| 915 | :active (gnus-mark-active-p)] | 915 | :active mark-active] |
| 916 | ["Kill all zombie groups" gnus-group-kill-all-zombies | 916 | ["Kill all zombie groups" gnus-group-kill-all-zombies |
| 917 | gnus-zombie-list] | 917 | gnus-zombie-list] |
| 918 | ["Kill all groups on level..." gnus-group-kill-level t]) | 918 | ["Kill all groups on level..." gnus-group-kill-level t]) |
| @@ -2028,7 +2028,7 @@ Take into consideration N (the prefix) and the list of marked groups." | |||
| 2028 | (setq n (1- n)) | 2028 | (setq n (1- n)) |
| 2029 | (gnus-group-next-group way))) | 2029 | (gnus-group-next-group way))) |
| 2030 | (nreverse groups))) | 2030 | (nreverse groups))) |
| 2031 | ((and (gnus-region-active-p) (mark)) | 2031 | ((and transient-mark-mode mark-active (mark)) |
| 2032 | ;; Work on the region between point and mark. | 2032 | ;; Work on the region between point and mark. |
| 2033 | (let ((max (max (point) (mark))) | 2033 | (let ((max (max (point) (mark))) |
| 2034 | groups) | 2034 | groups) |
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el index d3a1139902b..b486a05db09 100644 --- a/lisp/gnus/gnus-score.el +++ b/lisp/gnus/gnus-score.el | |||
| @@ -739,6 +739,8 @@ current score file." | |||
| 739 | (with-current-buffer gnus-summary-buffer | 739 | (with-current-buffer gnus-summary-buffer |
| 740 | (gnus-score-load-file current-score-file))))) | 740 | (gnus-score-load-file current-score-file))))) |
| 741 | 741 | ||
| 742 | (autoload 'appt-select-lowest-window "appt") | ||
| 743 | |||
| 742 | (defun gnus-score-insert-help (string alist idx) | 744 | (defun gnus-score-insert-help (string alist idx) |
| 743 | (setq gnus-score-help-winconf (current-window-configuration)) | 745 | (setq gnus-score-help-winconf (current-window-configuration)) |
| 744 | (with-current-buffer (gnus-get-buffer-create "*Score Help*") | 746 | (with-current-buffer (gnus-get-buffer-create "*Score Help*") |
| @@ -773,7 +775,7 @@ current score file." | |||
| 773 | (setq i (1+ i)))) | 775 | (setq i (1+ i)))) |
| 774 | (goto-char (point-min)) | 776 | (goto-char (point-min)) |
| 775 | ;; display ourselves in a small window at the bottom | 777 | ;; display ourselves in a small window at the bottom |
| 776 | (gnus-select-lowest-window) | 778 | (appt-select-lowest-window) |
| 777 | (if (< (/ (window-height) 2) window-min-height) | 779 | (if (< (/ (window-height) 2) window-min-height) |
| 778 | (switch-to-buffer "*Score Help*") | 780 | (switch-to-buffer "*Score Help*") |
| 779 | (split-window) | 781 | (split-window) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 32680b29104..b02e8fd52d2 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -2706,8 +2706,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs)))) | |||
| 2706 | ["Catchup all" gnus-summary-catchup-all t] | 2706 | ["Catchup all" gnus-summary-catchup-all t] |
| 2707 | ["Catchup to here" gnus-summary-catchup-to-here t] | 2707 | ["Catchup to here" gnus-summary-catchup-to-here t] |
| 2708 | ["Catchup from here" gnus-summary-catchup-from-here t] | 2708 | ["Catchup from here" gnus-summary-catchup-from-here t] |
| 2709 | ["Catchup region" gnus-summary-mark-region-as-read | 2709 | ["Catchup region" gnus-summary-mark-region-as-read mark-active] |
| 2710 | (gnus-mark-active-p)] | ||
| 2711 | ["Mark excluded" gnus-summary-limit-mark-excluded-as-read t]) | 2710 | ["Mark excluded" gnus-summary-limit-mark-excluded-as-read t]) |
| 2712 | ("Mark Various" | 2711 | ("Mark Various" |
| 2713 | ["Tick" gnus-summary-tick-article-forward t] | 2712 | ["Tick" gnus-summary-tick-article-forward t] |
| @@ -2746,8 +2745,8 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs)))) | |||
| 2746 | ["Invert marks" gnus-uu-invert-processable t] | 2745 | ["Invert marks" gnus-uu-invert-processable t] |
| 2747 | ["Mark above" gnus-uu-mark-over t] | 2746 | ["Mark above" gnus-uu-mark-over t] |
| 2748 | ["Mark series" gnus-uu-mark-series t] | 2747 | ["Mark series" gnus-uu-mark-series t] |
| 2749 | ["Mark region" gnus-uu-mark-region (gnus-mark-active-p)] | 2748 | ["Mark region" gnus-uu-mark-region mark-active] |
| 2750 | ["Unmark region" gnus-uu-unmark-region (gnus-mark-active-p)] | 2749 | ["Unmark region" gnus-uu-unmark-region mark-active] |
| 2751 | ["Mark by regexp..." gnus-uu-mark-by-regexp t] | 2750 | ["Mark by regexp..." gnus-uu-mark-by-regexp t] |
| 2752 | ["Unmark by regexp..." gnus-uu-unmark-by-regexp t] | 2751 | ["Unmark by regexp..." gnus-uu-unmark-by-regexp t] |
| 2753 | ["Mark all" gnus-uu-mark-all t] | 2752 | ["Mark all" gnus-uu-mark-all t] |
| @@ -6681,7 +6680,7 @@ current article will be taken into consideration." | |||
| 6681 | (gnus-summary-find-next nil article))) | 6680 | (gnus-summary-find-next nil article))) |
| 6682 | (decf n))) | 6681 | (decf n))) |
| 6683 | (nreverse articles))) | 6682 | (nreverse articles))) |
| 6684 | ((and (gnus-region-active-p) (mark)) | 6683 | ((and (and transient-mark-mode mark-active) (mark)) |
| 6685 | (message "region active") | 6684 | (message "region active") |
| 6686 | ;; Work on the region between point and mark. | 6685 | ;; Work on the region between point and mark. |
| 6687 | (let ((max (max (point) (mark))) | 6686 | (let ((max (max (point) (mark))) |
| @@ -10834,7 +10833,7 @@ If N is negative, mark backward instead. If UNMARK is non-nil, remove | |||
| 10834 | the process mark instead. The difference between N and the actual | 10833 | the process mark instead. The difference between N and the actual |
| 10835 | number of articles marked is returned." | 10834 | number of articles marked is returned." |
| 10836 | (interactive "P") | 10835 | (interactive "P") |
| 10837 | (if (and (null n) (gnus-region-active-p)) | 10836 | (if (and (null n) (and transient-mark-mode mark-active)) |
| 10838 | (gnus-uu-mark-region (region-beginning) (region-end) unmark) | 10837 | (gnus-uu-mark-region (region-beginning) (region-end) unmark) |
| 10839 | (setq n (prefix-numeric-value n)) | 10838 | (setq n (prefix-numeric-value n)) |
| 10840 | (let ((backward (< n 0)) | 10839 | (let ((backward (< n 0)) |
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el index 24ae4cfae48..35d0f3896e0 100644 --- a/lisp/gnus/gnus-topic.el +++ b/lisp/gnus/gnus-topic.el | |||
| @@ -1294,7 +1294,7 @@ If COPYP, copy the groups instead." | |||
| 1294 | (list current-prefix-arg | 1294 | (list current-prefix-arg |
| 1295 | (gnus-completing-read "Move to topic" (mapcar 'car gnus-topic-alist) t | 1295 | (gnus-completing-read "Move to topic" (mapcar 'car gnus-topic-alist) t |
| 1296 | nil 'gnus-topic-history))) | 1296 | nil 'gnus-topic-history))) |
| 1297 | (let ((use-marked (and (not n) (not (gnus-region-active-p)) | 1297 | (let ((use-marked (and (not n) (not (and transient-mark-mode mark-active)) |
| 1298 | gnus-group-marked t)) | 1298 | gnus-group-marked t)) |
| 1299 | (groups (gnus-group-process-prefix n)) | 1299 | (groups (gnus-group-process-prefix n)) |
| 1300 | (topicl (assoc topic gnus-topic-alist)) | 1300 | (topicl (assoc topic gnus-topic-alist)) |
| @@ -1319,7 +1319,7 @@ If COPYP, copy the groups instead." | |||
| 1319 | (defun gnus-topic-remove-group (&optional n) | 1319 | (defun gnus-topic-remove-group (&optional n) |
| 1320 | "Remove the current group from the topic." | 1320 | "Remove the current group from the topic." |
| 1321 | (interactive "P") | 1321 | (interactive "P") |
| 1322 | (let ((use-marked (and (not n) (not (gnus-region-active-p)) | 1322 | (let ((use-marked (and (not n) (not (and transient-mark-mode mark-active)) |
| 1323 | gnus-group-marked t)) | 1323 | gnus-group-marked t)) |
| 1324 | (groups (gnus-group-process-prefix n))) | 1324 | (groups (gnus-group-process-prefix n))) |
| 1325 | (mapc | 1325 | (mapc |