help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs 21 and w3 on Debian


From: Stefan Monnier
Subject: Re: Emacs 21 and w3 on Debian
Date: Wed, 01 Jun 2005 11:55:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> By the way: The code uses
>> "(declare (special ...))" to mark these cases and to pacify the
>> byte-compiler. Someone with CVS write access could replace these with an
>> equivalent non-CL statement, i.e., append the named variables to
>> "byte-compile-bound-variables".

> No, those declarations are there to pacify the Common Lisp cravings of
> the author.  The right thing to do is to defvar the global variables at
> the top level (either in url-http.el itself or in one of the libraries
> it requires).

There's nothing wrong with (declare (special ...) ...).

>>> But (append (list x) ...) is better expressed as (cons x ...):
>>> 
>>> (cons redirect-uri (cdr url-callback-arguments))
>> 
>> Isn't that a matter of taste? I find it more intuitive to use "append"
>> and "list" for list operations and "cons" for simple cells.  But I am no
>> lisp expert.

It's just a lot less efficient.


        Stefan


reply via email to

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