mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-13 19:25:37 -08:00
(zap-to-char): Translate CHAR by
translation-table-for-input.
This commit is contained in:
parent
78cfaa07f1
commit
ea9fc1bdb2
1 changed files with 2 additions and 0 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue