From: Eli Zaretskii Date: Mon, 31 Jul 2000 15:35:51 +0000 (+0000) Subject: (strokes-file): Run the file name through X-Git-Tag: emacs-pretest-21.0.90~2535 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=364ce449bc63980245c7bccbf2f1de4e344f1e62;p=emacs.git (strokes-file): Run the file name through convert-standard-filename. (strokes-mode): Call display-mouse-p instead of looking at window-system. Change the error message accordingly. --- diff --git a/lisp/strokes.el b/lisp/strokes.el index 03f1c109cb8..d45d9c19732 100644 --- a/lisp/strokes.el +++ b/lisp/strokes.el @@ -268,7 +268,7 @@ WARNING: Changing the value of this variable will gravely affect the :type 'integer :group 'strokes) -(defcustom strokes-file "~/.strokes" +(defcustom strokes-file (convert-standard-filename "~/.strokes") "*File containing saved strokes for stroke-mode (default is ~/.strokes)." :type 'file :group 'strokes) @@ -1285,8 +1285,8 @@ strokes with (let ((on-p (if arg (> (prefix-numeric-value arg) 0) (not strokes-mode)))) - (cond ((not window-system) - (error "Can't use strokes without windows")) + (cond ((not (display-mouse-p)) + (error "Can't use strokes without a mouse")) (on-p ; turn on strokes (and (file-exists-p strokes-file) (null strokes-global-map)