← Back to team overview

vm team mailing list archive

[Bug 338491] Re: mapvector not present in vm-8.0.13-devo-625

 

** Also affects: vm
   Importance: Undecided
       Status: New

** Changed in: vm
       Status: New => Fix Released

** Changed in: viewmail
       Status: Fix Committed => Fix Released

** Changed in: vm
    Milestone: None => 8.0.13

-- 
mapvector not present in vm-8.0.13-devo-625
https://bugs.launchpad.net/bugs/338491
You received this bug notification because you are a member of VM
development team, which is the registrant for VM (defunct).

Status in VM - Goto http://launchpad.net/vm for active development: Fix Released
Status in VM (View Mail) for Emacs: Fix Released

Bug description:
vm-8.0.13-devo-625 checked out from bazaar; installed to be used with emacs-snapshot under Ubuntu 8.10 (GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.14.3) of 2008-10-13 on rothera, modified by Debian).  Saving folders impossible as mapvector (used in vm-folder.el) does not seem to be available.  Worked around by defining 

(defun mapvector (fun v)
    (let ((l (length v)))
        (mapvector_l (- l 1) fun v (make-vector l nil))))

(defun mapvector_l (ind fun in out)
    (if (< ind 0)
        out
        (progn
            (aset out ind (funcall fun (aref in ind)))
            (mapvector_l (- ind 1) fun in out)
        )
    )
)

and adding it to my personal emacs files.