mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
(isearch-search-string): Use `with-no-warnings' around forms that refer
to translation-table-for-input.
This commit is contained in:
parent
580fe9f55c
commit
0d58bedde6
1 changed files with 13 additions and 5 deletions
|
|
@ -2214,14 +2214,22 @@ update the match data, and return point."
|
|||
(let* ((func (isearch-search-fun))
|
||||
(pos1 (save-excursion (funcall func string bound noerror)))
|
||||
pos2)
|
||||
(when (and (char-table-p translation-table-for-input)
|
||||
(multibyte-string-p string)
|
||||
;; Minor optimization.
|
||||
(string-match-p "[^[:ascii:]]" string))
|
||||
(when (and
|
||||
;; Avoid "obsolete" warnings for translation-table-for-input.
|
||||
(with-no-warnings
|
||||
(char-table-p translation-table-for-input))
|
||||
(multibyte-string-p string)
|
||||
;; Minor optimization.
|
||||
(string-match-p "[^[:ascii:]]" string))
|
||||
(let ((translated
|
||||
(apply 'string
|
||||
(mapcar (lambda (c)
|
||||
(or (aref translation-table-for-input c) c))
|
||||
(or
|
||||
;; Avoid "obsolete" warnings for
|
||||
;; translation-table-for-input.
|
||||
(with-no-warnings
|
||||
(aref translation-table-for-input c))
|
||||
c))
|
||||
string)))
|
||||
match-data)
|
||||
(when translated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue