From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WFkdMWfIxmOfcgAAbAwnHQ (envelope-from ) for ; Tue, 17 Jan 2023 17:10:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yNANMWfIxmNytQAAauVa8A (envelope-from ) for ; Tue, 17 Jan 2023 17:10:15 +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 8CCD9287E4 for ; Tue, 17 Jan 2023 17:10:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHoWO-0006Nd-2z; Tue, 17 Jan 2023 11:09:12 -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 1pHoWL-0006NP-Vq for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 11:09:10 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHoWK-00035b-F0 for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 11:09:09 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pHoWH-0002aV-No for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 17:09:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: org-agenda-files: using variables Date: Tue, 17 Jan 2023 11:08:58 -0500 Message-ID: <87ilh5qh2d.fsf@alphaville.usersys.redhat.com> References: <87ilh52o4p.fsf@debian-BULLSEYE-live-builder-AMD64> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:ZBKVH5fwXZr5kpL0zwu52c7yujs= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1673971815; a=rsa-sha256; cv=none; b=Rn02YmwMMqPRXs2E9iiI8o+YrwjIqrWYvD2bULqY/NK6BSIOjBdnt/ksAo3H532n51HbmN /kL7ussns48k7/2+y+od4DJWiQm+ZeeAuZHW73TYDwtPfPtGySYgIKtBIUOO79CcHDDNlp VHhCPsvRcy5D4QMwi4jqdmdXL3g/PsTo6w5C4OYu3N7rOxDULNuNMhr1OC50WfC5YsfhQb O8Z5rQJRynhmDIXDZC2VNAqMPZ9LcirV5Wz+v54jT7IgzZ29NzF8NqIPPA9hoiqZNZwZKO tbjAmRdkKuUebxzWFxJoI6o/TmYWOsIybtC/opKdDhBzYvPE+cxEKTnFIC728Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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=1673971815; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=YnH2nDH7TYQK05sRHkxjCaa4QuZghF+E6iHoHzQWifY=; b=KzILCBPE1ux1oGjooMhvykPywGmnAWvGPGSjQGk/Wt7luiGy6sWIwzna5/ynDhKUda0HEU y27YpK6DKsw2CR+7fv/+u0IeXm4sMzi4n78gRnmxpfRWPZ2DqKal+7ayWaBx7VPX3uWyxF jpzIWWTg63aTBnzZN3Kn0wbohR1ADscBbiGAwVMG3ERJRwAdayG/XPUtmC3qUrTySx+wMO 7RP0Y9GVFT+alrzW9BgDcQcRAxEu50QqFHLQUPGFwliCZp6xW7kOo5wPzkdo23dLt2JdnX H58IkumJs7M5YOLT+VFK4pZ3JDO7IuA/DmojgZ22TH42hPlLTv7uRyY08xkckA== X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.63 X-Spam-Score: -2.63 X-Migadu-Queue-Id: 8CCD9287E4 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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-TUID: IQ0kogWAMx8T "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") -- Nick