aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-20 20:57:42 +0000
committerRichard M. Stallman1995-10-20 20:57:42 +0000
commit4d2795c3e2390e088e5378c84eb9f1a191517c76 (patch)
treefff7a6f8845d6705f682800b4dfe638b3a630bd1
parentd8f7e85aba112ee75077152e566545058cf4a755 (diff)
downloademacs-4d2795c3e2390e088e5378c84eb9f1a191517c76.tar.gz
emacs-4d2795c3e2390e088e5378c84eb9f1a191517c76.zip
(mail-abbrev-syntax-table): Rewrite using map-char-table.
-rw-r--r--lisp/mail/mailabbrev.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el
index 4491e097af0..5ff2f3cbaca 100644
--- a/lisp/mail/mailabbrev.el
+++ b/lisp/mail/mailabbrev.el
@@ -368,16 +368,17 @@ non-address headers.")
368 368
369(defvar mail-abbrev-syntax-table 369(defvar mail-abbrev-syntax-table
370 (let* ((tab (copy-syntax-table mail-mode-header-syntax-table)) 370 (let* ((tab (copy-syntax-table mail-mode-header-syntax-table))
371 (i (1- (length tab)))
372 (_ (aref (standard-syntax-table) ?_)) 371 (_ (aref (standard-syntax-table) ?_))
373 (w (aref (standard-syntax-table) ?w))) 372 (w (aref (standard-syntax-table) ?w)))
374 (while (>= i 0) 373 (map-char-table
375 (if (equal (aref tab i) _) (aset tab i w)) 374 (function (lambda (key value)
376 (setq i (1- i))) 375 (if (equal value _)
377 tab) 376 (set-char-table-range tab key w))))
378 "The syntax-table used for abbrev-expansion purposes; this is not actually 377 tab))
379made the current syntax table of the buffer, but simply controls the set of 378 "The syntax-table used for abbrev-expansion purposes.
380characters which may be a part of the name of a mail alias.") 379This is not actually made the current syntax table of the buffer, but
380simply controls the set of characters which may be a part of the name
381of a mail alias.")
381 382
382 383
383(defun mail-abbrev-in-expansion-header-p () 384(defun mail-abbrev-in-expansion-header-p ()