aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-12-28 12:22:25 +0000
committerKenichi Handa2000-12-28 12:22:25 +0000
commit6d01793f1ae563efeaf9d6fed087fcf48329161d (patch)
tree7098d0b4b7583d31a98e326310eadb6864124b8e
parentf086e73c63d34d8e7d82f4e0b50b85475e96158c (diff)
downloademacs-6d01793f1ae563efeaf9d6fed087fcf48329161d.tar.gz
emacs-6d01793f1ae563efeaf9d6fed087fcf48329161d.zip
(artist-butlast): Deleted.
(artist-ellipse-mirror-quadrant): Use butlast instead of artist-last.
-rw-r--r--lisp/textmodes/artist.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index 918cdffadf8..10b54710925 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -1675,12 +1675,6 @@ info-variant-part."
1675 "Call function FN with ARGS iff FN is not nil." 1675 "Call function FN with ARGS iff FN is not nil."
1676 (list 'if fn (cons 'funcall (cons fn args)))) 1676 (list 'if fn (cons 'funcall (cons fn args))))
1677 1677
1678(defun artist-butlast (l)
1679 "Return the list L with all elements but the last."
1680 (cond ((null l) nil)
1681 ((null (cdr l)) nil)
1682 (t (cons (car l) (artist-butlast (cdr l))))))
1683
1684(defun artist-last (seq &optional n) 1678(defun artist-last (seq &optional n)
1685 "Return the last link in the list SEQ. 1679 "Return the last link in the list SEQ.
1686With optional argument N, returns Nth-to-last link (default 1)." 1680With optional argument N, returns Nth-to-last link (default 1)."
@@ -3347,7 +3341,7 @@ The POINT-LIST is expected to cover the first quadrant."
3347 (t c))))) 3341 (t c)))))
3348 ;; The cdr and butlast below is so we don't draw the middle top 3342 ;; The cdr and butlast below is so we don't draw the middle top
3349 ;; and middle bottom char twice. 3343 ;; and middle bottom char twice.
3350 (artist-butlast (cdr (reverse right-half))))) 3344 (butlast (cdr (reverse right-half)))))
3351 (append right-half left-half))) 3345 (append right-half left-half)))
3352 3346
3353 3347