aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-15 00:23:03 +0000
committerRichard M. Stallman1997-07-15 00:23:03 +0000
commit92d874e6873c4366fc222ae504c4a709fe117b22 (patch)
tree5546659835a1f194b43dae8b033596ea0a1748ec
parent5d23c612609c26370edd80db331276fc9eac1803 (diff)
downloademacs-92d874e6873c4366fc222ae504c4a709fe117b22.tar.gz
emacs-92d874e6873c4366fc222ae504c4a709fe117b22.zip
(isearch-char-to-string): Use char-to-string.
(isearch-quote-char): Add nonascii-insert-offset.
-rw-r--r--lisp/isearch.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 1fc4ce97d63..9e0c3102fae 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1162,7 +1162,8 @@ and the meta character is unread so that it applies to editing the string."
1162(defun isearch-quote-char () 1162(defun isearch-quote-char ()
1163 "Quote special characters for incremental search." 1163 "Quote special characters for incremental search."
1164 (interactive) 1164 (interactive)
1165 (isearch-process-search-char (read-quoted-char (isearch-message t)))) 1165 (isearch-process-search-char (+ (read-quoted-char (isearch-message t))
1166 nonascii-insert-offset)))
1166 1167
1167(defun isearch-return-char () 1168(defun isearch-return-char ()
1168 "Convert return into newline for incremental search. 1169 "Convert return into newline for incremental search.
@@ -1669,7 +1670,7 @@ since they have special meaning in a regexp."
1669;; Portability functions to support various Emacs versions. 1670;; Portability functions to support various Emacs versions.
1670 1671
1671(defun isearch-char-to-string (c) 1672(defun isearch-char-to-string (c)
1672 (make-string 1 c)) 1673 (char-to-string c))
1673 1674
1674(defun isearch-text-char-description (c) 1675(defun isearch-text-char-description (c)
1675 (if (and (integerp c) (or (< c ?\ ) (= c ?\^?))) 1676 (if (and (integerp c) (or (< c ?\ ) (= c ?\^?)))