[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/heap 304c604 13/31: Fixed bug in heap-copy.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/heap 304c604 13/31: Fixed bug in heap-copy. |
Date: |
Mon, 14 Dec 2020 12:13:35 -0500 (EST) |
branch: externals/heap
commit 304c60408b5a74b86d82cb3ae8e3cc61a6f084ec
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Fixed bug in heap-copy.
---
heap.el | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/heap.el b/heap.el
index 5d9fb7a..2e6d6bc 100644
--- a/heap.el
+++ b/heap.el
@@ -2,10 +2,10 @@
;;; heap.el --- heap (a.k.a. priority queue) data structure package
-;; Copyright (C) 2004-2006, 2008 Toby Cubitt
+;; Copyright (C) 2004-2006, 2008, 2012 Toby Cubitt
;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.2.1
+;; Version: 0.2.2
;; Keywords: heap, priority queue
;; URL: http://www.dr-qubit.org/emacs.php
@@ -71,6 +71,9 @@
;;; Change log:
;;
+;; Version 0.2.2
+;; * fixed bug in `heap-copy'
+;;
;; Version 0.2.1
;; * modified Commentary
;;
@@ -236,10 +239,11 @@ defaulting to 1.5"
(defun heap-copy (heap)
- "Return a copy of heap HEAP."
- (let ((newheap (heap-create (heap--size heap) (heap--cmpfun heap))))
- (heap--set-vect newheap (vconcat (heap--vect heap) []))
- newheap))
+ "Return a copy of heap HEAP."
+ (let ((newheap (heap-create (heap--cmpfun heap) (heap--size heap))))
+ (heap--set-vect newheap (vconcat (heap--vect heap) []))
+ (heap--set-count newheap (heap--count heap))
+ newheap))
(defun heap-p (obj)
- [elpa] externals/heap ed90e4d 09/31: Adding missing 'buffer setting to customization menu for predictive-auto-add-to-dict., (continued)
- [elpa] externals/heap ed90e4d 09/31: Adding missing 'buffer setting to customization menu for predictive-auto-add-to-dict., Stefan Monnier, 2020/12/14
- [elpa] externals/heap f74c766 15/31: Converted heap data structures to defstructs., Stefan Monnier, 2020/12/14
- [elpa] externals/heap e354b4f 19/31: Revert default heap size to 10., Stefan Monnier, 2020/12/14
- [elpa] externals/heap e2c16be 06/31: Version 0.10.3 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 75b42f4 04/31: Version 0.9.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 2d51c84 01/31: Version 0.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 227de61 03/31: Version 0.7 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap da9637e 25/31: Added heap-clear function., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 4407826 22/31: More minor whitespace and commentary changes., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 7f5ab59 10/31: Add heap-root function., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 304c604 13/31: Fixed bug in heap-copy.,
Stefan Monnier <=
- [elpa] externals/heap fcf3edd 18/31: Added autoload cookies., Stefan Monnier, 2020/12/14
- [elpa] externals/heap a3ddd78 23/31: Remove ChangeLogs from library headers., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 5ad96c3 14/31: Updated Package-Version, Package-Requires, and Keywords package headers., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 11738aa 12/31: Re-filled to 72 chars/line, for mailing to gnu-emacs-sources list, Stefan Monnier, 2020/12/14
- [elpa] externals/heap 596261c 28/31: Implement iterator generators on collection data structures., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 32e75bb 31/31: * heap.el: Fix first line format, Stefan Monnier, 2020/12/14
- [elpa] externals/heap 8a40ef4 08/31: Version 0.12.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 8ece2ad 24/31: Enable lexical binding, and fix issues it picks up., Stefan Monnier, 2020/12/14
- [elpa] externals/heap aa998ae 20/31: Updated copyright attribution and license (GPL2 -> GPL3)., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 778a848 26/31: Bump version numbers and copyright years., Stefan Monnier, 2020/12/14