]> code.delx.au - gnu-emacs/blobdiff - lisp/eshell/esh-mode.el
Merge from emacs--devo--0
[gnu-emacs] / lisp / eshell / esh-mode.el
index 180515b7b79fe70449043f6e2bf2965a1c73cb85..eb618f6b6b8912f0b6b0b32747a33a01cade5714 100644 (file)
@@ -276,8 +276,11 @@ This is used by `eshell-watch-for-password-prompt'."
        (map-char-table
         (function
          (lambda (key val)
-           (and (>= key 256)
-                (/= (char-syntax key) ?w)
+           (and (if (consp key)
+                    (and (>= (car key) 128)
+                         (/= (char-syntax (car key)) ?w))
+                  (and (>= key 256)
+                       (/= (char-syntax key) ?w)))
                 (modify-syntax-entry key "_   "
                                      eshell-mode-syntax-table))))
         (standard-syntax-table)))))