aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2014-02-08 12:20:45 +0200
committerJuri Linkov2014-02-08 12:20:45 +0200
commit2423c8d576232f0b0fa9fa7b431883f9b3452921 (patch)
tree43c9ff3fc850dc01bef1a61b634038dd1b414b63
parent893cc9082cb9c8f9aedd73cbb2a10e8dc2ae4006 (diff)
downloademacs-2423c8d576232f0b0fa9fa7b431883f9b3452921.tar.gz
emacs-2423c8d576232f0b0fa9fa7b431883f9b3452921.zip
* lisp/isearch.el (isearch-quote-char): Check character validity like in `quoted-insert'.
Fixes: debbugs:16677
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/isearch.el3
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5169fde1a88..25c88c48996 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-02-08 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-quote-char): Check character validity
4 like in `quoted-insert' (bug#16677).
5
12014-02-08 Lars Ingebrigtsen <larsi@gnus.org> 62014-02-08 Lars Ingebrigtsen <larsi@gnus.org>
2 7
3 * files.el (find-file-visit-truename): Doc clarification (bug#14697). 8 * files.el (find-file-visit-truename): Doc clarification (bug#14697).
diff --git a/lisp/isearch.el b/lisp/isearch.el
index c8dc89cb821..86a0d8fc141 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -2301,6 +2301,9 @@ before the command is executed globally with terminated Isearch."
2301With argument, add COUNT copies of the character." 2301With argument, add COUNT copies of the character."
2302 (interactive "p") 2302 (interactive "p")
2303 (let ((char (read-quoted-char (isearch-message t)))) 2303 (let ((char (read-quoted-char (isearch-message t))))
2304 (unless (characterp char)
2305 (user-error "%s is not a valid character"
2306 (key-description (vector char))))
2304 ;; Assume character codes 0200 - 0377 stand for characters in some 2307 ;; Assume character codes 0200 - 0377 stand for characters in some
2305 ;; single-byte character set, and convert them to Emacs 2308 ;; single-byte character set, and convert them to Emacs
2306 ;; characters. 2309 ;; characters.