1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00

* lisp/simple.el (quoted-insert): Check character validity (bug#16677).

This commit is contained in:
Juanma Barranquero 2014-02-07 12:13:31 +01:00
parent 9be95071f4
commit e255a70376
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-02-07 Juanma Barranquero <lekktu@gmail.com>
* simple.el (quoted-insert): Check character validity (bug#16677).
2014-02-07 Juri Linkov <juri@jurta.org>
* desktop.el (desktop-read): Claim the lock when the owner is not

View File

@ -738,6 +738,9 @@ useful for editing binary files."
;; (>= char ?\240)
;; (<= char ?\377))
;; (setq char (unibyte-char-to-multibyte char)))
(unless (characterp char)
(user-error "%s is not a valid character"
(key-description (vector char))))
(if (> arg 0)
(if (eq overwrite-mode 'overwrite-mode-binary)
(delete-char arg)))