]> git.eshelyaron.com Git - emacs.git/commitdiff
(zap-to-char): Translate CHAR by
authorKenichi Handa <handa@m17n.org>
Sat, 10 Dec 2005 01:12:25 +0000 (01:12 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 10 Dec 2005 01:12:25 +0000 (01:12 +0000)
translation-table-for-input.

lisp/simple.el

index 451c1bc94497706e3e174b3d50b95a992872e626..93f6329a255f0975ebe61f23c6e18cb49878bbca 100644 (file)
@@ -2741,6 +2741,8 @@ and KILLP is t if a prefix arg was specified."
 Case is ignored if `case-fold-search' is non-nil in the current buffer.
 Goes backward if ARG is negative; error if CHAR not found."
   (interactive "p\ncZap to char: ")
+  (if (char-table-p translation-table-for-input)
+      (setq char (or (aref translation-table-for-input char) char)))
   (kill-region (point) (progn
                         (search-forward (char-to-string char) nil nil arg)
 ;                       (goto-char (if (> arg 0) (1- (point)) (1+ (point))))