From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yElwBb+el2FKewAAgWs5BA (envelope-from ) for ; Fri, 19 Nov 2021 13:55:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aJMrAb+el2FBSwAA1q6Kng (envelope-from ) for ; Fri, 19 Nov 2021 12:55:27 +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 B22879CB3 for ; Fri, 19 Nov 2021 13:55:26 +0100 (CET) Received: from localhost ([::1]:56788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo3QL-0005BA-AI for larch@yhetil.org; Fri, 19 Nov 2021 07:55:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo3P3-0004bn-GB for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 07:54:05 -0500 Received: from mail-sender-5.unibw-hamburg.de ([139.11.10.105]:34847 helo=premail.unibw-hamburg.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo3P1-0006Gy-6e for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 07:54:05 -0500 Received: from rzav4.unibw-hamburg.de ([139.11.12.54]:26143) by premail.unibw-hamburg.de with esmtp (HSU Mailserver) (envelope-from ) id 1mo3PC-0002lU-CR for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 13:53:58 +0100 X-IronPort-AV: E=Sophos;i="5.87,247,1631570400"; d="scan'208";a="69716695" Received: from mailcluster-1.unibw-hamburg.de (HELO premail.unibw-hamburg.de) ([139.11.5.101]) by rzav4.unibw-hamburg.de with ESMTP; 19 Nov 2021 13:53:59 +0100 Received: from dynamic-095-112-019-000.95.112.pool.telefonica.de ([95.112.19.0]:34654 helo=localhost.localdomain) by premail.unibw-hamburg.de with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (HSU Mailserver) (envelope-from ) id 1mo3PC-0002WL-21; Fri, 19 Nov 2021 13:53:58 +0100 Date: Fri, 19 Nov 2021 13:53:25 +0100 From: Detlef Steuer To: Emacs Org mode mailing list Subject: surprising(?) interaction between agenda grid and default-duration Message-ID: <20211119135325.7f3f85a9@hsu-hh.de> Organization: HSU X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-HSU-Virusscan: Routed to first Viruswall X-Brisant: Sender steuer@hsu-hh.de X-HSU-Virusscan: First Viruswall passed X-Authenticated-Sender: 13438/95.112.19.0 X-HSU-Virusscan: Routed to second Viruswall (Cisco Ironport ESAV) X-Brisant: Sender steuer@hsu-hh.de Received-SPF: pass client-ip=139.11.10.105; envelope-from=prvs=09577b96c3=steuer@hsu-hh.de; helo=premail.unibw-hamburg.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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637326526; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=RUVNP2kmeet42PFpr2pBD2dY3y5VkY8Z3QZh8tYpaaM=; b=PdEv5vUjKyUMmYp9My86KbCWhKf9cmyN300hibWTy3WjyQ2MJ+pesvis3mpJtVsWDwtm43 +Zrgf8WcEUBRpWNNkuHxZ40tUJThWn66ZjSSZ4XQFXo1DiDL3/UrzRXKiU2o517KFrsKhy vs6ASET+MbXB0XrU35NAxsT7PJhAHdShsG00GAX7CkOjj6/YVowejhodbKmoUToujhh8mX vgc/QwnrU0J6TkHUE0CdMbmWsFQmy2/0vmQWaKMuDssa5d8IkBEXnmxCf9g2OXREUe2L9N WhWi6L7ha5yD4pkTigrEHK2vtGW/Qtze9HzTTBuVoz1dXtZ6zSl5ykNmm+VcVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637326526; a=rsa-sha256; cv=none; b=bDCXtKM5bLTr61eN5sshOuMinqqeeMeBne4Y9mfHYXy/BT/iauszSTMnmltIkhzmpiR4oS LU18089VZ8sVPe57z9m4LrE74GetnVVrtSic+sjK25K5zLMvfljwA15cTDIk4+pmHfje2r xrT4NXwHGM4FVggbXIQJX4u61M0NGaWviMsuZviCUxsXKiY/QaKaJkjmT6vZB1R4WOF8om HSiTJ7ejnQHZVkeFPvhKaDMrhgdEyTKfkW0+MarnXvYsinocn+z/GsBgsP8Z90jmZrFr4j +AXQzDkr61MKwm4fzZrGMitGnBWr89xNm9phlT+7Pj4s+ErDaqmXS8uTdrX66A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Spam-Score: -3.26 Authentication-Results: aspmx1.migadu.com; dkim=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-Queue-Id: B22879CB3 X-Spam-Score: -3.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: XGUyvdpM1zu1 Hi all! I you specify a default duration of an event, say, (setq org-agenda-default-appointment-duration 60) and specify a time grid, say (setq org-agenda-time-grid '((today remove-match) (800 1000 1200 1400 1600 1800 2000) "......" "----------------" )) Then setting the default duration overrides the grid appearance. I.E. (setq org-agenda-default-appointment-duration nil) (setq org-agenda-time-grid '((today remove-match) (800 1000 1200 1400 1600 1800 2000) "......" "----------------" )) Friday 19 November 2021 8:00...... ---------------- EDV: 9:30-10:00 Scheduled: TODO Stuff Job: 10:00-12:30 Scheduled: PROJECT Book 12:00...... ---------------- unsorted: 13:00-15:00 Scheduled: TODO other stuff 13:39...... now - - - - - - - - - - - - - - - - - - - - - - - - - 14:00...... ---------------- 16:00...... ---------------- 18:00...... ---------------- 20:00...... ---------------- as expected, but (setq org-agenda-default-appointment-duration 60) (setq org-agenda-time-grid '((today remove-match) (800 1000 1200 1400 1600 1800 2000) "......" "----------------" )) Friday 19 November 2021 8:00-9:00 ---------------- EDV: 9:30-10:00 Scheduled: TODO Stuff Job: 10:00-12:30 Scheduled: PROJECT Book 12:00-13:00 ---------------- unsorted: 13:00-15:00 Scheduled: TODO other stuff 13:40-14:40 now - - - - - - - - - - - - - - - - - - - - - - - - - 14:00-15:00 ---------------- 16:00-17:00 ---------------- 18:00-19:00 ---------------- 20:00-21:00 ---------------- caught me by surprise. Even the 2 hour block length setting is overridden. If this should be considered a bug, I don't know. But maybe the manual should mention and describe the relationship between these settings? As the description of org-agenda-default-appointment-duration does not mention the grid at all, I would think the logical improvement would be to let the grid alone and use the default duration as advertised only. org-version 9.4.4 emacs-version 27.2 All the best Detlef