(setq calc-trail-buffer nil)
t))))
+(defvar touch-screen-display-keyboard)
+
(defun calc-mode ()
"Calculator major mode.
(if (featurep 'dynamic-setting)
(load "dynamic-setting"))
-;; touch-screen.el is tiny and is used liberally throughout the button
-;; code etc, so it may as well be preloaded everywhere.
-(load "touch-screen")
-
(if (featurep 'x)
(progn
+ (load "touch-screen")
(load "x-dnd")
(load "term/common-win")
(load "term/x-win")))
(if (featurep 'android)
(progn
(load "ls-lisp")
+ (load "touch-screen")
(load "term/common-win")
(load "term/android-win")))
;; progress, because a preview message might currently be displayed
;; in the echo area. FIXME: find some way to place this in
;; touch-screen.el.
- (if (and touch-screen-preview-select
+ (if (and (bound-and-true-p touch-screen-preview-select)
(eq (nth 3 touch-screen-current-tool) 'drag))
'dont-clear-message
;; Return nil telling the caller that the message
(setq term-ansi-current-invisible nil)
(setq term-ansi-current-bg-color 0))
+(defvar touch-screen-display-keyboard)
+
(define-derived-mode term-mode fundamental-mode "Term"
"Major mode for interacting with an inferior interpreter.
The interpreter name is same as buffer name, sans the asterisks.
\f
;; Exports. These functions are intended for use externally.
+;;;###autoload
(defun touch-screen-track-tap (event &optional update data threshold)
"Track a single tap starting from EVENT.
EVENT should be a `touchscreen-begin' event.
(eq (caadr event) (caadr new-event))))
(t (throw 'finish nil))))))))
+;;;###autoload
(defun touch-screen-track-drag (event update &optional data)
"Track a single drag starting from EVENT.
EVENT should be a `touchscreen-begin' event.
;;; Event handling exports. These functions are intended for use by
;;; Lisp commands bound to touch screen gesture events.
+;;;###autoload
(defun touch-screen-inhibit-drag ()
"Inhibit subsequent `touchscreen-drag' events from being sent.
Prevent `touchscreen-drag' and translated mouse events from being