aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-11 16:45:02 +1100
committerLars Ingebrigtsen2016-02-11 16:45:02 +1100
commitefbaf95619cad8b9dc911c0393a004f225d44cec (patch)
tree0fd0bd76c5251286e1ebd39d318f00f6926ef772
parentfd8d344fc9164accd2d69683f8aee32b2a87b647 (diff)
downloademacs-efbaf95619cad8b9dc911c0393a004f225d44cec.tar.gz
emacs-efbaf95619cad8b9dc911c0393a004f225d44cec.zip
Remove more XEmacs compat functions from gnus-util.el
* lisp/gnus/gnus-util.el (gnus-put-display-table): Remove. (gnus-get-display-table): Remove. (gnus-format-message): Remove.
-rw-r--r--lisp/gnus/gnus-agent.el2
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/gnus/gnus-group.el4
-rw-r--r--lisp/gnus/gnus-int.el2
-rw-r--r--lisp/gnus/gnus-start.el4
-rw-r--r--lisp/gnus/gnus-sum.el12
-rw-r--r--lisp/gnus/gnus-topic.el4
-rw-r--r--lisp/gnus/gnus-util.el26
-rw-r--r--lisp/gnus/legacy-gnus-agent.el6
-rw-r--r--lisp/gnus/mail-source.el2
-rw-r--r--lisp/gnus/message.el6
-rw-r--r--lisp/gnus/mm-decode.el2
-rw-r--r--lisp/gnus/mm-uu.el2
-rw-r--r--lisp/gnus/mml-smime.el4
-rw-r--r--lisp/gnus/spam-report.el2
15 files changed, 27 insertions, 53 deletions
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index ae5cfc6bb9a..11f93a29a1f 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -837,7 +837,7 @@ be a select method."
837 (not (eq gnus-agent-synchronize-flags 'ask))) 837 (not (eq gnus-agent-synchronize-flags 'ask)))
838 (and (eq gnus-agent-synchronize-flags 'ask) 838 (and (eq gnus-agent-synchronize-flags 'ask)
839 (gnus-y-or-n-p 839 (gnus-y-or-n-p
840 (gnus-format-message 840 (format-message
841 "Synchronize flags on server `%s'? " 841 "Synchronize flags on server `%s'? "
842 (cadr method)))))) 842 (cadr method))))))
843 (gnus-agent-synchronize-flags-server method))) 843 (gnus-agent-synchronize-flags-server method)))
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index c4f682396a6..9b1215b7d6f 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -2744,7 +2744,7 @@ summary buffer."
2744 (cond ((file-directory-p file) 2744 (cond ((file-directory-p file)
2745 (when (or (not (eq how 'file)) 2745 (when (or (not (eq how 'file))
2746 (gnus-y-or-n-p 2746 (gnus-y-or-n-p
2747 (gnus-format-message 2747 (format-message
2748 "Delete temporary HTML file(s) in directory `%s'? " 2748 "Delete temporary HTML file(s) in directory `%s'? "
2749 (file-name-as-directory file)))) 2749 (file-name-as-directory file))))
2750 (gnus-delete-directory file))) 2750 (gnus-delete-directory file)))
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 190acf13870..eec7b1c2cc4 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -2927,7 +2927,7 @@ and NEW-NAME will be prompted for."
2927 (gnus-info-params info)) 2927 (gnus-info-params info))
2928 (t info)) 2928 (t info))
2929 ;; The proper documentation. 2929 ;; The proper documentation.
2930 (gnus-format-message 2930 (format-message
2931 "Editing the %s for `%s'." 2931 "Editing the %s for `%s'."
2932 (cond 2932 (cond
2933 ((eq part 'method) "select method") 2933 ((eq part 'method) "select method")
@@ -3255,7 +3255,7 @@ mail messages or news articles in files that have numeric names."
3255 (error "%s is not an nnimap group" group)) 3255 (error "%s is not an nnimap group" group))
3256 (unless (setq acl (nnimap-acl-get mailbox (cadr method))) 3256 (unless (setq acl (nnimap-acl-get mailbox (cadr method)))
3257 (error "Server does not support ACL's")) 3257 (error "Server does not support ACL's"))
3258 (gnus-edit-form acl (gnus-format-message "\ 3258 (gnus-edit-form acl (format-message "\
3259Editing the access control list for `%s'. 3259Editing the access control list for `%s'.
3260 3260
3261 An access control list is a list of (identifier . rights) elements. 3261 An access control list is a list of (identifier . rights) elements.
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el
index d0798d3426a..38cfa4409e0 100644
--- a/lisp/gnus/gnus-int.el
+++ b/lisp/gnus/gnus-int.el
@@ -164,7 +164,7 @@ If CONFIRM is non-nil, the user will be asked for an NNTP server."
164 (gnus-open-server gnus-select-method) 164 (gnus-open-server gnus-select-method)
165 gnus-batch-mode 165 gnus-batch-mode
166 (gnus-y-or-n-p 166 (gnus-y-or-n-p
167 (gnus-format-message 167 (format-message
168 "%s (%s) open error: `%s'. Continue? " 168 "%s (%s) open error: `%s'. Continue? "
169 (car gnus-select-method) (cadr gnus-select-method) 169 (car gnus-select-method) (cadr gnus-select-method)
170 (gnus-status-message gnus-select-method))) 170 (gnus-status-message gnus-select-method)))
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 8669ff4013d..825c95c77c8 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -2388,8 +2388,8 @@ If FORCE is non-nil, the .newsrc file is read."
2388 2388
2389 (funcall func convert-to))) 2389 (funcall func convert-to)))
2390 (gnus-dribble-enter 2390 (gnus-dribble-enter
2391 (gnus-format-message ";Converted gnus from version `%s' to `%s'." 2391 (format-message ";Converted gnus from version `%s' to `%s'."
2392 gnus-newsrc-file-version gnus-version))))))) 2392 gnus-newsrc-file-version gnus-version)))))))
2393 2393
2394(defun gnus-convert-mark-converter-prompt (converter no-prompt) 2394(defun gnus-convert-mark-converter-prompt (converter no-prompt)
2395 "Indicate whether CONVERTER requires gnus-convert-old-newsrc to 2395 "Indicate whether CONVERTER requires gnus-convert-old-newsrc to
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 5eb89b740be..683eca1f15a 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -3435,13 +3435,13 @@ display only a single character."
3435 (i 32)) 3435 (i 32))
3436 ;; Nix out all the control chars... 3436 ;; Nix out all the control chars...
3437 (while (>= (setq i (1- i)) 0) 3437 (while (>= (setq i (1- i)) 0)
3438 (gnus-put-display-table i [??] table)) 3438 (aset table i [??]))
3439 ;; ... but not newline and cr, of course. (cr is necessary for the 3439 ;; ... but not newline and cr, of course. (cr is necessary for the
3440 ;; selective display). 3440 ;; selective display).
3441 (gnus-put-display-table ?\n nil table) 3441 (aset table ?\n nil)
3442 (gnus-put-display-table ?\r nil table) 3442 (aset table ?\r nil)
3443 ;; We keep TAB as well. 3443 ;; We keep TAB as well.
3444 (gnus-put-display-table ?\t nil table) 3444 (aset table ?\t nil)
3445 ;; We nix out any glyphs 127 through 255, or 127 through 159 in 3445 ;; We nix out any glyphs 127 through 255, or 127 through 159 in
3446 ;; Emacs 23 (unicode), that are not set already. 3446 ;; Emacs 23 (unicode), that are not set already.
3447 (let ((i (if (ignore-errors (= (make-char 'latin-iso8859-1 160) 160)) 3447 (let ((i (if (ignore-errors (= (make-char 'latin-iso8859-1 160) 160))
@@ -3449,8 +3449,8 @@ display only a single character."
3449 256))) 3449 256)))
3450 (while (>= (setq i (1- i)) 127) 3450 (while (>= (setq i (1- i)) 127)
3451 ;; Only modify if the entry is nil. 3451 ;; Only modify if the entry is nil.
3452 (unless (gnus-get-display-table i table) 3452 (unless (aref table i)
3453 (gnus-put-display-table i [??] table)))) 3453 (aset table i [??]))))
3454 (setq buffer-display-table table))) 3454 (setq buffer-display-table table)))
3455 3455
3456(defun gnus-summary-set-article-display-arrow (pos) 3456(defun gnus-summary-set-article-display-arrow (pos)
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el
index 1245b964a20..b471c2ab09e 100644
--- a/lisp/gnus/gnus-topic.el
+++ b/lisp/gnus/gnus-topic.el
@@ -1611,8 +1611,8 @@ If performed on a topic, edit the topic parameters instead."
1611 (let ((topic (gnus-group-topic-name))) 1611 (let ((topic (gnus-group-topic-name)))
1612 (gnus-edit-form 1612 (gnus-edit-form
1613 (gnus-topic-parameters topic) 1613 (gnus-topic-parameters topic)
1614 (gnus-format-message "Editing the topic parameters for `%s'." 1614 (format-message "Editing the topic parameters for `%s'."
1615 (or group topic)) 1615 (or group topic))
1616 `(lambda (form) 1616 `(lambda (form)
1617 (gnus-topic-set-parameters ,topic form))))))) 1617 (gnus-topic-set-parameters ,topic form)))))))
1618 1618
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 49a0061c84e..52b2df45718 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1726,27 +1726,6 @@ empty directories from OLD-PATH."
1726(defalias 'gnus-read-shell-command 1726(defalias 'gnus-read-shell-command
1727 (if (fboundp 'read-shell-command) 'read-shell-command 'read-string)) 1727 (if (fboundp 'read-shell-command) 'read-shell-command 'read-string))
1728 1728
1729(defmacro gnus-put-display-table (range value display-table)
1730 "Set the value for char RANGE to VALUE in DISPLAY-TABLE. "
1731 (if (featurep 'xemacs)
1732 (progn
1733 `(if (fboundp 'put-display-table)
1734 (put-display-table ,range ,value ,display-table)
1735 (if (sequencep ,display-table)
1736 (aset ,display-table ,range ,value)
1737 (put-char-table ,range ,value ,display-table))))
1738 `(aset ,display-table ,range ,value)))
1739
1740(defmacro gnus-get-display-table (character display-table)
1741 "Find value for CHARACTER in DISPLAY-TABLE. "
1742 (if (featurep 'xemacs)
1743 `(if (fboundp 'get-display-table)
1744 (get-display-table ,character ,display-table)
1745 (if (sequencep ,display-table)
1746 (aref ,display-table ,character)
1747 (get-char-table ,character ,display-table)))
1748 `(aref ,display-table ,character)))
1749
1750(declare-function image-size "image.c" (spec &optional pixels frame)) 1729(declare-function image-size "image.c" (spec &optional pixels frame))
1751 1730
1752(defun gnus-rescale-image (image size) 1731(defun gnus-rescale-image (image size)
@@ -1840,11 +1819,6 @@ to case differences."
1840 (string-equal (downcase str1) (downcase prefix)) 1819 (string-equal (downcase str1) (downcase prefix))
1841 (string-equal str1 prefix)))))) 1820 (string-equal str1 prefix))))))
1842 1821
1843(defalias 'gnus-format-message
1844 (if (fboundp 'format-message) 'format-message
1845 ;; for Emacs < 25, and XEmacs, don't worry about quote translation.
1846 'format))
1847
1848;; Simple check: can be a macro but this way, although slow, it's really clear. 1822;; Simple check: can be a macro but this way, although slow, it's really clear.
1849;; We don't use `bound-and-true-p' because it's not in XEmacs. 1823;; We don't use `bound-and-true-p' because it's not in XEmacs.
1850(defun gnus-bound-and-true-p (sym) 1824(defun gnus-bound-and-true-p (sym)
diff --git a/lisp/gnus/legacy-gnus-agent.el b/lisp/gnus/legacy-gnus-agent.el
index 7293e334335..a8c61faecc0 100644
--- a/lisp/gnus/legacy-gnus-agent.el
+++ b/lisp/gnus/legacy-gnus-agent.el
@@ -148,17 +148,17 @@ converted to the compressed format."
148 (gnus-pp gnus-agent-expire-days) 148 (gnus-pp gnus-agent-expire-days)
149 149
150 (insert 150 (insert
151 (gnus-format-message 151 (format-message
152 "\nIn order to use version `%s' of gnus, you will need to set\n" 152 "\nIn order to use version `%s' of gnus, you will need to set\n"
153 converting-to)) 153 converting-to))
154 (insert "gnus-agent-expire-days to an integer. If you still wish to set different\n") 154 (insert "gnus-agent-expire-days to an integer. If you still wish to set different\n")
155 (insert "expiration days to individual groups, you must instead set the\n") 155 (insert "expiration days to individual groups, you must instead set the\n")
156 (insert (gnus-format-message 156 (insert (format-message
157 "`agent-days-until-old' group and/or topic parameter.\n")) 157 "`agent-days-until-old' group and/or topic parameter.\n"))
158 (insert "\n") 158 (insert "\n")
159 (insert "If you would like, gnus can iterate over every group comparing its name to the\n") 159 (insert "If you would like, gnus can iterate over every group comparing its name to the\n")
160 (insert "regular expressions that you currently have in gnus-agent-expire-days. When\n") 160 (insert "regular expressions that you currently have in gnus-agent-expire-days. When\n")
161 (insert (gnus-format-message 161 (insert (format-message
162 "gnus finds a match, it will update that group's `agent-days-until-old' group\n")) 162 "gnus finds a match, it will update that group's `agent-days-until-old' group\n"))
163 (insert "parameter to the value associated with the regular expression.\n") 163 (insert "parameter to the value associated with the regular expression.\n")
164 (insert "\n") 164 (insert "\n")
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index f9c89f52cb7..693061632e1 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -612,7 +612,7 @@ If CONFIRM is non-nil, ask for confirmation before removing a file."
612 (when (and (> (- currday fileday) diff) 612 (when (and (> (- currday fileday) diff)
613 (if confirm 613 (if confirm
614 (y-or-n-p 614 (y-or-n-p
615 (gnus-format-message "\ 615 (format-message "\
616Delete old (> %s day(s)) incoming mail file `%s'? " diff bfile)) 616Delete old (> %s day(s)) incoming mail file `%s'? " diff bfile))
617 (gnus-message 8 "\ 617 (gnus-message 8 "\
618Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) 618Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 609c42da23e..3ed359b123b 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -2188,7 +2188,7 @@ contains a valid encoded word. Decode again? "
2188 (unless cs-coding 2188 (unless cs-coding
2189 (setq cs-coding 2189 (setq cs-coding
2190 (mm-read-coding-system 2190 (mm-read-coding-system
2191 (gnus-format-message "\ 2191 (format-message "\
2192Decoded Subject \"%s\" 2192Decoded Subject \"%s\"
2193contains an encoded word. The charset `%s' is unknown or invalid. 2193contains an encoded word. The charset `%s' is unknown or invalid.
2194Hit RET to replace non-decodable characters with \"%s\" or enter replacement 2194Hit RET to replace non-decodable characters with \"%s\" or enter replacement
@@ -4459,7 +4459,7 @@ This function could be useful in `message-setup-hook'."
4459 (dolist (bog (message-bogus-recipient-p addr)) 4459 (dolist (bog (message-bogus-recipient-p addr))
4460 (and bog 4460 (and bog
4461 (not (y-or-n-p 4461 (not (y-or-n-p
4462 (gnus-format-message 4462 (format-message
4463 "Address `%s'%s might be bogus. Continue? " 4463 "Address `%s'%s might be bogus. Continue? "
4464 bog 4464 bog
4465 ;; If the encoded version of the email address 4465 ;; If the encoded version of the email address
@@ -8482,7 +8482,7 @@ Header and body are separated by `mail-header-separator'."
8482 (when force 8482 (when force
8483 (sit-for message-send-form-letter-delay)) 8483 (sit-for message-send-form-letter-delay))
8484 (if (or force 8484 (if (or force
8485 (y-or-n-p (gnus-format-message "Send message to `%s'? " to))) 8485 (y-or-n-p (format-message "Send message to `%s'? " to)))
8486 (progn 8486 (progn
8487 (setq sent (1+ sent)) 8487 (setq sent (1+ sent))
8488 (message-send-and-exit)) 8488 (message-send-and-exit))
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index 4df653c6009..810560ab4db 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -860,7 +860,7 @@ external if displayed external."
860 (concat 860 (concat
861 "using external program \"" 861 "using external program \""
862 (format method filename) "\"") 862 (format method filename) "\"")
863 (gnus-format-message 863 (format-message
864 "by calling `%s' on the contents)" method)) 864 "by calling `%s' on the contents)" method))
865 "? ")))))) 865 "? "))))))
866 (if external 866 (if external
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index 4197b2aa54a..a5b06b2699f 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -523,7 +523,7 @@ apply the face `mm-uu-extract'."
523 (when (and mml2015-use (null (mml2015-clear-verify-function))) 523 (when (and mml2015-use (null (mml2015-clear-verify-function)))
524 (mm-set-handle-multipart-parameter 524 (mm-set-handle-multipart-parameter
525 mm-security-handle 'gnus-details 525 mm-security-handle 'gnus-details
526 (gnus-format-message 526 (format-message
527 "Clear verification not supported by `%s'.\n" mml2015-use))) 527 "Clear verification not supported by `%s'.\n" mml2015-use)))
528 (mml2015-extract-cleartext-signature)) 528 (mml2015-extract-cleartext-signature))
529 (list (mm-make-handle buf mm-uu-text-plain-type))))) 529 (list (mm-make-handle buf mm-uu-text-plain-type)))))
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el
index 248e63682c8..407963fdb8a 100644
--- a/lisp/gnus/mml-smime.el
+++ b/lisp/gnus/mml-smime.el
@@ -216,7 +216,7 @@ Whether the passphrase is cached at all is controlled by
216 ""))))) 216 "")))))
217 (if (setq cert (smime-cert-by-dns who)) 217 (if (setq cert (smime-cert-by-dns who))
218 (setq result (list 'certfile (buffer-name cert))) 218 (setq result (list 'certfile (buffer-name cert)))
219 (setq bad (gnus-format-message "`%s' not found. " who)))) 219 (setq bad (format-message "`%s' not found. " who))))
220 (quit)) 220 (quit))
221 result)) 221 result))
222 222
@@ -235,7 +235,7 @@ Whether the passphrase is cached at all is controlled by
235 ""))))) 235 "")))))
236 (if (setq cert (smime-cert-by-ldap who)) 236 (if (setq cert (smime-cert-by-ldap who))
237 (setq result (list 'certfile (buffer-name cert))) 237 (setq result (list 'certfile (buffer-name cert)))
238 (setq bad (gnus-format-message "`%s' not found. " who)))) 238 (setq bad (format-message "`%s' not found. " who))))
239 (quit)) 239 (quit))
240 result)) 240 result))
241 241
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el
index 7ebff197b2b..722186ed702 100644
--- a/lisp/gnus/spam-report.el
+++ b/lisp/gnus/spam-report.el
@@ -307,7 +307,7 @@ symbol `ask', query before flushing the queue file."
307 (if (or (eq keep nil) 307 (if (or (eq keep nil)
308 (and (eq keep 'ask) 308 (and (eq keep 'ask)
309 (y-or-n-p 309 (y-or-n-p
310 (gnus-format-message 310 (format-message
311 "Flush requests from `%s'? " (current-buffer))))) 311 "Flush requests from `%s'? " (current-buffer)))))
312 (progn 312 (progn
313 (gnus-message 7 "Flushing request file `%s'" 313 (gnus-message 7 "Flushing request file `%s'"