From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: let-bind a varlist only known at run time Date: Mon, 05 Jun 2017 13:44:14 +0000 Message-ID: References: <28921.59572.342625.22836@gargle.gargle.HOWL> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1496670306 3934 195.159.176.226 (5 Jun 2017 13:45:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Jun 2017 13:45:06 +0000 (UTC) To: Roland Winkler , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 05 15:45:03 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHsJb-0000mb-6Q for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jun 2017 15:45:03 +0200 Original-Received: from localhost ([::1]:33468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHsJg-0002Ky-K9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jun 2017 09:45:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHsJ4-0002KS-9D for help-gnu-emacs@gnu.org; Mon, 05 Jun 2017 09:44:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHsJ3-0003rM-Fj for help-gnu-emacs@gnu.org; Mon, 05 Jun 2017 09:44:30 -0400 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:35959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHsJ1-0003lH-Ui; Mon, 05 Jun 2017 09:44:28 -0400 Original-Received: by mail-oi0-x22b.google.com with SMTP id h4so157863081oib.3; Mon, 05 Jun 2017 06:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qmLp/clYBSlRDRqRlbDsJR2kKhLA8NBXc7+lj/vKTI4=; b=Jf0+PG5DlJJu0WfJTxCQHYilIJx5KC9XMyhwhN+yk3/EMdr0zuGExxjnqh1lFOe88L kCjCnn+fF7U0eV485L/6zWz+L/eQRdSBn/HQDkO3PYnnLNGoqffO+Z2k0VrpyYTTuGSG cJjE6sCjUKyFuNEI+oOS7Osk3AV4XSbeXHQ5rT2kMQBgHTwjqtS1wTrvzdI7IjijF2GY Tjcx1yrix1pWHmVqpIYqzLZiQ5Dwbpx/H9zoq3x7ydMiGwpmV2cFyMwnXWO3M1fhrswB +xl5mRuv4s4536egqh1keh1PPQ1+xBU85QTepE9fi0MrijkN9LbdTuoc5Kl0yzWhF4th 7kqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=qmLp/clYBSlRDRqRlbDsJR2kKhLA8NBXc7+lj/vKTI4=; b=eQV+i7zlrk2C8SneAypcVT9gcYxZmfThVWcdxLpcPdfRlqG1OaVlQpuZ+YN77eFmvq dcaF8Ot1hOEsTvy4/o5BnrCD9EeHYb1eFQkZPMwgKPuK4Zft7CoMgNhabz7P2PBXOaWI ibenndaFhuM04ofnyzjso7/LdvKkf+MyeB4+DoTz+Nsz8zkVpMvfSBrO6dngyoGuSl8b 6jQMGHpmWs49Q0gUTpgpjg7EZ8W0FF64dB7mI8iu8gP8Wyf+th35Ckf+NQ2EooGgOFNt SWE57nHH5BhXthlHKogmTTVtgzsWUH2RBIKU/xlran4wiE+dbli8lSfNLL2c/ITDY5ZG wuow== X-Gm-Message-State: AODbwcAhBDKnzScKN3tO3AA0/TFZGKsCo/6lsSBjwOGkY9LvL43cp5A/ k6WG5zCr7oegs1jFPHPxYdOjgFwUTnez X-Received: by 10.157.30.129 with SMTP id n1mr10124429otn.243.1496670265310; Mon, 05 Jun 2017 06:44:25 -0700 (PDT) In-Reply-To: <28921.59572.342625.22836@gargle.gargle.HOWL> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113358 Archived-At: Roland Winkler schrieb am So., 4. Juni 2017 um 23:00 Uhr: > Normally the varlist for the special let form is hardcoded. Is it > possible to specify the varlist only at runtime? > > The usage scenario I have in mind is that a user variable foo-alist > may hold an alist that becomes the varlist for the let-binding. So > it's not known at compile time which bindings a user might want to > specify in foo-alist. Also, it might be hard to predict an > exhaustive list of "candidate variables" a user might want to put into > foo-alist (and certainly such a list would be hard to maintain). > Have you checked `let-alist'? Maybe it already does what you want.