diff options
| author | Katsumi Yamaoka | 2009-12-18 00:47:21 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2009-12-18 00:47:21 +0000 |
| commit | 49b196a5f111d58fd485a1b17ca7e3f2a543b293 (patch) | |
| tree | 43bd665b18d067f3744cfbf0264758b4ccfd9f62 | |
| parent | 1f3611c61a81326ae8a7af8ada880b3c64afdeee (diff) | |
| download | emacs-49b196a5f111d58fd485a1b17ca7e3f2a543b293.tar.gz emacs-49b196a5f111d58fd485a1b17ca7e3f2a543b293.zip | |
replace [:digit:] with [0-9] for XEmacs.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 08575323ea1..94735a81b7e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-12-18 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * nntp.el (nntp-service-to-port): Work for port expressed with numeric | ||
| 4 | string; replace [:digit:] with [0-9] for XEmacs. | ||
| 5 | |||
| 1 | 2009-12-17 Glenn Morris <rgm@gnu.org> | 6 | 2009-12-17 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * gnus-group.el (gnus-bug-group-download-format-alist): | 8 | * gnus-group.el (gnus-bug-group-download-format-alist): |
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 8a6c9a2d78a..0f696e508b9 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -1816,13 +1816,13 @@ via telnet.") | |||
| 1816 | (defun nntp-service-to-port (svc) | 1816 | (defun nntp-service-to-port (svc) |
| 1817 | (cond | 1817 | (cond |
| 1818 | ((integerp svc) (number-to-string svc)) | 1818 | ((integerp svc) (number-to-string svc)) |
| 1819 | ((string-match "\\`[[:digit:]]\\'" svc) svc) | 1819 | ((string-match "\\`[0-9]+\\'" svc) svc) |
| 1820 | (t | 1820 | (t |
| 1821 | (with-temp-buffer | 1821 | (with-temp-buffer |
| 1822 | (ignore-errors (insert-file-contents "/etc/services")) | 1822 | (ignore-errors (insert-file-contents "/etc/services")) |
| 1823 | (goto-char (point-min)) | 1823 | (goto-char (point-min)) |
| 1824 | (if (re-search-forward (concat "^" (regexp-quote svc) | 1824 | (if (re-search-forward (concat "^" (regexp-quote svc) |
| 1825 | "[ \t]+\\([[:digit:]]+\\)/tcp")) | 1825 | "[ \t]+\\([0-9]+\\)/tcp")) |
| 1826 | (match-string 1) | 1826 | (match-string 1) |
| 1827 | svc))))) | 1827 | svc))))) |
| 1828 | 1828 | ||