diff options
| author | Gerd Moellmann | 2001-10-26 09:51:14 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-26 09:51:14 +0000 |
| commit | 63db25edffe6d991afb83c777d157192ca039df8 (patch) | |
| tree | b28f273a46f50f299d35422b30f98c9c81ec4946 | |
| parent | 627a4e30dcec779bb6f419d21916a7e94e5a4a2d (diff) | |
| download | emacs-63db25edffe6d991afb83c777d157192ca039df8.tar.gz emacs-63db25edffe6d991afb83c777d157192ca039df8.zip | |
(artist-version): 1.2.4.
(artist-butlast-fn): New variable.
(artist-butlast): New function.
(artist-ellipse-mirror-quadrant): Use it.
(artist-mouse-draw-poly): Use nil for `point-list'.
(artist-mouse-draw-poly): Check for point-list being nil.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/textmodes/artist.el | 43 |
2 files changed, 42 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 473a019d616..c61548b5a6c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2001-10-26 Tomas Abrahamsson <tab@lysator.liu.se> | ||
| 2 | |||
| 3 | * textmodes/artist.el (artist-version): 1.2.4. | ||
| 4 | (artist-butlast-fn): New variable. | ||
| 5 | (artist-butlast): New function. | ||
| 6 | (artist-ellipse-mirror-quadrant): Use it. | ||
| 7 | (artist-mouse-draw-poly): Use nil for `point-list'. | ||
| 8 | (artist-mouse-draw-poly): Check for point-list being nil. | ||
| 9 | |||
| 1 | 2001-10-26 Peter Kleiweg <kleiweg@let.rug.nl> | 10 | 2001-10-26 Peter Kleiweg <kleiweg@let.rug.nl> |
| 2 | 11 | ||
| 3 | * progmodes/ps-mode.el (ps-mode-print-function): Remove quote for | 12 | * progmodes/ps-mode.el (ps-mode-print-function): Remove quote for |
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index a918e720b7f..3ace091f018 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | ;;; artist.el --- draw ascii graphics with your mouse | 1 | ;;; artist.el --- draw ascii graphics with your mouse |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Tomas Abrahamsson <tab@lysator.liu.se> | 5 | ;; Author: Tomas Abrahamsson <tab@lysator.liu.se> |
| 6 | ;; Maintainer: Tomas Abrahamsson <tab@lysator.liu.se> | 6 | ;; Maintainer: Tomas Abrahamsson <tab@lysator.liu.se> |
| 7 | ;; Keywords: mouse | 7 | ;; Keywords: mouse |
| 8 | ;; Version: 1.2.2 | 8 | ;; Version: 1.2.4 |
| 9 | ;; Release-date: 22-Oct-2000 | 9 | ;; Release-date: 25-Oct-2001 |
| 10 | ;; Location: http://www.lysator.liu.se/~tab/artist/ | 10 | ;; Location: http://www.lysator.liu.se/~tab/artist/ |
| 11 | 11 | ||
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| @@ -136,6 +136,15 @@ | |||
| 136 | 136 | ||
| 137 | ;;; ChangeLog: | 137 | ;;; ChangeLog: |
| 138 | 138 | ||
| 139 | ;; 1.2.4 25-Oct-2001 | ||
| 140 | ;; Bugfix: Some operations (the edit menu) got hidden | ||
| 141 | ;; Bugfix: The first arrow for poly-lines was always pointing | ||
| 142 | ;; to the right | ||
| 143 | ;; Changed: Updated with changes made for Emacs 21.1 | ||
| 144 | ;; | ||
| 145 | ;; 1.2.3 20-Nov-2000 | ||
| 146 | ;; Bugfix: Autoload cookie corrected | ||
| 147 | ;; | ||
| 139 | ;; 1.2.2 19-Nov-2000 | 148 | ;; 1.2.2 19-Nov-2000 |
| 140 | ;; Changed: More documentation fixes. | 149 | ;; Changed: More documentation fixes. |
| 141 | ;; Bugfix: The arrow characters (`artist-arrows'), which | 150 | ;; Bugfix: The arrow characters (`artist-arrows'), which |
| @@ -178,7 +187,7 @@ | |||
| 178 | 187 | ||
| 179 | ;; Variables | 188 | ;; Variables |
| 180 | 189 | ||
| 181 | (defconst artist-version "1.2.2") | 190 | (defconst artist-version "1.2.4") |
| 182 | (defconst artist-maintainer-address "tab@lysator.liu.se") | 191 | (defconst artist-maintainer-address "tab@lysator.liu.se") |
| 183 | 192 | ||
| 184 | 193 | ||
| @@ -701,7 +710,7 @@ The fill char is used instead, if it is set.") | |||
| 701 | 2 | 710 | 2 |
| 702 | artist-draw-square | 711 | artist-draw-square |
| 703 | (artist-undraw-square | 712 | (artist-undraw-square |
| 704 | artist-t artist-cut-square))))) | 713 | artist-t artist-cut-square)))))) |
| 705 | 714 | ||
| 706 | (graphics-operation | 715 | (graphics-operation |
| 707 | ("Copy" (("copy rectangle" copy-r "copy-r" | 716 | ("Copy" (("copy rectangle" copy-r "copy-r" |
| @@ -717,7 +726,7 @@ The fill char is used instead, if it is set.") | |||
| 717 | 2 | 726 | 2 |
| 718 | artist-draw-square | 727 | artist-draw-square |
| 719 | (artist-undraw-square | 728 | (artist-undraw-square |
| 720 | artist-t artist-copy-square))))) | 729 | artist-t artist-copy-square)))))) |
| 721 | 730 | ||
| 722 | (graphics-operation | 731 | (graphics-operation |
| 723 | ("Paste" (("paste" paste "paste" | 732 | ("Paste" (("paste" paste "paste" |
| @@ -745,7 +754,7 @@ The fill char is used instead, if it is set.") | |||
| 745 | nil nil nil | 754 | nil nil nil |
| 746 | 1 | 755 | 1 |
| 747 | artist-flood-fill | 756 | artist-flood-fill |
| 748 | nil))))))))) | 757 | nil))))))) |
| 749 | 758 | ||
| 750 | (menu | 759 | (menu |
| 751 | ("Settings" | 760 | ("Settings" |
| @@ -1675,6 +1684,20 @@ info-variant-part." | |||
| 1675 | "Call function FN with ARGS iff FN is not nil." | 1684 | "Call function FN with ARGS iff FN is not nil." |
| 1676 | (list 'if fn (cons 'funcall (cons fn args)))) | 1685 | (list 'if fn (cons 'funcall (cons fn args)))) |
| 1677 | 1686 | ||
| 1687 | (defvar artist-butlast-fn 'artist-butlast | ||
| 1688 | "The butlast function") | ||
| 1689 | |||
| 1690 | (if (fboundp 'butlast) | ||
| 1691 | (setq artist-butlast-fn 'butlast) | ||
| 1692 | (setq artist-butlast-fn 'artist-butlast)) | ||
| 1693 | |||
| 1694 | (defun artist-butlast (l) | ||
| 1695 | "Return the list L with all elements but the last." | ||
| 1696 | (cond ((null l) nil) | ||
| 1697 | ((null (cdr l)) nil) | ||
| 1698 | (t (cons (car l) (artist-butlast (cdr l)))))) | ||
| 1699 | |||
| 1700 | |||
| 1678 | (defun artist-last (seq &optional n) | 1701 | (defun artist-last (seq &optional n) |
| 1679 | "Return the last link in the list SEQ. | 1702 | "Return the last link in the list SEQ. |
| 1680 | With optional argument N, returns Nth-to-last link (default 1)." | 1703 | With optional argument N, returns Nth-to-last link (default 1)." |
| @@ -3341,7 +3364,7 @@ The POINT-LIST is expected to cover the first quadrant." | |||
| 3341 | (t c))))) | 3364 | (t c))))) |
| 3342 | ;; The cdr and butlast below is so we don't draw the middle top | 3365 | ;; The cdr and butlast below is so we don't draw the middle top |
| 3343 | ;; and middle bottom char twice. | 3366 | ;; and middle bottom char twice. |
| 3344 | (butlast (cdr (reverse right-half))))) | 3367 | (funcall artist-butlast-fn (cdr (reverse right-half))))) |
| 3345 | (append right-half left-half))) | 3368 | (append right-half left-half))) |
| 3346 | 3369 | ||
| 3347 | 3370 | ||
| @@ -4952,7 +4975,7 @@ The event, EV, is the mouse event." | |||
| 4952 | (y2 y1-last) | 4975 | (y2 y1-last) |
| 4953 | (is-down t) | 4976 | (is-down t) |
| 4954 | (shape nil) | 4977 | (shape nil) |
| 4955 | (point-list (list (artist-make-endpoint x1-last y1-last))) | 4978 | (point-list nil) |
| 4956 | (done nil)) | 4979 | (done nil)) |
| 4957 | (select-window (posn-window ev-start)) | 4980 | (select-window (posn-window ev-start)) |
| 4958 | (artist-funcall init-fn x1-last y1-last) | 4981 | (artist-funcall init-fn x1-last y1-last) |
| @@ -5125,7 +5148,7 @@ The event, EV, is the mouse event." | |||
| 5125 | (artist-funcall fill-fn point-list)) | 5148 | (artist-funcall fill-fn point-list)) |
| 5126 | 5149 | ||
| 5127 | ;; Maybe set arrow points | 5150 | ;; Maybe set arrow points |
| 5128 | (if (artist-funcall arrow-pred) | 5151 | (if (and point-list (artist-funcall arrow-pred)) |
| 5129 | (artist-funcall arrow-set-fn point-list) | 5152 | (artist-funcall arrow-set-fn point-list) |
| 5130 | (artist-clear-arrow-points)) | 5153 | (artist-clear-arrow-points)) |
| 5131 | 5154 | ||