From: morioka Date: Fri, 17 Apr 1998 02:22:34 +0000 (+0000) Subject: (char-next-index): Fixed. X-Git-Tag: apel-8_3~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d1c56b99e0f1ff5766009b53e8f067636b0cb950;p=elisp%2Fapel.git (char-next-index): Fixed. --- diff --git a/emu-e20_2.el b/emu-e20_2.el index d713712..ca33328 100644 --- a/emu-e20_2.el +++ b/emu-e20_2.el @@ -45,7 +45,7 @@ but the contents viewed as characters do change." (defmacro char-next-index (char index) "Return index of character succeeding CHAR whose index is INDEX." - `(+ ,index (char-bytes char))) + `(+ ,index (char-bytes ,char))) ;;; @ string diff --git a/emu-nemacs.el b/emu-nemacs.el index 91ee9d5..d5a3b4d 100644 --- a/emu-nemacs.el +++ b/emu-nemacs.el @@ -339,7 +339,7 @@ find-file-hooks, etc. (defmacro char-next-index (char index) "Return index of character succeeding CHAR whose index is INDEX." - (` (1+ index))) + (` (+ (, index) (char-bytes (, char))))) ;;; @ string