From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QEE5O5dK6GX9EwAA62LTzQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 11:51:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QEE5O5dK6GX9EwAA62LTzQ (envelope-from ) for ; Wed, 06 Mar 2024 11:51:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GNGfhHzZ; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709722263; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=wW5UEuz3sEL/EGw6tGO4OPb4FzJlNx/VuAIIzjph8BQ=; b=h2pROYI5r9vM4iDiLfzCs5h1aiy+MMSIggpYU+MHdqOnSwRdqn1lFtJs1T7d82Qgs5xGAa ayvuRGyQUSUJGHAm6CtNKqalau3Cm9V75ynzoPOIvfNcL5s/jBA/jZs8HFkpdpkO1ZIWZZ tZQIbyxn1mRwttVNVB8LVbSuw4zl58chEow6YlyGi0o74eajEy4kbLxGoNGWT7LnxaBzUh ZI4rBP6yO7fA8rMmQd57zCBh4daXLNjU8cwzqnR2q3E/bcv1SRqcetcx8jeo9jWpDJ4581 mTKG7ZQPepaso7hAwa3Ln39CMn2VGnPs1YvAhxP7Rird8WwmSJot82pO4RVAKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GNGfhHzZ; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709722263; a=rsa-sha256; cv=none; b=WEqQ+DMQf22hTJuc1ptRNvc08s7EWd6KVSO5y64fBEtauUDrLTpMJswiewYxPymylROLmu +252AvX5nnXQynxNjjiHhJ/8Ju4OjnoxZy1C/eseQ96H0/cjwtCrpI7+OAb5SgGyiOjUnK jJCML4rF+uLquacsRMWOeAAeIy7BMQmFuSls6ste9zB/FShmPU8/DKdci3hSPR2o6NtWtf lwy3Op2a52pgdKyT06sGaGxwJJTXdu3TVNSOAcul4fMLG7NydGyEtkMCYCBWkzZWdEtNHM oInbY2ka5GhdidUhwzTIJhEx/xxl+bRpjv0vvi9B0iX0R7rMoF+wEFAv0xHbFw== 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 C52E03FAE3 for ; Wed, 6 Mar 2024 11:51:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhoqY-0005yW-Dk; Wed, 06 Mar 2024 05:50:03 -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 1rhoqR-0005yO-Mq for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 05:49:55 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhoqP-0008Oc-5n for emacs-orgmode@gnu.org; Wed, 06 Mar 2024 05:49:55 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BB3CA240106 for ; Wed, 6 Mar 2024 11:49:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709722186; bh=NPPF291MiQzbQKpNGBqOa0pIfE3Zu7yZ/u44kh59aKg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=GNGfhHzZOP0Cm8DFbRnNeQyWLlfW03OcfJgmBCcnbl2KblN6K4TGEj5tBa3uocKdv uIlFiPLaHay/+xFmDb9ualAAt2uQf2r2e/mBugE+x0SvfxcNb+vwD0zB9cdxYjcB/8 +H3PIE+u5lgrLQvAFTmuxhOHfs9aF3OEL28PhC+nGKJ27+ZcGcce+2hjFqhEdg84Ll aYpoP4ChAP6kFlHDFw2007ekQIC3UL16UVXz2bRNHQ5Mfwl4q5MOnJcDFmXFFWfvUK UPbiHro7P5sQ7WiPamiH9pFrSbopC2cBk/KInV9Ui/vNpVJJVlrycL6rEBvNdyMcLf WvY/d+1FUqQbQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TqThn6cc4z6trs; Wed, 6 Mar 2024 11:49:45 +0100 (CET) From: Ihor Radchenko To: Slawomir Grochowski Cc: emacs-orgmode@gnu.org, t_leitner@gmx.at Subject: Re: [FR] multiple column view definition In-Reply-To: <8734t4lji9.fsf@gmail.com> References: <87cysa0zed.fsf@gmail.com> <87r0go4zr2.fsf@localhost> <8734t4lji9.fsf@gmail.com> Date: Wed, 06 Mar 2024 10:53:50 +0000 Message-ID: <87il1z3a2p.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Spam-Score: -6.66 X-Spam-Score: -6.66 X-Migadu-Queue-Id: C52E03FAE3 X-Migadu-Scanner: mx11.migadu.com X-TUID: BUkszWGfNh6z Slawomir Grochowski writes: >> It looks like you are asking for a way to choose between multiple column >> specs when building column view. And that you have a very specific idea >> how to implement it. However, the details of the idea are elusive to me. >> May you elaborate? > > Sure. > > We have two COLUMNS definition: > > * 2024 > :PROPERTIES: > :COLUMNS: %ITEM(B) %TEST(B column) > :COLUMNS: %ITEM(A) %TEST(A column) > :END: This is ambiguous in Org mode property syntax. You cannot specify property multiple times like this. No wonder you are getting undefined and unexpected behaviour. > ... > Or maybe someone has a better idea how to implement the functionality > 'multiple column view definition'? What you might do is hack `org-columns-get-format' to not default to `org-columns-default-format', but instead ask user about the column format to be used. For example, you can utilize `org-property-get-allowed-values' and prompt user about the column format to choose. Then, COLUMNS_ALL property may store multiple allowed formats like: * 2024 :PROPERTIES: :COLUMNS_ALL: "%ITEM(B) %TEST(B column)" :COLUMNS_ALL+: "%ITEM(A) %TEST(A column)" :END: -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at