From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CBFfLfmY2F/4ZQAA0tVLHw (envelope-from ) for ; Tue, 15 Dec 2020 11:07:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oO1cKfmY2F9hCgAAB5/wlQ (envelope-from ) for ; Tue, 15 Dec 2020 11:07:37 +0000 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 09312940466 for ; Tue, 15 Dec 2020 11:07:36 +0000 (UTC) Received: from localhost ([::1]:50606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kp8B3-0008Ki-TV for larch@yhetil.org; Tue, 15 Dec 2020 06:07:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp8AN-0008KM-P6 for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 06:06:51 -0500 Received: from ciao.gmane.io ([116.202.254.214]:37588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp8AL-0003m0-PY for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 06:06:51 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kp8AI-0006fl-C5 for emacs-orgmode@gnu.org; Tue, 15 Dec 2020 12:06:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Tim Landscheidt Subject: Re: Time Slots in Org-Agenda Date: Tue, 15 Dec 2020 11:06:41 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <878s9zgwfy.fsf@passepartout.tim-landscheidt.de> References: <87a6ukdhjd.fsf@localhost> <877dpodec2.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:WIqAcgQEOfc+mHnh+kNaIc7DG/E= 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: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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.23 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 09312940466 X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: K4QRLafqpehY steve-humphreys@gmx.com wrote: >> >> See org-agenda-time-grid >> > >> > Where can I find some information on how to use it? >> Menu help -> Describe -> Describe variable org-agenda-time-grid >> or >> v org-agenda-time-grid > At first > I have started with the following command, but emacs does not like it > (setq times '(800 1000 1200)) > (setq freq '("daily" "today")) > (setq org-agenda-time-grid '(freq times "---" "+++")) > I also tried variants thereof. My elisp is not so good > but tried to have a look at the code. > […] The last line means: Set the variable org-agenda-time-grid to a list that consists of the symbol (!) "freq", the sym- bol "times", the string "---" and the string "+++". How- ever, you want the first and second elements to be the val- ues of those variables, so you could say: | (setq org-agenda-time-grid `(,freq ,times "---" "+++")) or: | (setq org-agenda-time-grid (list freq times "---" "+++")) (NB: There are more subtleties to this (e. g., a symbol can have separate meanings as a variable and a function (and I really should finally read the elisp info file from begin- ning to end :-)))), but my most common mistake is either to quote something that I do not want to quote or not quote something that I do want to quote.) Tim