emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11019: closed (24.0.94; ring-insert+extend does no


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11019: closed (24.0.94; ring-insert+extend does not grow ring properly)
Date: Thu, 15 Mar 2012 08:44:02 +0000

Your message dated Thu, 15 Mar 2012 16:13:27 +0800
with message-id <address@hidden>
and subject line Re: bug#11019: 24.0.94; ring-insert+extend does not grow ring 
properly
has caused the debbugs.gnu.org bug report #11019,
regarding 24.0.94; ring-insert+extend does not grow ring properly
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11019: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11019
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.0.94; ring-insert+extend does not grow ring properly Date: Thu, 15 Mar 2012 14:31:42 +0800
Looks like ring-insert+extend with a non-nil GROW-P argument does not
grow the ring properly if the ring is already "wrapped around":

(require 'ring)

(setq ring (make-ring 4))
(ring-insert ring 0)
(ring-insert ring 1)
(ring-insert ring 2)
(ring-insert ring 3)
(ring-insert ring 4)

(setq foo (ring-elements ring))
;; ==> (4 3 2 1)

(ring-insert+extend ring 5 t)

(setq bar (ring-elements ring))
;; ==> (1 4 5 3 2)
;; expected: (5 4 3 2 1)


I will write up a fix for this soon.



--- End Message ---
--- Begin Message --- Subject: Re: bug#11019: 24.0.94; ring-insert+extend does not grow ring properly Date: Thu, 15 Mar 2012 16:13:27 +0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)
Chong Yidong <address@hidden> writes:

> I will write up a fix for this soon.

Fixed in revno 107606.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]