aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-04-26 02:34:49 +0000
committerGlenn Morris2008-04-26 02:34:49 +0000
commitb528434a254b4cf99080fcfbbf4dd60ada9343d1 (patch)
tree3febdf51c15a2e88b0749c0e514a7f705bc44fea
parent17cb3e0e8a8c070ad09fe7d71e091377c313769e (diff)
downloademacs-b528434a254b4cf99080fcfbbf4dd60ada9343d1.tar.gz
emacs-b528434a254b4cf99080fcfbbf4dd60ada9343d1.zip
(quoted-insert, zap-to-char): Remove uses of obsolete
`translation-table-for-input'.
-rw-r--r--lisp/simple.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 4ef352e1cd5..1727f59fe8a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -665,11 +665,10 @@ In binary overwrite mode, this function does overwrite, and octal
665digits are interpreted as a character code. This is intended to be 665digits are interpreted as a character code. This is intended to be
666useful for editing binary files." 666useful for editing binary files."
667 (interactive "*p") 667 (interactive "*p")
668 (let* ((char (let (translation-table-for-input input-method-function) 668 (let* ((char (if (or (not overwrite-mode)
669 (if (or (not overwrite-mode) 669 (eq overwrite-mode 'overwrite-mode-binary))
670 (eq overwrite-mode 'overwrite-mode-binary)) 670 (read-quoted-char)
671 (read-quoted-char) 671 (read-char))))
672 (read-char)))))
673 ;; Assume character codes 0240 - 0377 stand for characters in some 672 ;; Assume character codes 0240 - 0377 stand for characters in some
674 ;; single-byte character set, and convert them to Emacs 673 ;; single-byte character set, and convert them to Emacs
675 ;; characters. 674 ;; characters.
@@ -3101,8 +3100,6 @@ and KILLP is t if a prefix arg was specified."
3101Case is ignored if `case-fold-search' is non-nil in the current buffer. 3100Case is ignored if `case-fold-search' is non-nil in the current buffer.
3102Goes backward if ARG is negative; error if CHAR not found." 3101Goes backward if ARG is negative; error if CHAR not found."
3103 (interactive "p\ncZap to char: ") 3102 (interactive "p\ncZap to char: ")
3104 (if (char-table-p translation-table-for-input)
3105 (setq char (or (aref translation-table-for-input char) char)))
3106 (kill-region (point) (progn 3103 (kill-region (point) (progn
3107 (search-forward (char-to-string char) nil nil arg) 3104 (search-forward (char-to-string char) nil nil arg)
3108; (goto-char (if (> arg 0) (1- (point)) (1+ (point)))) 3105; (goto-char (if (> arg 0) (1- (point)) (1+ (point))))