diff options
| author | Richard M. Stallman | 1993-12-23 04:58:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 04:58:26 +0000 |
| commit | 57b908e3c061220d806f8809bf05ae818efecdb5 (patch) | |
| tree | a3170c3b62bdf3eee83fecf66e6c5a7525ce9d7a | |
| parent | 0c5b5a13c963c75b46a3345ce72762d749cbf4aa (diff) | |
| download | emacs-57b908e3c061220d806f8809bf05ae818efecdb5.tar.gz emacs-57b908e3c061220d806f8809bf05ae818efecdb5.zip | |
(gnus-capitalize-newsgroup): Modify a new temporary
syntax table, not the current one.
| -rw-r--r-- | lisp/gnus.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el index e06288db874..73e91237ff7 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Masanobu UMEDA <umerin@mse.kyutech.ac.jp> | 4 | ;; Author: Masanobu UMEDA <umerin@mse.kyutech.ac.jp> |
| 5 | ;; Version: $Header: /home/fsf/rms/e19/lisp/RCS/gnus.el,v 1.29 1993/11/16 10:47:27 rms Exp rms $ | 5 | ;; Version: $Header: /home/fsf/rms/e19/lisp/RCS/gnus.el,v 1.30 1993/11/17 13:41:50 rms Exp $ |
| 6 | ;; Keywords: news | 6 | ;; Keywords: news |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -4910,9 +4910,10 @@ If optional argument NEXT is non-nil, it is inserted before NEXT." | |||
| 4910 | (defun gnus-capitalize-newsgroup (newsgroup) | 4910 | (defun gnus-capitalize-newsgroup (newsgroup) |
| 4911 | "Capitalize NEWSGROUP name with treating '.' and '-' as part of words." | 4911 | "Capitalize NEWSGROUP name with treating '.' and '-' as part of words." |
| 4912 | ;; Suggested by "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>. | 4912 | ;; Suggested by "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>. |
| 4913 | (let ((current-syntax-table (copy-syntax-table (syntax-table)))) | 4913 | (let ((current-syntax-table (syntax-table))) |
| 4914 | (unwind-protect | 4914 | (unwind-protect |
| 4915 | (progn | 4915 | (progn |
| 4916 | (set-syntax-table (copy-syntax-table current-syntax-table)) | ||
| 4916 | (modify-syntax-entry ?- "w") | 4917 | (modify-syntax-entry ?- "w") |
| 4917 | (modify-syntax-entry ?. "w") | 4918 | (modify-syntax-entry ?. "w") |
| 4918 | (capitalize newsgroup)) | 4919 | (capitalize newsgroup)) |