diff options
| author | Eli Zaretskii | 2000-07-31 15:35:51 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-07-31 15:35:51 +0000 |
| commit | 364ce449bc63980245c7bccbf2f1de4e344f1e62 (patch) | |
| tree | efdb9e1ed28abff676c48dd208e4cce2a8d2749f | |
| parent | e2c00a47192925f865cf07ce567d11df8ff7d94b (diff) | |
| download | emacs-364ce449bc63980245c7bccbf2f1de4e344f1e62.tar.gz emacs-364ce449bc63980245c7bccbf2f1de4e344f1e62.zip | |
(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.
| -rw-r--r-- | lisp/strokes.el | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
| 268 | :type 'integer | 268 | :type 'integer |
| 269 | :group 'strokes) | 269 | :group 'strokes) |
| 270 | 270 | ||
| 271 | (defcustom strokes-file "~/.strokes" | 271 | (defcustom strokes-file (convert-standard-filename "~/.strokes") |
| 272 | "*File containing saved strokes for stroke-mode (default is ~/.strokes)." | 272 | "*File containing saved strokes for stroke-mode (default is ~/.strokes)." |
| 273 | :type 'file | 273 | :type 'file |
| 274 | :group 'strokes) | 274 | :group 'strokes) |
| @@ -1285,8 +1285,8 @@ strokes with | |||
| 1285 | (let ((on-p (if arg | 1285 | (let ((on-p (if arg |
| 1286 | (> (prefix-numeric-value arg) 0) | 1286 | (> (prefix-numeric-value arg) 0) |
| 1287 | (not strokes-mode)))) | 1287 | (not strokes-mode)))) |
| 1288 | (cond ((not window-system) | 1288 | (cond ((not (display-mouse-p)) |
| 1289 | (error "Can't use strokes without windows")) | 1289 | (error "Can't use strokes without a mouse")) |
| 1290 | (on-p ; turn on strokes | 1290 | (on-p ; turn on strokes |
| 1291 | (and (file-exists-p strokes-file) | 1291 | (and (file-exists-p strokes-file) |
| 1292 | (null strokes-global-map) | 1292 | (null strokes-global-map) |