From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gary Newsgroups: gmane.emacs.bugs Subject: bug#21589: 24.5; contradiction in info Date: Wed, 30 Sep 2015 14:07:53 +0100 Message-ID: <560BDEA9.7060908@boltav.plus.com> References: <874micx552.fsf@boltav.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------000006070005050804090802" X-Trace: ger.gmane.org 1444110498 18733 80.91.229.3 (6 Oct 2015 05:48:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 05:48:18 +0000 (UTC) Bcc: rgm@gnu.org To: Glenn Morris , 21589@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 07:48:09 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjL6e-0001lk-IT for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 07:48:08 +0200 Original-Received: from localhost ([::1]:49106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjL6e-0002Xv-1H for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Oct 2015 01:48:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjL6Z-0002XV-Ew for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 01:48:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjL6Y-0006p3-Ey for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 01:48:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjL6Y-0006ov-C7 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 01:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZjL6Y-0007nR-25 for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2015 01:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gary Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2015 05:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21589 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21589-submit@debbugs.gnu.org id=B21589.144411046729944 (code B ref 21589); Tue, 06 Oct 2015 05:48:01 +0000 Original-Received: (at 21589) by debbugs.gnu.org; 6 Oct 2015 05:47:47 +0000 Original-Received: from localhost ([127.0.0.1]:55817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjL6I-0007mu-NL for submit@debbugs.gnu.org; Tue, 06 Oct 2015 01:47:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52817) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjL6G-0007mg-Qc for 21589@debbugs.gnu.org; Tue, 06 Oct 2015 01:47:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjL6F-0006ae-Po for 21589@debbugs.gnu.org; Tue, 06 Oct 2015 01:47:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjL6F-0006aa-Lw for 21589@debbugs.gnu.org; Tue, 06 Oct 2015 01:47:43 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZjL6F-00089E-DN for 21589@debbugs.gnu.org; Tue, 06 Oct 2015 01:47:43 -0400 Resent-Message-ID: <22035.24703.329032.104984@gnu.org> Resent-Date: Tue, 6 Oct 2015 01:47:43 -0400 Resent-From: Glenn Morris Resent-To: 21589@debbugs.gnu.org X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=WOqCJSYR c=1 sm=1 tr=0 a=EvF57qhmsu/p+xh0AOseJg==:117 a=EvF57qhmsu/p+xh0AOseJg==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=r77TgQKjGQsHNAKrUKIA:9 a=ia_H2dH5Tq3IQeGrLtgA:9 a=pILNOxqGKmIA:10 a=mDV3o1hIAAAA:8 a=9QF_V2DpTt7OztpLCL4A:9 a=V-VKTqswG1ttUOfw:21 a=_W_S_7VecoQA:10 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107350 Archived-At: This is a multi-part message in MIME format. --------------000006070005050804090802 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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. > --------------000006070005050804090802 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit 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.


--------------000006070005050804090802--