]> git.eshelyaron.com Git - emacs.git/commitdiff
(artist-ellipse-mirror-quadrant): Fix bug introduced 2005-07-03:
authorThien-Thi Nguyen <ttn@gnuvola.org>
Thu, 6 Oct 2005 15:00:49 +0000 (15:00 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Thu, 6 Oct 2005 15:00:49 +0000 (15:00 +0000)
Use (car (last ...)) to faithfully reproduce replaced artist-last.
(artist-set-arrow-points-for-poly): Likewise.

lisp/ChangeLog
lisp/textmodes/artist.el

index 7729d9494d429e7f438022503db29d578bb8febd..3504a7b48867b3a7cc5d5ad375eee3b1a7b07dec 100644 (file)
@@ -1,3 +1,11 @@
+2005-10-06  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * textmodes/artist.el (artist-ellipse-mirror-quadrant):
+       Fix bug introduced 2005-07-03: Use (car (last ...))
+       to faithfully reproduce replaced artist-last.
+       (artist-set-arrow-points-for-poly): Likewise.
+       Suggested by Johan Bockg\e,Ae\e(Brd.
+
 2005-10-06  Juanma Barranquero  <lekktu@gmail.com>
 
        * dframe.el (x-pointer-hand2, x-pointer-top-left-arrow):
index c9fcd01d01832c31383d1fc8c19374ba1c229a82..b13b080cf79c0a85dec543f514aab2f234129431 100644 (file)
@@ -3379,7 +3379,7 @@ The POINT-LIST is expected to cover the first quadrant."
     ;; that look like:    \           /  instead we get:   (           )
     ;;                     \         /                      \         /
     ;;                      ---------                        ---------
-    (let ((last-coord  (last point-list)))
+    (let ((last-coord (car (last point-list))))
       (if (= (artist-coord-get-new-char last-coord) ?/)
          (artist-coord-set-new-char last-coord artist-ellipse-right-char)))
 
@@ -3848,8 +3848,8 @@ Optional argument STATE can be used to set state (default is nil)."
         (x2    (artist-endpoint-get-x ep2))
         (y2    (artist-endpoint-get-y ep2))
         (dir1  (artist-find-direction x2 y2 x1 y1))
-        (epn   (last point-list))
-        (epn-1 (last point-list 2))
+        (epn   (car (last point-list)))
+        (epn-1 (car (last point-list 2)))
         (xn    (artist-endpoint-get-x epn))
         (yn    (artist-endpoint-get-y epn))
         (xn-1  (artist-endpoint-get-x epn-1))