unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ELPA queue.el weirdness
@ 2014-05-14 18:25 Thien-Thi Nguyen
  2014-05-14 19:05 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Thien-Thi Nguyen @ 2014-05-14 18:25 UTC (permalink / raw)
  To: toby-predictive; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]

I see that the GNU ELPA packages/queue/queue.el has the following:

 (defmacro queue-empty (queue)
   "Return t if QUEUE is empty, otherwise return nil."
   (null (queue-head queue)))
 
 (defmacro 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)))

I don't understand how these can work in their present
formulation, and think they should be changed to use either
‘backquote’ and ‘unquote’, or (preferably) ‘defsubst’.

Also i notice that the queue.el from the www.dr-qubit.org Git repo
includes ‘lexical-binding: t’ whereas the ELPA version does not.

Do you have any plans to do these small changes and release (on
the ELPA side, that is) a new version?  If not, any objections or
advice if i were to do it?

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-15  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 18:25 ELPA queue.el weirdness Thien-Thi Nguyen
2014-05-14 19:05 ` Stefan Monnier
2014-05-15  7:36   ` Thien-Thi Nguyen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).