comparison lisp/subr.el @ 57151:5350f17d0a78

(event-basic-type): Fix mask (extend to 22bits).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 19 Sep 2004 06:07:38 +0000
parents 9bb86b9e678e
children 2da0a6d97b14 4df500c93e1d
comparison
equal deleted inserted replaced
57150:e8b02be78ea7 57151:5350f17d0a78
1 ;;; subr.el --- basic lisp subroutines for Emacs 1 ;;; subr.el --- basic lisp subroutines for Emacs
2 2
3 ;; Copyright (C) 1985, 86, 92, 94, 95, 99, 2000, 2001, 2002, 03, 2004 3 ;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1999, 2000, 2001, 2002, 2003,
4 ;; Free Software Foundation, Inc. 4 ;; 2004 Free Software Foundation, Inc.
5 5
6 ;; Maintainer: FSF 6 ;; Maintainer: FSF
7 ;; Keywords: internal 7 ;; Keywords: internal
8 8
9 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
681 in the current Emacs session, then this function may return nil." 681 in the current Emacs session, then this function may return nil."
682 (if (consp event) 682 (if (consp event)
683 (setq event (car event))) 683 (setq event (car event)))
684 (if (symbolp event) 684 (if (symbolp event)
685 (car (get event 'event-symbol-elements)) 685 (car (get event 'event-symbol-elements))
686 (let ((base (logand event (1- (lsh 1 18))))) 686 (let ((base (logand event (1- ?\A-\^@))))
687 (downcase (if (< base 32) (logior base 64) base))))) 687 (downcase (if (< base 32) (logior base 64) base)))))
688 688
689 (defsubst mouse-movement-p (object) 689 (defsubst mouse-movement-p (object)
690 "Return non-nil if OBJECT is a mouse movement event." 690 "Return non-nil if OBJECT is a mouse movement event."
691 (and (consp object) 691 (and (consp object)
2647 (put symbol 'composefunc composefunc) 2647 (put symbol 'composefunc composefunc)
2648 (put symbol 'sendfunc sendfunc) 2648 (put symbol 'sendfunc sendfunc)
2649 (put symbol 'abortfunc (or abortfunc 'kill-buffer)) 2649 (put symbol 'abortfunc (or abortfunc 'kill-buffer))
2650 (put symbol 'hookvar (or hookvar 'mail-send-hook))) 2650 (put symbol 'hookvar (or hookvar 'mail-send-hook)))
2651 2651
2652 ;;; arch-tag: f7e0e6e5-70aa-4897-ae72-7a3511ec40bc 2652 ;; arch-tag: f7e0e6e5-70aa-4897-ae72-7a3511ec40bc
2653 ;;; subr.el ends here 2653 ;;; subr.el ends here