Mercurial > hg > xemacs-beta
diff lisp/vm/vm-misc.el @ 155:43dd3413c7c7 r20-3b4
Import from CVS: tag r20-3b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:39:39 +0200 |
parents | 2af401a6ecca |
children | 489f57a838ef |
line wrap: on
line diff
--- a/lisp/vm/vm-misc.el Mon Aug 13 09:38:27 2007 +0200 +++ b/lisp/vm/vm-misc.el Mon Aug 13 09:39:39 2007 +0200 @@ -423,31 +423,30 @@ ((markerp object) (copy-marker object)) (t object))) -;; make-frame might be defined and still not work. This would -;; be true since the user could be running on a tty and using -;; XEmacs 19.12, or using FSF Emacs 19.28 (or prior FSF Emacs versions). -;; -;; make-frame works on ttys in FSF Emacs 19.29, but other than -;; looking at the version number I don't know a sane way to -;; test for it without just running make-frame. I'll just -;; let it not work for now... someone will complain eventually -;; and I'll think of something. - (defun vm-multiple-frames-possible-p () (cond (vm-xemacs-p - (eq (device-type) 'x)) + (or (memq 'win (device-matching-specifier-tag-list)) + (featurep 'tty-frames))) (vm-fsfemacs-19-p - (not (eq window-system nil))))) + (fboundp 'make-frame)))) (defun vm-mouse-support-possible-p () - (vm-multiple-frames-possible-p)) + (cond (vm-xemacs-p + (featurep 'window-system)) + (vm-fsfemacs-19-p + (fboundp 'track-mouse)))) +(defun vm-mouse-support-possible-here-p () + (cond (vm-xemacs-p + (memq 'win (device-matching-specifier-tag-list))) + (vm-fsfemacs-19-p + (eq window-system 'x)))) + (defun vm-menu-support-possible-p () (cond (vm-xemacs-p (featurep 'menubar)) (vm-fsfemacs-19-p - (fboundp 'menu-bar-mode)) - (t nil))) + (fboundp 'menu-bar-mode)))) (defun vm-toolbar-support-possible-p () (and vm-xemacs-p (featurep 'toolbar)))