diff options
| author | Glenn Morris | 2007-12-11 08:28:49 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 08:28:49 +0000 |
| commit | 5ec7fe1bff1362d0bb58d0bbc854ca815c1bc81d (patch) | |
| tree | 89853c3cc169f66798aded7ac91dd5c860f663f5 | |
| parent | 0fef26e3c4e48c3a50d708e8ec9ca3dd42c396ef (diff) | |
| download | emacs-5ec7fe1bff1362d0bb58d0bbc854ca815c1bc81d.tar.gz emacs-5ec7fe1bff1362d0bb58d0bbc854ca815c1bc81d.zip | |
(gnus-group-name-decode): Autoload.
(gnus-find-method-for-group, gnus-group-name-charset)
(message-tokenize-header, gnus-get-buffer-create)
(mm-enable-multibyte, gnus-put-text-property, gnus-overlay-put)
(gnus-make-overlay, mm-disable-multibyte, gnus-add-text-properties):
Declare as functions.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a09d3da95c0..cda28979cb1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | * gnus-ems.el (gnus-alive-p): | 19 | * gnus-ems.el (gnus-alive-p): |
| 20 | * gnus-fun.el (message-goto-eoh): | 20 | * gnus-fun.el (message-goto-eoh): |
| 21 | * gnus-util.el (gnus-group-name-decode): | ||
| 21 | * mail-source.el (gnus-compress-sequence): | 22 | * mail-source.el (gnus-compress-sequence): |
| 22 | * message.el (Info-goto-node, format-spec): | 23 | * message.el (Info-goto-node, format-spec): |
| 23 | * mm-bodies.el (message-options-get): | 24 | * mm-bodies.el (message-options-get): |
| @@ -48,6 +49,10 @@ | |||
| 48 | * gnus-group.el (nnkiboze-score-file): | 49 | * gnus-group.el (nnkiboze-score-file): |
| 49 | * gnus-sum.el (turn-on-gnus-mailing-list-mode) | 50 | * gnus-sum.el (turn-on-gnus-mailing-list-mode) |
| 50 | (gnus-cache-write-active, mm-uu-dissect, idna-to-unicode): | 51 | (gnus-cache-write-active, mm-uu-dissect, idna-to-unicode): |
| 52 | * gnus-util.el (gnus-find-method-for-group, gnus-group-name-charset) | ||
| 53 | (message-tokenize-header, gnus-get-buffer-create) | ||
| 54 | (mm-enable-multibyte, gnus-put-text-property, gnus-overlay-put) | ||
| 55 | (gnus-make-overlay, mm-disable-multibyte, gnus-add-text-properties): | ||
| 51 | * gnus.el (gnus-group-decoded-name): | 56 | * gnus.el (gnus-group-decoded-name): |
| 52 | * mail-source.el (imap-capability): | 57 | * mail-source.el (imap-capability): |
| 53 | * mm-bodies.el (message-options-set): | 58 | * mm-bodies.el (message-options-set): |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 8a6e8fa71cb..7b36c07da62 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -217,6 +217,13 @@ is slower." | |||
| 217 | (search-forward ":" eol t) | 217 | (search-forward ":" eol t) |
| 218 | (point))))) | 218 | (point))))) |
| 219 | 219 | ||
| 220 | (declare-function gnus-find-method-for-group "gnus" (group &optional info)) | ||
| 221 | (autoload 'gnus-group-name-decode "gnus-group") | ||
| 222 | (declare-function gnus-group-name-charset "gnus-group" (method group)) | ||
| 223 | ;; gnus-group requires gnus-int which requires message. | ||
| 224 | (declare-function message-tokenize-header "message" | ||
| 225 | (header &optional separator)) | ||
| 226 | |||
| 220 | (defun gnus-decode-newsgroups (newsgroups group &optional method) | 227 | (defun gnus-decode-newsgroups (newsgroups group &optional method) |
| 221 | (let ((method (or method (gnus-find-method-for-group group)))) | 228 | (let ((method (or method (gnus-find-method-for-group group)))) |
| 222 | (mapconcat (lambda (group) | 229 | (mapconcat (lambda (group) |
| @@ -657,6 +664,10 @@ If N, return the Nth ancestor instead." | |||
| 657 | 664 | ||
| 658 | (defvar gnus-work-buffer " *gnus work*") | 665 | (defvar gnus-work-buffer " *gnus work*") |
| 659 | 666 | ||
| 667 | (declare-function gnus-get-buffer-create "gnus" (name)) | ||
| 668 | ;; gnus.el requires mm-util. | ||
| 669 | (declare-function mm-enable-multibyte "mm-util") | ||
| 670 | |||
| 660 | (defun gnus-set-work-buffer () | 671 | (defun gnus-set-work-buffer () |
| 661 | "Put point in the empty Gnus work buffer." | 672 | "Put point in the empty Gnus work buffer." |
| 662 | (if (get-buffer gnus-work-buffer) | 673 | (if (get-buffer gnus-work-buffer) |
| @@ -841,6 +852,9 @@ If there's no subdirectory, delete DIRECTORY as well." | |||
| 841 | (setq string (replace-match "" t t string))) | 852 | (setq string (replace-match "" t t string))) |
| 842 | string) | 853 | string) |
| 843 | 854 | ||
| 855 | (declare-function gnus-put-text-property "gnus" | ||
| 856 | (start end property value &optional object)) | ||
| 857 | |||
| 844 | (defsubst gnus-put-text-property-excluding-newlines (beg end prop val) | 858 | (defsubst gnus-put-text-property-excluding-newlines (beg end prop val) |
| 845 | "The same as `put-text-property', but don't put this prop on any newlines in the region." | 859 | "The same as `put-text-property', but don't put this prop on any newlines in the region." |
| 846 | (save-match-data | 860 | (save-match-data |
| @@ -852,6 +866,10 @@ If there's no subdirectory, delete DIRECTORY as well." | |||
| 852 | (setq beg (point))) | 866 | (setq beg (point))) |
| 853 | (gnus-put-text-property beg (point) prop val))))) | 867 | (gnus-put-text-property beg (point) prop val))))) |
| 854 | 868 | ||
| 869 | (declare-function gnus-overlay-put "gnus" (overlay prop value)) | ||
| 870 | (declare-function gnus-make-overlay "gnus" | ||
| 871 | (beg end &optional buffer front-advance rear-advance)) | ||
| 872 | |||
| 855 | (defsubst gnus-put-overlay-excluding-newlines (beg end prop val) | 873 | (defsubst gnus-put-overlay-excluding-newlines (beg end prop val) |
| 856 | "The same as `put-text-property', but don't put this prop on any newlines in the region." | 874 | "The same as `put-text-property', but don't put this prop on any newlines in the region." |
| 857 | (save-match-data | 875 | (save-match-data |
| @@ -1205,6 +1223,9 @@ Return the modified alist." | |||
| 1205 | (throw 'found nil))) | 1223 | (throw 'found nil))) |
| 1206 | t)) | 1224 | t)) |
| 1207 | 1225 | ||
| 1226 | ;; gnus.el requires mm-util. | ||
| 1227 | (declare-function mm-disable-multibyte "mm-util") | ||
| 1228 | |||
| 1208 | (defun gnus-write-active-file (file hashtb &optional full-names) | 1229 | (defun gnus-write-active-file (file hashtb &optional full-names) |
| 1209 | ;; `coding-system-for-write' should be `raw-text' or equivalent. | 1230 | ;; `coding-system-for-write' should be `raw-text' or equivalent. |
| 1210 | (let ((coding-system-for-write nnmail-active-file-coding-system)) | 1231 | (let ((coding-system-for-write nnmail-active-file-coding-system)) |
| @@ -1272,6 +1293,9 @@ Return the modified alist." | |||
| 1272 | (pop l2)) | 1293 | (pop l2)) |
| 1273 | l1)))) | 1294 | l1)))) |
| 1274 | 1295 | ||
| 1296 | (declare-function gnus-add-text-properties "gnus" | ||
| 1297 | (start end properties &optional object)) | ||
| 1298 | |||
| 1275 | (defun gnus-add-text-properties-when | 1299 | (defun gnus-add-text-properties-when |
| 1276 | (property value start end properties &optional object) | 1300 | (property value start end properties &optional object) |
| 1277 | "Like `gnus-add-text-properties', only applied on where PROPERTY is VALUE." | 1301 | "Like `gnus-add-text-properties', only applied on where PROPERTY is VALUE." |