From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6FmoLieYx2OReQAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 07:56:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GFfCLSeYx2PpOAAAG6o9tA (envelope-from ) for ; Wed, 18 Jan 2023 07:56:39 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C428998B for ; Wed, 18 Jan 2023 07:56:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pI2MN-0002CM-G0; Wed, 18 Jan 2023 01:55:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI2MI-0002Bh-FG for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 01:55:45 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pI2MF-00022B-SW for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 01:55:41 -0500 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) for emacs-orgmode@gnu.org with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pI2MC-0005xO-NU; Wed, 18 Jan 2023 07:55:36 +0100 Received: from 130-133-144-203.mna.fu-berlin.de ([130.133.144.203] helo=diaspore) by inpost2.zedat.fu-berlin.de (Exim 4.95) for emacs-orgmode@gnu.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pI2MC-000w9k-Gf; Wed, 18 Jan 2023 07:55:36 +0100 From: "Loris Bennett" To: Org Mode Mailing List Subject: Re: org-agenda-files: using variables Organization: ZEDAT, Freie =?utf-8?Q?Universit=C3=A4t?= Berlin References: <87ilh52o4p.fsf@debian-BULLSEYE-live-builder-AMD64> <87ilh5qh2d.fsf@alphaville.usersys.redhat.com> Date: Wed, 18 Jan 2023 07:55:35 +0100 In-Reply-To: <87ilh5qh2d.fsf@alphaville.usersys.redhat.com> (Nick Dokos's message of "Tue, 17 Jan 2023 11:08:58 -0500") Message-ID: <87y1q0gwm0.fsf@debian-BULLSEYE-live-builder-AMD64> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Original-Sender: loris.bennett@fu-berlin.de X-Originating-IP: 130.133.144.203 Received-SPF: pass client-ip=130.133.4.66; envelope-from=loris@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674024999; a=rsa-sha256; cv=none; b=oWsX9dr+oXD9eW/kFCPjbpysi8rt1ByhWEIcSgPzTIBPOIbv7GJHgctzwrQ9WwoNcaBu1H YXfPqJu5yOwBci08RFFJFKwKCCnb0fiaNCAsp3MgCsFsTr1TrzoNZ8J3JJ05ZD6EeO/zeN x4rm/VJLHY9a3Bvm5XQ4yNSFZO3MO+GETrwL/eohgR9E7QyH40soyBZzMjuMHc6m2AR5p+ KhrUGvr+np9oxssx5qrzLLWcVOTKcyhMqBmrZ4eTkYe93bPa1T0yxjm80f/tewSudGEYet I4YkDEIc1FnYlJBeGDdIxSaVn2P9MPfPlWHuXGbiEL9FEkprlqqUhopWnABv+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674024999; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=jbpcLda9anJBtQ3UBobH71gkixfxW+4MjmXq+yaK1jI=; b=VeCLztXSa6pkzXbGj91VdgaQFwDUxDaYBCsOMMqLBHRr4ueDLKMSpcarTj+0p6ThnmKv6g VYUDRWiQqdUmo2ALb1l60ZjTlEGwx0Iqg4Oyp7xKmjKZNRHiwml5quhYdIDSyDnN6/hiAC MctbUfrAsUh/8O6I3BB5C57hBiJXaJ+sWFmtXvCLUjPZGTvZv30469pjE3tJTpwUx18e+X RHe/7ThHxgDTq8/RXLpqXdCBVHoDMXrIDa4Cao5mrQe04xdFh8f00VW4dAgeNg/0uAHOAz FUi3Z2/JDJ7jUkX0C1tkWnzDhrJledd9kMH+qYTjDTJK+d4YycH3qTQj85U/7Q== X-Spam-Score: -1.63 X-Migadu-Queue-Id: 4C428998B Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.63 X-TUID: jnc0U8NLYl/A Hi Nick, Nick Dokos writes: > "Loris Bennett" writes: > >> Hi, >> >> I have >> >> (setq lb/org-directory "~/org/")) >> (setq lb/gtd-file (expand-file-name "gtd.org" lb/org-directory)) >> (setq lb/refile-file (expand-file-name "refile.org" lb/org-directory)) >> (setq org-agenda-files '(lb/gtd-file lb/refile-file)) >> >> But generating the agenda fails with >> >> Wrong type argument: stringp, lb/gtd-file >> >> What is the correct syntax to use the variables in the list? >> > > Quoting quotes everything including symbols, so you either do not > quote or use backquote: > > (setq org-agenda-files (list lb/gtd-file lb/refile-file)) > (setq org-agenda-files `(,lb/gtd-file ,lb/refile-file)) > > In this case, I'd prefer the first form, but the second form is often > useful - see > > (info "(elisp)Backquote") Thanks, in particular also for the link to the relevant documentation. Cheers, Loris -- This signature is currently under constuction.