From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "WJ" Newsgroups: gmane.emacs.help Subject: Re: Declaring a local dynamic variable? Date: 3 Nov 2013 01:42:46 GMT Organization: NewsGuy - Unlimited Usenet $19.95 Message-ID: References: <878uyo4w8n.fsf@informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1383443117 13200 80.91.229.3 (3 Nov 2013 01:45:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2013 01:45:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 03 02:45:20 2013 Return-path: Envelope-to: geh-help-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 1Vcmkg-0004MM-Tq for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Nov 2013 02:45:19 +0100 Original-Received: from localhost ([::1]:43776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vcmkg-0007Kt-Hx for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Nov 2013 21:45:18 -0400 X-Received: by 10.66.144.133 with SMTP id sm5mr3248424pab.5.1383442975148; Sat, 02 Nov 2013 18:42:55 -0700 (PDT) Original-Path: usenet.stanford.edu!z6no2135520pbz.1!news-out.google.com!9ni7604qaf.0!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!enews1 Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: pf09ae894b3993737659291ce1432f2c3efd50e75889ba9077443c7437032ae3f.newsdawg.com User-Agent: XanaNews/1.18.1.6 X-Antivirus: avast! (VPS 131101-1, 11/01/2013), Outbound message X-Antivirus-Status: Clean X-Received-Bytes: 1301 Original-Xref: usenet.stanford.edu gnu.emacs.help:202030 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94301 Archived-At: Pascal J. Bourguignon wrote: > (defun split-special-variables (declarations) > (loop > for decl in declarations > if (eq 'special (car decl)) > append (cdr decl) into specials > else > collect decl into other-decls > finally (return (list specials other-decls)))) (defun split-special-variables (declarations) (let (specials others) (dolist (x declarations) (if (eq 'special (car x)) (setq specials (nconc specials (cdr x))) (push x others))) (list specials others)))