GNU bug report logs - #21589
24.5; contradiction in info

Previous Next

Package: emacs;

Reported by: Gary <gary <at> boltav.plus.com>

Date: Tue, 29 Sep 2015 22:04:01 UTC

Severity: minor

Tags: fixed

Found in version 24.5

Fixed in version 25.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #11 received at 21589 <at> debbugs.gnu.org (full text, mbox):

From: Gary <gary <at> boltav.plus.com>
To: Glenn Morris <rgm <at> gnu.org>, 21589 <at> debbugs.gnu.org
Subject: Re: bug#21589: 24.5; contradiction in info
Date: Wed, 30 Sep 2015 14:07:53 +0100
[Message part 1 (text/plain, inline)]
Hi Glenn

thanks for your quick reply.  I see what you mean, the append is further 
down and I was looking at the code following this comment where it says 
'append' (line 3 below) and then uses cons (line 6). On the other hand 
being a new user, I NEED to read the manual whereas I'm guessing you 
don't. :)

cheers

Gary

 (cond
            ;; check to see whether filename ends in `.el'
            ;; and if so, append its name to a list.
            ((equal ".el" (substring (car (car current-directory-list)) 
-3))
             (setq el-files-list
                   (cons (car (car current-directory-list)) 
el-files-list)))
            ;; check whether filename is that of a directory
            ((eq t (car (cdr (car current-directory-list))))
             ;; decide whether to skip or recurse

On 30/09/15 00:44, Glenn Morris wrote:
> Gary wrote:
>
>> The info section Recursive Pattern: _accumulate_ states:
>>
>> 'This is very like the 'every' pattern using 'cons', except that
>> 'cons' is not used, but some other combiner.'
>>
>> The example link 'Making a List of Files' uses cons to accumulate a list
>> of files.
> The recursive function call (which is what the section "Recursive
> Patterns" is about) in files-in-below-directory uses "append", not cons.
> cons happens to be used elsewhere in the function. It says right before
> the files-in-below-directory definition that it uses "append".
> So personally speaking I don't find it confusing.
>

[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.