[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/queue bbc4df9 12/14: Fix buggy queue-empty and queue-fi
From: |
Stefan Monnier |
Subject: |
[elpa] externals/queue bbc4df9 12/14: Fix buggy queue-empty and queue-first definitions. |
Date: |
Mon, 14 Dec 2020 12:02:46 -0500 (EST) |
branch: externals/queue
commit bbc4df92e5ae1dab5caf0932b63f8afae00c22f3
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Fix buggy queue-empty and queue-first definitions.
Should be defun's instead of macros (or else require backticks).
---
queue.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/queue.el b/queue.el
index 72311fa..4c9c954 100644
--- a/queue.el
+++ b/queue.el
@@ -5,7 +5,7 @@
;; Author: Inge Wallin <inge@lysator.liu.se>
;; Toby Cubitt <toby-predictive@dr-qubit.org>
;; Maintainer: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.1
+;; Version: 0.1.1
;; Keywords: extensions, data structures, queue
;; URL: http://www.dr-qubit.org/emacs.php
;; Repository: http://www.dr-qubit.org/git/predictive.git
@@ -88,12 +88,12 @@ Returns nil if the queue is empty."
(pop (queue-head queue)))
-(defmacro queue-empty (queue)
+(defun queue-empty (queue)
"Return t if QUEUE is empty, otherwise return nil."
(null (queue-head queue)))
-(defmacro queue-first (queue)
+(defun queue-first (queue)
"Return the first element of QUEUE or nil if it is empty,
without removing it from the QUEUE."
(car (queue-head queue)))
- [elpa] branch externals/queue created (now c9ec2e3), Stefan Monnier, 2020/12/14
- [elpa] externals/queue 02a4454 03/14: Updated copywrite notice, Stefan Monnier, 2020/12/14
- [elpa] externals/queue 6d9b0c4 02/14: Bumped copyright year, Stefan Monnier, 2020/12/14
- [elpa] externals/queue 84b3d01 04/14: Re-filled to 72 chars/line, for mailing to gnu-emacs-sources list, Stefan Monnier, 2020/12/14
- [elpa] externals/queue b47d38f 05/14: Updated Package-Version, Package-Requires, and Keywords package headers., Stefan Monnier, 2020/12/14
- [elpa] externals/queue da5d38e 08/14: Trivial whitespace tidying., Stefan Monnier, 2020/12/14
- [elpa] externals/queue 82aa3ef 09/14: More minor whitespace and commentary changes., Stefan Monnier, 2020/12/14
- [elpa] externals/queue 2e53a45 10/14: Remove ChangeLogs from library headers., Stefan Monnier, 2020/12/14
- [elpa] externals/queue bbc4df9 12/14: Fix buggy queue-empty and queue-first definitions.,
Stefan Monnier <=
- [elpa] externals/queue f83d2b8 11/14: Enable lexical binding, and fix issues it picks up., Stefan Monnier, 2020/12/14
- [elpa] externals/queue c9ec2e3 14/14: Bump version numbers since we've added iterator generators., Stefan Monnier, 2020/12/14
- [elpa] externals/queue d7ee623 01/14: Added queue.el package, Stefan Monnier, 2020/12/14
- [elpa] externals/queue 4427998 06/14: Added autoload cookies., Stefan Monnier, 2020/12/14
- [elpa] externals/queue 0b03d23 07/14: Updated copyright attribution and license (GPL2 -> GPL3)., Stefan Monnier, 2020/12/14
- [elpa] externals/queue 1c230d7 13/14: Implement iterator generators on collection data structures., Stefan Monnier, 2020/12/14