]> code.delx.au - gnu-emacs/blobdiff - lisp/language/thai-word.el
Replace Lisp calls to delete-backward-char by delete-char.
[gnu-emacs] / lisp / language / thai-word.el
index ab34d2f032a83879d2285950f6ed17d29b4cd02d..3e382e34fc2f542a6132759c09bfb725b2fddb2e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; thai-word.el -- find Thai word boundaries
 
-;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
 ;;   Registration Number H14PRO021
 
@@ -10748,8 +10748,7 @@ the current word list."
        (coding-system-for-read 'thai-tis620)
        (table (if append thai-word-table (list 'thai-words))))
     (unwind-protect
-       (save-excursion
-         (set-buffer buf)
+       (with-current-buffer buf
          (insert-file-contents file)
          (goto-char (point-min))
          (while (re-search-forward "\\ct+" nil t)