rfc2047.el (rfc2047-syntax-table): Simplify.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 10 Nov 2010 07:53:33 +0000 (07:53 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 10 Nov 2010 07:53:33 +0000 (07:53 +0000)
lisp/ChangeLog
lisp/rfc2047.el

index 09596cc..7ad6e58 100644 (file)
@@ -1,5 +1,7 @@
 2010-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * rfc2047.el (rfc2047-syntax-table): Simplify.
+
        * lpath.el: Fbind set-char-table-range for XEmacs 21.4 and SXEmacs 22.1.
 
        * gnus-art.el (article-treat-non-ascii): Use put-char-table instead of
index 8a71539..51eef88 100644 (file)
@@ -346,13 +346,9 @@ The buffer may be narrowed."
     ;; it appears to be the cleanest way.
     ;; Play safe and don't assume the form of the word syntax entry --
     ;; copy it from ?a.
-    (if (fboundp 'set-char-table-range)        ; Emacs
-       (funcall (intern "set-char-table-range")
-                table t (aref (standard-syntax-table) ?a))
-      (if (fboundp 'put-char-table)
-         (if (fboundp 'get-char-table) ; warning avoidance
-             (put-char-table t (get-char-table ?a (standard-syntax-table))
-                             table))))
+    (if (featurep 'xemacs)
+       (put-char-table t (get-char-table ?a (standard-syntax-table)) table)
+      (set-char-table-range table t (aref (standard-syntax-table) ?a)))
     (modify-syntax-entry ?\\ "\\" table)
     (modify-syntax-entry ?\" "\"" table)
     (modify-syntax-entry ?\( "(" table)