emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/mail/mailabbrev.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/mail/mailabbrev.el
Date: Sat, 23 Mar 2002 11:09:59 -0500

Index: emacs/lisp/mail/mailabbrev.el
diff -c emacs/lisp/mail/mailabbrev.el:1.64 emacs/lisp/mail/mailabbrev.el:1.65
*** emacs/lisp/mail/mailabbrev.el:1.64  Wed Feb 13 10:59:53 2002
--- emacs/lisp/mail/mailabbrev.el       Sat Mar 23 11:09:59 2002
***************
*** 405,410 ****
--- 405,423 ----
  simply controls the set of characters which may be a part of the name
  of a mail alias.  The value is set up, buffer-local, when first needed.")
  
+ (defun mail-abbrev-make-syntax-table ()
+   (make-local-variable 'mail-abbrev-syntax-table)
+   (unless mail-abbrev-syntax-table
+     (let ((tab (copy-syntax-table old-syntax-table))
+         (_ (aref (standard-syntax-table) ?_))
+         (w (aref (standard-syntax-table) ?w)))
+       (map-char-table
+        (function (lambda (key value)
+                  (if (equal value _)
+                      (set-char-table-range tab key w))))
+        tab)
+       (modify-syntax-entry ?@ "w" tab)
+       (setq mail-abbrev-syntax-table tab))))
  
  (defun mail-abbrev-in-expansion-header-p ()
    "Whether point is in a mail-address header field."
***************
*** 459,476 ****
             ;;      expand-abbrev, and not as a result of the call to
             ;;      expand-abbrev which invoked *us*.
  
!            (make-local-variable 'mail-abbrev-syntax-table)
!            (unless mail-abbrev-syntax-table
!              (let ((tab (copy-syntax-table old-syntax-table))
!                    (_ (aref (standard-syntax-table) ?_))
!                    (w (aref (standard-syntax-table) ?w)))
!                (map-char-table
!                 (function (lambda (key value)
!                             (if (equal value _)
!                                 (set-char-table-range tab key w))))
!                 tab)
!                (modify-syntax-entry ?@ "w" tab)
!                (setq mail-abbrev-syntax-table tab)))
  
             ;; If the character just typed was non-alpha-symbol-syntax,
             ;; then don't expand the abbrev now (that is, don't expand
--- 472,478 ----
             ;;      expand-abbrev, and not as a result of the call to
             ;;      expand-abbrev which invoked *us*.
  
!            (mail-abbrev-make-syntax-table)
  
             ;; If the character just typed was non-alpha-symbol-syntax,
             ;; then don't expand the abbrev now (that is, don't expand



reply via email to

[Prev in Thread] Current Thread [Next in Thread]