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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21589 in the body.
You can then email your comments to 21589 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21589; Package emacs. (Tue, 29 Sep 2015 22:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gary <gary <at> boltav.plus.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 29 Sep 2015 22:04:02 GMT) Full text and rfc822 format available.

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

From: Gary <gary <at> boltav.plus.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; contradiction in info
Date: Tue, 29 Sep 2015 22:55:05 +0100
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.

I realize this is a low priority minor detail but it could cause
confusion for a novice. It certainly confused me. I have looked for
whether there is somewhere else to report problems with info, also whether to delete the preamble of this email - didn't
find anything - so I've left it as it is.



In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
 of 2015-04-12 on glook2
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description:	Ubuntu 14.04.3 LTS

Configured using:
 `configure --prefix=/home/gary/bin/emacs245'

Important settings:
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
  org-capture-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  global-auto-complete-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
C-h DEL is undefined
delete-backward-char: Text is read-only
Quit
byte-code: Beginning of buffer [2 times]
a is undefined
Type C-x 4 C-o RET to restore the other window.  
Type "q" in help window to restore its previous buffer.
Stored: info:eintr#Accumulate
Template key: 
Clipboard pasted as level 4 subtree

Load-path shadows:
/home/gary/.emacs.d/elpa/org-20150914/ob-mscgen hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-mscgen
/home/gary/.emacs.d/elpa/org-20150914/ox-texinfo hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-texinfo
/home/gary/.emacs.d/elpa/org-20150914/ob-screen hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-screen
/home/gary/.emacs.d/elpa/org-20150914/ob-ditaa hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-ditaa
/home/gary/.emacs.d/elpa/org-20150914/ob-haskell hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-haskell
/home/gary/.emacs.d/elpa/org-20150914/org-rmail hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-rmail
/home/gary/.emacs.d/elpa/org-20150914/org-crypt hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-crypt
/home/gary/.emacs.d/elpa/org-20150914/ob-R hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-R
/home/gary/.emacs.d/elpa/org-20150914/org-macro hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-macro
/home/gary/.emacs.d/elpa/org-20150914/org-compat hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-compat
/home/gary/.emacs.d/elpa/org-20150914/org-capture hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-capture
/home/gary/.emacs.d/elpa/org-20150914/ob-ocaml hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-ocaml
/home/gary/.emacs.d/elpa/org-20150914/ob-lilypond hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-lilypond
/home/gary/.emacs.d/elpa/org-20150914/org-timer hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-timer
/home/gary/.emacs.d/elpa/org-20150914/ox-org hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-org
/home/gary/.emacs.d/elpa/org-20150914/org-mobile hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-mobile
/home/gary/.emacs.d/elpa/org-20150914/ob-eval hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-eval
/home/gary/.emacs.d/elpa/org-20150914/ob-keys hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-keys
/home/gary/.emacs.d/elpa/org-20150914/org-pcomplete hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-pcomplete
/home/gary/.emacs.d/elpa/org-20150914/ob-scheme hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-scheme
/home/gary/.emacs.d/elpa/org-20150914/ob-scala hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-scala
/home/gary/.emacs.d/elpa/org-20150914/ox-icalendar hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-icalendar
/home/gary/.emacs.d/elpa/org-20150914/ob-exp hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-exp
/home/gary/.emacs.d/elpa/org-20150914/org-element hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-element
/home/gary/.emacs.d/elpa/org-20150914/org-gnus hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-gnus
/home/gary/.emacs.d/elpa/org-20150914/ob-latex hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-latex
/home/gary/.emacs.d/elpa/org-20150914/org-entities hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-entities
/home/gary/.emacs.d/elpa/org-20150914/ob-plantuml hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-plantuml
/home/gary/.emacs.d/elpa/org-20150914/ox-odt hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-odt
/home/gary/.emacs.d/elpa/org-20150914/ob-emacs-lisp hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-emacs-lisp
/home/gary/.emacs.d/elpa/org-20150914/ob-core hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-core
/home/gary/.emacs.d/elpa/org-20150914/org-mouse hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-mouse
/home/gary/.emacs.d/elpa/org-20150914/ob-fortran hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-fortran
/home/gary/.emacs.d/elpa/org-20150914/org-faces hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-faces
/home/gary/.emacs.d/elpa/org-20150914/ob-io hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-io
/home/gary/.emacs.d/elpa/org-20150914/org-irc hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-irc
/home/gary/.emacs.d/elpa/org-20150914/org-bibtex hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-bibtex
/home/gary/.emacs.d/elpa/org-20150914/org-archive hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-archive
/home/gary/.emacs.d/elpa/org-20150914/ob-clojure hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-clojure
/home/gary/.emacs.d/elpa/org-20150914/ox hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox
/home/gary/.emacs.d/elpa/org-20150914/ox-latex hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-latex
/home/gary/.emacs.d/elpa/org-20150914/org-habit hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-habit
/home/gary/.emacs.d/elpa/org-20150914/org-inlinetask hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-inlinetask
/home/gary/.emacs.d/elpa/org-20150914/org-protocol hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-protocol
/home/gary/.emacs.d/elpa/org-20150914/org-info hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-info
/home/gary/.emacs.d/elpa/org-20150914/org-attach hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-attach
/home/gary/.emacs.d/elpa/org-20150914/ox-publish hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-publish
/home/gary/.emacs.d/elpa/org-20150914/org-install hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-install
/home/gary/.emacs.d/elpa/org-20150914/ob-ledger hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-ledger
/home/gary/.emacs.d/elpa/org-20150914/ob-C hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-C
/home/gary/.emacs.d/elpa/org-20150914/ob-perl hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-perl
/home/gary/.emacs.d/elpa/org-20150914/ob-ruby hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-ruby
/home/gary/.emacs.d/elpa/org-20150914/ob-maxima hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-maxima
/home/gary/.emacs.d/elpa/org-20150914/org hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org
/home/gary/.emacs.d/elpa/org-20150914/ob-org hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-org
/home/gary/.emacs.d/elpa/org-20150914/ob-octave hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-octave
/home/gary/.emacs.d/elpa/org-20150914/ob-picolisp hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-picolisp
/home/gary/.emacs.d/elpa/org-20150914/ox-md hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-md
/home/gary/.emacs.d/elpa/org-20150914/ob-sqlite hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-sqlite
/home/gary/.emacs.d/elpa/org-20150914/ob-matlab hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-matlab
/home/gary/.emacs.d/elpa/org-20150914/ob-awk hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-awk
/home/gary/.emacs.d/elpa/org-20150914/ob-lob hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-lob
/home/gary/.emacs.d/elpa/org-20150914/ob-dot hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-dot
/home/gary/.emacs.d/elpa/org-20150914/ob-shen hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-shen
/home/gary/.emacs.d/elpa/org-20150914/org-datetree hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-datetree
/home/gary/.emacs.d/elpa/org-20150914/ob-tangle hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-tangle
/home/gary/.emacs.d/elpa/org-20150914/ob-asymptote hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-asymptote
/home/gary/.emacs.d/elpa/org-20150914/org-bbdb hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-bbdb
/home/gary/.emacs.d/elpa/org-20150914/org-docview hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-docview
/home/gary/.emacs.d/elpa/org-20150914/ob-calc hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-calc
/home/gary/.emacs.d/elpa/org-20150914/ob-makefile hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-makefile
/home/gary/.emacs.d/elpa/org-20150914/ob hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob
/home/gary/.emacs.d/elpa/org-20150914/org-loaddefs hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-loaddefs
/home/gary/.emacs.d/elpa/org-20150914/ob-java hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-java
/home/gary/.emacs.d/elpa/org-20150914/org-feed hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-feed
/home/gary/.emacs.d/elpa/org-20150914/ox-beamer hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-beamer
/home/gary/.emacs.d/elpa/org-20150914/ox-ascii hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-ascii
/home/gary/.emacs.d/elpa/org-20150914/ob-js hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-js
/home/gary/.emacs.d/elpa/org-20150914/org-indent hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-indent
/home/gary/.emacs.d/elpa/org-20150914/org-eshell hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-eshell
/home/gary/.emacs.d/elpa/org-20150914/ob-ref hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-ref
/home/gary/.emacs.d/elpa/org-20150914/ob-python hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-python
/home/gary/.emacs.d/elpa/org-20150914/org-ctags hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-ctags
/home/gary/.emacs.d/elpa/org-20150914/org-version hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-version
/home/gary/.emacs.d/elpa/org-20150914/ox-man hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-man
/home/gary/.emacs.d/elpa/org-20150914/org-agenda hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-agenda
/home/gary/.emacs.d/elpa/org-20150914/ob-gnuplot hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-gnuplot
/home/gary/.emacs.d/elpa/org-20150914/ox-html hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ox-html
/home/gary/.emacs.d/elpa/org-20150914/org-colview hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-colview
/home/gary/.emacs.d/elpa/org-20150914/ob-comint hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-comint
/home/gary/.emacs.d/elpa/org-20150914/org-id hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-id
/home/gary/.emacs.d/elpa/org-20150914/org-list hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-list
/home/gary/.emacs.d/elpa/org-20150914/ob-css hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-css
/home/gary/.emacs.d/elpa/org-20150914/org-macs hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-macs
/home/gary/.emacs.d/elpa/org-20150914/org-plot hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-plot
/home/gary/.emacs.d/elpa/org-20150914/org-footnote hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-footnote
/home/gary/.emacs.d/elpa/org-20150914/org-mhe hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-mhe
/home/gary/.emacs.d/elpa/org-20150914/ob-sql hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-sql
/home/gary/.emacs.d/elpa/org-20150914/org-clock hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-clock
/home/gary/.emacs.d/elpa/org-20150914/ob-table hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-table
/home/gary/.emacs.d/elpa/org-20150914/org-src hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-src
/home/gary/.emacs.d/elpa/org-20150914/org-table hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-table
/home/gary/.emacs.d/elpa/org-20150914/ob-sass hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-sass
/home/gary/.emacs.d/elpa/org-20150914/ob-lisp hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/ob-lisp
/home/gary/.emacs.d/elpa/org-20150914/org-w3m hides /home/gary/bin/emacs245/share/emacs/24.5/lisp/org/org-w3m

Features:
(shadow sort mail-extr emacsbug sendmail cus-edit battery time paren
cua-base cus-start cus-load apropos bookmark pp tabify org-datetree
org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view
jka-compr image-mode dired org-bibtex bibtex org-bbdb org-element
avl-tree org-w3m org-capture flymake compile desktop frameset cl-extra
yasnippet help-mode auto-complete-config auto-complete popup org edmacro
kmacro derived org-macro org-footnote org-pcomplete pcomplete org-list
org-faces org-entities noutline outline org-version ob-emacs-lisp ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-src easy-mmode ob-keys
ob-comint comint ansi-color ring ob-core ob-eval org-compat advice
org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs gnus-sum
nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec
gnus-int gnus-range message cl-macs format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit cl gv
cl-loaddefs cl-lib wombat-theme info easymenu package epg-config
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:
((conses 16 436183 69011)
 (symbols 48 37293 0)
 (miscs 40 613 1163)
 (strings 32 74472 10902)
 (string-bytes 1 2383968)
 (vectors 16 32543)
 (vector-slots 8 1388468 51756)
 (floats 8 621 1219)
 (intervals 56 2453 132)
 (buffers 960 29)
 (heap 1024 46906 2890))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21589; Package emacs. (Tue, 29 Sep 2015 23:46:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Gary <gary <at> boltav.plus.com>
Cc: 21589 <at> debbugs.gnu.org
Subject: Re: bug#21589: 24.5; contradiction in info
Date: Tue, 29 Sep 2015 19:44:55 -0400
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21589; Package emacs. (Tue, 06 Oct 2015 05:48:01 GMT) Full text and rfc822 format available.

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)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21589; Package emacs. (Mon, 27 Jun 2016 03:54:02 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 21589 <at> debbugs.gnu.org
Cc: Gary <gary <at> boltav.plus.com>, Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#21589: 24.5; contradiction in info
Date: Sun, 26 Jun 2016 23:53:06 -0400
> 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).

So it seems like the problem is just that the comment is wrong?
(clearly that not code is not appending, the new item is being added
at the front)

diff --git a/doc/lispintro/emacs-lisp-intro.texi
b/doc/lispintro/emacs-lisp-intro.texi
index 10162b3..86c8da0 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -15465,7 +15465,7 @@ Files List
 @group
       (cond
        ;; check to see whether filename ends in '.el'
-       ;; and if so, append its name to a list.
+       ;; and if so, add 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)))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21589; Package emacs. (Fri, 29 Jul 2016 00:12:01 GMT) Full text and rfc822 format available.

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

From: npostavs <at> users.sourceforge.net
To: 21589 <at> debbugs.gnu.org
Cc: Gary <gary <at> boltav.plus.com>, Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#21589: 24.5; contradiction in info
Date: Thu, 28 Jul 2016 20:10:48 -0400
tags 21589 fixed
close 21589 25.1
quit

Noam Postavsky <npostavs <at> users.sourceforge.net> writes:

>> 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).
>
> So it seems like the problem is just that the comment is wrong?

I will assume yes, fixed in b443c3c7.




Added tag(s) fixed. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 29 Jul 2016 00:12:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 21589 <at> debbugs.gnu.org and Gary <gary <at> boltav.plus.com> Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 29 Jul 2016 00:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Aug 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 358 days ago.

Previous Next


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