Mercurial > emacs
changeset 62524:b54077faa74a
(event-basic-type): Don't get an error.
(left-fringe-p): Function deleted.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 19 May 2005 15:43:48 +0000 |
parents | a463c8c59947 |
children | 10a127a02c08 |
files | lisp/subr.el |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/subr.el Thu May 19 15:42:40 2005 +0000 +++ b/lisp/subr.el Thu May 19 15:43:48 2005 +0000 @@ -603,8 +603,13 @@ (setq event (car event))) (if (symbolp event) (car (get event 'event-symbol-elements)) - (let ((base (logand event (1- ?\A-\^@)))) - (downcase (if (< base 32) (logior base 64) base))))) + (let* ((base (logand event (1- ?\A-\^@))) + (uncontrolled (if (< base 32) (logior base 64) base))) + ;; There are some numbers that are invalid characters and + ;; cause `downcase' to get an error. + (condition-case () + (downcase uncontrolled) + (error uncontrolled))))) (defsubst mouse-movement-p (object) "Return non-nil if OBJECT is a mouse movement event." @@ -2289,9 +2294,6 @@ (and (consp object) (eq (car object) 'frame-configuration))) -(defsubst left-fringe-p () - (equal (car (window-fringes)) 0)) - (defun functionp (object) "Non-nil if OBJECT is any kind of function or a special form. Also non-nil if OBJECT is a symbol and its function definition is