# HG changeset patch # User Stefan Monnier # Date 1209060609 0 # Node ID 6d85304f4f12d41150b70ca30ca45d0a35d53f11 # Parent 52fb31c78b25f34359edafc6960b721b6d8b730f (translation-table-for-input): Mark as obsolete. diff -r 52fb31c78b25 -r 6d85304f4f12 doc/lispref/commands.texi --- a/doc/lispref/commands.texi Thu Apr 24 17:59:51 2008 +0000 +++ b/doc/lispref/commands.texi Thu Apr 24 18:10:09 2008 +0000 @@ -2419,9 +2419,7 @@ translation. Note also that this translation is done before the characters are -supplied to input methods (@pxref{Input Methods}). Use -@code{translation-table-for-input} (@pxref{Translation of Characters}), -if you want to translate characters after input methods operate. +supplied to input methods (@pxref{Input Methods}). @end defvar @defun keyboard-translate from to diff -r 52fb31c78b25 -r 6d85304f4f12 doc/lispref/keymaps.texi --- a/doc/lispref/keymaps.texi Thu Apr 24 17:59:51 2008 +0000 +++ b/doc/lispref/keymaps.texi Thu Apr 24 18:10:09 2008 +0000 @@ -740,10 +740,6 @@ (@pxref{Remapping Commands}). @item -Characters that are bound to @code{self-insert-command} are translated -according to @code{translation-table-for-input} before insertion. - -@item @code{current-active-maps} returns a list of the currently active keymaps at point. diff -r 52fb31c78b25 -r 6d85304f4f12 doc/lispref/nonascii.texi --- a/doc/lispref/nonascii.texi Thu Apr 24 17:59:51 2008 +0000 +++ b/doc/lispref/nonascii.texi Thu Apr 24 18:10:09 2008 +0000 @@ -582,12 +582,6 @@ coding systems that don't specify any other translation table. @end defvar -@defvar translation-table-for-input -Self-inserting characters are translated through this translation -table before they are inserted. Search commands also translate their -input through this table, so they can compare more reliably with -what's in the buffer. - @code{set-buffer-file-coding-system} sets this variable so that your keyboard input gets translated into the character sets that the buffer is likely to contain. This variable automatically becomes diff -r 52fb31c78b25 -r 6d85304f4f12 doc/lispref/text.texi --- a/doc/lispref/text.texi Thu Apr 24 17:59:51 2008 +0000 +++ b/doc/lispref/text.texi Thu Apr 24 18:10:09 2008 +0000 @@ -487,9 +487,6 @@ In an interactive call, @var{count} is the numeric prefix argument. -Self-insertion translates the input character through -@code{translation-table-for-input}. @xref{Translation of Characters}. - This command calls @code{auto-fill-function} whenever that is non-@code{nil} and the character inserted is in the table @code{auto-fill-chars} (@pxref{Auto Filling}). diff -r 52fb31c78b25 -r 6d85304f4f12 etc/NEWS --- a/etc/NEWS Thu Apr 24 17:59:51 2008 +0000 +++ b/etc/NEWS Thu Apr 24 18:10:09 2008 +0000 @@ -911,6 +911,8 @@ *** The functions `modify-syntax-entry' and `modify-category-entry' now accepts a cons of characters as the first argument, and modify all entries in that range of characters. ++++ +*** `translation-table-for-input' is now obsolete. ** Code conversion changes diff -r 52fb31c78b25 -r 6d85304f4f12 lisp/ChangeLog --- a/lisp/ChangeLog Thu Apr 24 17:59:51 2008 +0000 +++ b/lisp/ChangeLog Thu Apr 24 18:10:09 2008 +0000 @@ -1,5 +1,7 @@ 2008-04-24 Stefan Monnier + * subr.el (translation-table-for-input): Mark as obsolete. + * isearch.el (isearch-search-string): Avoid string-bytes and aset. * international/quail.el (quail-build-decode-map): Avoid string-bytes. diff -r 52fb31c78b25 -r 6d85304f4f12 lisp/subr.el --- a/lisp/subr.el Thu Apr 24 17:59:51 2008 +0000 +++ b/lisp/subr.el Thu Apr 24 18:10:09 2008 +0000 @@ -1041,6 +1041,9 @@ (defvaralias 'x-sent-selection-hooks 'x-sent-selection-functions) (make-obsolete-variable 'x-sent-selection-hooks 'x-sent-selection-functions "22.1") +;; This was introduced in 21.4 for pre-unicode unification and was rendered +;; obsolete by the use of Unicode internally in 23.1. +(make-obsolete-variable 'translation-table-for-input nil "23.1") (defvaralias 'messages-buffer-max-lines 'message-log-max)