From: Vinicius Jose Latorre <viniciusjl@ig.com.br>
To: David Kastrup <dak@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Customizing the VC backend order
Date: Fri, 10 Aug 2007 11:59:51 -0300 [thread overview]
Message-ID: <46BC7D67.2070705@ig.com.br> (raw)
In-Reply-To: <85sl6slz9f.fsf@lola.goethe.zz>
David Kastrup wrote:
> [...]
> Well, at least when you actually _read_ the line once. So try the
> following example. Can you figure out what happens?
>
> (setq xxx (copy-sequence vc-handled-backends))
> (dotimes (i 3)
> (setq xxx (nconc '(Hg) (delq 'Hg xxx))))
> xxx
>
Hummm, interesting, see:
;; 1 time
M-:
(progn
(setq xxx (copy-sequence vc-handled-backends))
(setq xxx (nconc '(Hg) (delq 'Hg xxx)))
xxx)
RET
==> (Hg RCS CVS SCCS Bzr Git Arch MCVS)
;; 2 times
M-:
(progn
(setq xxx (copy-sequence vc-handled-backends))
(setq xxx (nconc '(Hg) (delq 'Hg xxx)))
(setq xxx (nconc '(Hg) (delq 'Hg xxx)))
xxx)
RET
==> (Hg RCS CVS SCCS Bzr Git Arch MCVS)
;; 3 times
M-:
(progn
(setq xxx (copy-sequence vc-handled-backends))
(setq xxx (nconc '(Hg) (delq 'Hg xxx)))
(setq xxx (nconc '(Hg) (delq 'Hg xxx)))
(setq xxx (nconc '(Hg) (delq 'Hg xxx)))
xxx)
RET
==> (Hg RCS CVS SCCS Bzr Git Arch MCVS)
;; dotimes
M-:
(progn
(setq xxx (copy-sequence vc-handled-backends))
(dotimes (i 3)
(setq xxx (nconc '(Hg) (delq 'Hg xxx))))
xxx)
RET
==> INFINITE LOOP!!!! ?
next prev parent reply other threads:[~2007-08-10 14:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 3:06 Customizing the VC backend order dhruva
2007-08-10 3:23 ` Stefan Monnier
2007-08-10 4:24 ` Stephen J. Turnbull
2007-08-10 4:33 ` Stefan Monnier
2007-08-10 5:07 ` dhruva
2007-08-10 5:24 ` Stefan Monnier
2007-08-10 5:44 ` dhruva
2007-08-10 5:53 ` Stefan Monnier
2007-08-11 5:04 ` dhruva
2007-08-11 9:11 ` Andreas Schwab
2007-08-11 9:22 ` David Kastrup
[not found] ` <e3f230850708110327p285424cxd45f5393005a39bf@mail.gmail.com>
[not found] ` <85ir7mwdkr.fsf@lola.goethe.zz>
[not found] ` <e3f230850708110400v19e127c4i91f10f8e39934041@mail.gmail.com>
2007-08-11 12:05 ` David Kastrup
2007-08-11 13:08 ` dhruva
2007-08-10 5:32 ` David Kastrup
2007-08-10 5:44 ` David Kastrup
2007-08-10 14:59 ` Vinicius Jose Latorre [this message]
2007-08-10 17:40 ` Johan Bockgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46BC7D67.2070705@ig.com.br \
--to=viniciusjl@ig.com.br \
--cc=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).