From fbc7bbf778f45d15ad29a454a1c728e4657043e4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 25 Jul 2000 12:22:01 +0000 Subject: [PATCH] (japanese-katakana-region): Fix handling HANKAKU argument. --- lisp/language/japan-util.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el index fc1e123fa09..9e63dcbaf04 100644 --- a/lisp/language/japan-util.el +++ b/lisp/language/japan-util.el @@ -232,7 +232,9 @@ of which charset is `japanese-jisx0201-kana'." (goto-char (point-min)) (while (re-search-forward "\\cH\\|\\cK" nil t) (let* ((kana (preceding-char)) - (composition (get-char-code-property kana 'kana-composition)) + (composition + (and (not hankaku) + (get-char-code-property kana 'kana-composition))) next slot) (if (and composition (setq slot (assq (following-char) composition))) (japanese-replace-region (match-beginning 0) (1+ (point)) -- 2.39.2