;;
;; 1.2.2 19-Nov-2000
;; Changed: More documentation fixes.
-;; Bugfix: The arrow characters (`artist-arrows'), which
+;; Bugfix: The arrow characters (`artist-arrows'), which
;; got wrong in 1.1, are now corrected.
;;
;; 1.2.1 15-Nov-2000
nil)
(defmacro defface (var values doc &rest args)
`(make-face ,var))
- (defmacro defcustom (var value doc &rest args)
+ (defmacro defcustom (var value doc &rest args)
`(defvar ,var ,value ,doc))))
;; User options
"Char to use when filling.")
(make-variable-buffer-local 'artist-fill-char)
-(defvar artist-erase-char ?\
+(defvar artist-erase-char ?\
"Char to use when erasing.")
(make-variable-buffer-local 'artist-erase-char)
(goto-char (point-min))
(delete-char (- (point-max) (point-min)) nil)))
-
+
(defun artist-system (program stdin &optional program-args)
"Run PROGRAM synchronously with the contents of string STDIN to stdin.
Optional args PROGRAM-ARGS are arguments to PROGRAM.
(artist-replace-string (car string-list) see-thru)
(setq string-list (cdr string-list))
(setq i (1+ i)))))
-
+
(defun artist-text-insert-see-thru (x y text)
"At position X, Y, insert text TEXT.
Let text already in buffer shine thru the TEXT inserted."
;;
;; Spraying
-;;
+;;
(defun artist-spray-get-interval ()
"Retrieves the interval for repeated spray."
;; the entire rectangle is vaporized.
;;
;; Now, What if the `+' in the upper left and upper right corners,
-;; had not been changed to `|' but to spaces instead? We would
+;; had not been changed to `|' but to spaces instead? We would
;; have failed when popping (0,0) and vaporizing that line because
;; we wouldn't find any line at (0,0):
-;;
+;;
;; 0123456
-;; 0
+;; 0
;; 1| |
;; 2| |
;; 3+-----+
;; Last line is empty, don't paint on it, report previous line
;; as last line
- (>= y (- last-line 1)))
- (>= y last-line))))
-
+ (>= y (- last-line 1))
+ (>= y last-line)))))
(defun artist-flood-fill (x1 y1)
"Flood-fill starting at X1, Y1. Fill with the char in `artist-fill-char'."
(if (eq window-system 'x)
(artist-set-pointer-shape artist-pointer-shape))
- ;; Redefine the button-up binding temporarily (the original
+ ;; Redefine the button-up binding temporarily (the original
;; binding is restored in the unwind-forms below). This is to
;; avoid the phenomenon outlined in this scenario:
;;
;; 1. A routine which reads something from the mini-buffer (such
;; as the text renderer) is called from below.
;; 2. Meanwhile, the users releases the mouse button.
- ;; 3. As a (funny :-) coincidence, the binding for the
+ ;; 3. As a (funny :-) coincidence, the binding for the
;; button-up event is often mouse-set-point, so Emacs
;; sets the point to where the button was released, which is
;; in the buffer where the user wants to place the text.