diff options
| author | Juanma Barranquero | 2005-07-04 02:33:29 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-07-04 02:33:29 +0000 |
| commit | 61bf4252532c52a6035c4a30846c1252c0dae7e8 (patch) | |
| tree | 20399dff5a0d518611bcd8ce34e3e540b5b5e390 | |
| parent | ca3685a3e6eb947e7976f194d21301b0a717d5fa (diff) | |
| download | emacs-61bf4252532c52a6035c4a30846c1252c0dae7e8.tar.gz emacs-61bf4252532c52a6035c4a30846c1252c0dae7e8.zip | |
(strokes): Finish `defgroup' description with period.
(strokes-read-stroke, strokes-read-complex-stroke,
strokes-fill-current-buffer-with-whitespace, strokes-xpm-for-stroke,
strokes-list-strokes, strokes-xpm-char-bit-p,
strokes-xpm-for-compressed-string): "?\ " -> "?\s".
| -rw-r--r-- | lisp/strokes.el | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/strokes.el b/lisp/strokes.el index 644ec2c4f62..396a44cec24 100644 --- a/lisp/strokes.el +++ b/lisp/strokes.el | |||
| @@ -208,7 +208,7 @@ static char * stroke_xpm[] = { | |||
| 208 | ;;; user variables... | 208 | ;;; user variables... |
| 209 | 209 | ||
| 210 | (defgroup strokes nil | 210 | (defgroup strokes nil |
| 211 | "Control Emacs through mouse strokes" | 211 | "Control Emacs through mouse strokes." |
| 212 | :link '(emacs-commentary-link "strokes") | 212 | :link '(emacs-commentary-link "strokes") |
| 213 | :link '(url-link "http://www.mit.edu/people/cadet/strokes-help.html") | 213 | :link '(url-link "http://www.mit.edu/people/cadet/strokes-help.html") |
| 214 | :group 'mouse) | 214 | :group 'mouse) |
| @@ -753,7 +753,7 @@ Optional EVENT is acceptable as the starting event of the stroke" | |||
| 753 | (progn | 753 | (progn |
| 754 | (goto-char point) | 754 | (goto-char point) |
| 755 | (subst-char-in-region point (1+ point) | 755 | (subst-char-in-region point (1+ point) |
| 756 | ?\ strokes-character)) | 756 | ?\s strokes-character)) |
| 757 | ;; otherwise, we can start drawing the next time... | 757 | ;; otherwise, we can start drawing the next time... |
| 758 | (setq safe-to-draw-p t)) | 758 | (setq safe-to-draw-p t)) |
| 759 | (push (cdr (mouse-pixel-position)) | 759 | (push (cdr (mouse-pixel-position)) |
| @@ -763,7 +763,7 @@ Optional EVENT is acceptable as the starting event of the stroke" | |||
| 763 | ;; clean up strokes buffer and then bury it. | 763 | ;; clean up strokes buffer and then bury it. |
| 764 | (when (equal (buffer-name) strokes-buffer-name) | 764 | (when (equal (buffer-name) strokes-buffer-name) |
| 765 | (subst-char-in-region (point-min) (point-max) | 765 | (subst-char-in-region (point-min) (point-max) |
| 766 | strokes-character ?\ ) | 766 | strokes-character ?\s) |
| 767 | (goto-char (point-min)) | 767 | (goto-char (point-min)) |
| 768 | (bury-buffer)))) | 768 | (bury-buffer)))) |
| 769 | ;; Otherwise, don't use strokes buffer and read stroke silently | 769 | ;; Otherwise, don't use strokes buffer and read stroke silently |
| @@ -813,7 +813,7 @@ Optional EVENT is acceptable as the starting event of the stroke" | |||
| 813 | (when point | 813 | (when point |
| 814 | (goto-char point) | 814 | (goto-char point) |
| 815 | (subst-char-in-region point (1+ point) | 815 | (subst-char-in-region point (1+ point) |
| 816 | ?\ strokes-character)) | 816 | ?\s strokes-character)) |
| 817 | (push (cdr (mouse-pixel-position)) | 817 | (push (cdr (mouse-pixel-position)) |
| 818 | pix-locs))) | 818 | pix-locs))) |
| 819 | (setq event (read-event))) | 819 | (setq event (read-event))) |
| @@ -831,7 +831,7 @@ Optional EVENT is acceptable as the starting event of the stroke" | |||
| 831 | ;; protected | 831 | ;; protected |
| 832 | (when (equal (buffer-name) strokes-buffer-name) | 832 | (when (equal (buffer-name) strokes-buffer-name) |
| 833 | (subst-char-in-region (point-min) (point-max) | 833 | (subst-char-in-region (point-min) (point-max) |
| 834 | strokes-character ?\ ) | 834 | strokes-character ?\s) |
| 835 | (goto-char (point-min)) | 835 | (goto-char (point-min)) |
| 836 | (bury-buffer))))))) | 836 | (bury-buffer))))))) |
| 837 | 837 | ||
| @@ -1035,7 +1035,7 @@ o Strokes are a bit computer-dependent in that they depend somewhat on | |||
| 1035 | "Erase the contents of the current buffer and fill it with whitespace." | 1035 | "Erase the contents of the current buffer and fill it with whitespace." |
| 1036 | (erase-buffer) | 1036 | (erase-buffer) |
| 1037 | (loop repeat (frame-height) do | 1037 | (loop repeat (frame-height) do |
| 1038 | (insert-char ?\ (1- (frame-width))) | 1038 | (insert-char ?\s (1- (frame-width))) |
| 1039 | (newline)) | 1039 | (newline)) |
| 1040 | (goto-char (point-min))) | 1040 | (goto-char (point-min))) |
| 1041 | 1041 | ||
| @@ -1169,7 +1169,7 @@ the stroke as a character in some language." | |||
| 1169 | (insert strokes-xpm-header) | 1169 | (insert strokes-xpm-header) |
| 1170 | (loop repeat 33 do | 1170 | (loop repeat 33 do |
| 1171 | (insert ?\") | 1171 | (insert ?\") |
| 1172 | (insert-char ?\ 33) | 1172 | (insert-char ?\s 33) |
| 1173 | (insert "\",") | 1173 | (insert "\",") |
| 1174 | (newline) | 1174 | (newline) |
| 1175 | finally | 1175 | finally |
| @@ -1195,7 +1195,7 @@ the stroke as a character in some language." | |||
| 1195 | ;; Otherwise, just plot the point... | 1195 | ;; Otherwise, just plot the point... |
| 1196 | (goto-line (+ 17 y)) | 1196 | (goto-line (+ 17 y)) |
| 1197 | (forward-char (+ 2 x)) | 1197 | (forward-char (+ 2 x)) |
| 1198 | (subst-char-in-region (point) (1+ (point)) ?\ ?\*))) | 1198 | (subst-char-in-region (point) (1+ (point)) ?\s ?\*))) |
| 1199 | ((strokes-lift-p point) | 1199 | ((strokes-lift-p point) |
| 1200 | ;; a lift--tell the loop to X out the next point... | 1200 | ;; a lift--tell the loop to X out the next point... |
| 1201 | (setq lift-flag t)))) | 1201 | (setq lift-flag t)))) |
| @@ -1286,7 +1286,7 @@ the stroke as a character in some language." | |||
| 1286 | ;; (command-name (symbol-name (cdr def)))) | 1286 | ;; (command-name (symbol-name (cdr def)))) |
| 1287 | ;; (strokes-xpm-for-stroke stroke " *strokes-xpm*") | 1287 | ;; (strokes-xpm-for-stroke stroke " *strokes-xpm*") |
| 1288 | ;; (newline 2) | 1288 | ;; (newline 2) |
| 1289 | ;; (insert-char ?\ 45) | 1289 | ;; (insert-char ?\s 45) |
| 1290 | ;; (beginning-of-line) | 1290 | ;; (beginning-of-line) |
| 1291 | ;; (insert command-name) | 1291 | ;; (insert command-name) |
| 1292 | ;; (beginning-of-line) | 1292 | ;; (beginning-of-line) |
| @@ -1342,7 +1342,7 @@ If STROKES-MAP is not given, `strokes-global-map' will be used instead." | |||
| 1342 | (prin1-to-string (cdr def))))) | 1342 | (prin1-to-string (cdr def))))) |
| 1343 | (strokes-xpm-for-stroke stroke " *strokes-xpm*") | 1343 | (strokes-xpm-for-stroke stroke " *strokes-xpm*") |
| 1344 | (newline 2) | 1344 | (newline 2) |
| 1345 | (insert-char ?\ 45) | 1345 | (insert-char ?\s 45) |
| 1346 | (beginning-of-line) | 1346 | (beginning-of-line) |
| 1347 | (insert command-name) | 1347 | (insert command-name) |
| 1348 | (beginning-of-line) | 1348 | (beginning-of-line) |
| @@ -1515,7 +1515,7 @@ Encode/decode your strokes with \\[strokes-encode-buffer], | |||
| 1515 | 1515 | ||
| 1516 | (defsubst strokes-xpm-char-bit-p (char) | 1516 | (defsubst strokes-xpm-char-bit-p (char) |
| 1517 | "Non-nil if CHAR represents an `on' or `off' bit in the XPM." | 1517 | "Non-nil if CHAR represents an `on' or `off' bit in the XPM." |
| 1518 | (or (eq char ?\ ) | 1518 | (or (eq char ?\s) |
| 1519 | (eq char ?*))) | 1519 | (eq char ?*))) |
| 1520 | 1520 | ||
| 1521 | ;;(defsubst strokes-xor (a b) ### Should I make this an inline function? ### | 1521 | ;;(defsubst strokes-xor (a b) ### Should I make this an inline function? ### |
| @@ -1716,7 +1716,7 @@ Store XPM in buffer BUFNAME if supplied \(default is ` *strokes-xpm*'\)" | |||
| 1716 | (insert-char | 1716 | (insert-char |
| 1717 | (if current-char-is-on-p | 1717 | (if current-char-is-on-p |
| 1718 | ?* | 1718 | ?* |
| 1719 | ?\ ) | 1719 | ?\s) |
| 1720 | (strokes-xpm-decode-char (char-after))) | 1720 | (strokes-xpm-decode-char (char-after))) |
| 1721 | (delete-char 1) | 1721 | (delete-char 1) |
| 1722 | (setq current-char-is-on-p (not current-char-is-on-p))) | 1722 | (setq current-char-is-on-p (not current-char-is-on-p))) |