# HG changeset patch # User Richard M. Stallman # Date 1116517428 0 # Node ID b54077faa74ac6fcc7d8be761b356c1c18a6f131 # Parent a463c8c599476513ed2b6b1538961d7f8dd18b74 (event-basic-type): Don't get an error. (left-fringe-p): Function deleted. diff -r a463c8c59947 -r b54077faa74a lisp/subr.el --- 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