Check if make-local-hook exists.
[riece] / lisp / riece-kakasi.el
index fd018c7..f51eb59 100644 (file)
@@ -19,8 +19,8 @@
 
 ;; You should have received a copy of the GNU General Public License
 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
 
 ;;; Commentary:
 
@@ -37,8 +37,7 @@
 
 (defun riece-kakasi-convert-string (string)
   (process-send-string riece-kakasi-process (concat string "\n"))
-  (save-excursion
-    (set-buffer (process-buffer riece-kakasi-process))
+  (with-current-buffer (process-buffer riece-kakasi-process)
     (while (progn
             (goto-char (point-min))
             (not (search-forward "\n" nil t)))