From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OF8tLAn8imOjwAAAbAwnHQ (envelope-from ) for ; Sat, 03 Dec 2022 08:34:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cJIcLAn8imOrYQEA9RJhRA (envelope-from ) for ; Sat, 03 Dec 2022 08:34:33 +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 50D951988A for ; Sat, 3 Dec 2022 08:34:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1N22-000292-TR; Sat, 03 Dec 2022 02:33:54 -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 1p1N21-00028o-A7 for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 02:33:53 -0500 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1N1z-0000cz-B5 for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 02:33:52 -0500 Received: by mail-pj1-x102a.google.com with SMTP id q15so5856834pja.0 for ; Fri, 02 Dec 2022 23:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=9QIvqr76mNDCQ83Zo/lvl65lhtXl0GZ4CwK1qgAVly4=; b=m3gQikkrjUXSo2VH83LuqWAuFSV/eKg6QYJJOiDpJLbFDO7iK92m1MC4hD84auVKXr 37FK1e0QzMn1KshmIafM1szGiyLQ1YCRLIvoXN/BByvcumhOCSrW3Nv8LT1JMxOG8OGd yrDo7voUoBY1gl6CPLk0i7+N1+LQC1WiWv45uzMLuxj+BswI7KU15nvPpjA/6xWVC2il ysl3GO27/MHdpBFtw8nM5s9yVhQLgESZyl+m/M5oys1C62tcjkzfKy5zllvkZBZyL8KM ZMUD45GNC2mSNyHznFR3sSklIgq2HHu/Tj2NY5pIB7P7pRWZgERX+d6rVHAiu2x5/gRe uyeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9QIvqr76mNDCQ83Zo/lvl65lhtXl0GZ4CwK1qgAVly4=; b=IT6oDEngLQCb8H3l+mStAw131Ip8VyDTOnFg6ECbqG34+ZXii0GYx2LxwLJ1cXtV2T rGxdZ6qKTtJziS/YSYqqAQEB5T3HOWNIEaCALaxJdBF5Z39kKpdfT92v6ry1vwe0DuoW pFxLrC0ljcnVoQ/NefXWaMVN50pJ1VN6/lH2UVJ+fhpmk4T9zt+yWmcEfKA9bMoopG5J x8ej3bN+AQQCMdg08hPalGKcN9DxBvk4p0uq28j6rjb+guDHYJJuKQTBarDGvtL7U6n1 oxeMmSlVHi4HLNoN6vatWy4oc/GRxPEv865KeqjdLtfwzMT4eImvISiKj0nYFH/DMMk5 weLQ== X-Gm-Message-State: ANoB5plG6UwegXtZnMSUf5rB0knL9pxbofy+yMr9goJzBeZwpsj2HEFe A3rx8yU0mxTPlfzt/RJJuKK4R4qbdk4= X-Google-Smtp-Source: AA0mqf6j3yZaR5Wls9pipCCbEbYdBjW/pScggx3+pLnMef+DaDlGTgNvjevyadIrQlbCiwjUQkX6Fw== X-Received: by 2002:a17:902:7585:b0:186:ee56:4a14 with SMTP id j5-20020a170902758500b00186ee564a14mr55397022pll.158.1670052829509; Fri, 02 Dec 2022 23:33:49 -0800 (PST) Received: from localhost ([150.107.26.21]) by smtp.gmail.com with ESMTPSA id c133-20020a621c8b000000b00575cdd7c0adsm6144555pfc.80.2022.12.02.23.33.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 23:33:48 -0800 (PST) User-agent: mu4e 1.8.11; emacs 30.0.50 From: Payas Relekar To: emacs-orgmode@gnu.org Subject: Re: [BUG] Add option for category to be derived from #+TITLE instead of file name [9.6 ( @ /nix/store/jv2kmcbm79k4g6i778hblw98l0pxxghf-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.6/)] Date: Sat, 03 Dec 2022 13:01:47 +0530 Message-ID: <875yetdjqd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=relekarpayas@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670052873; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9QIvqr76mNDCQ83Zo/lvl65lhtXl0GZ4CwK1qgAVly4=; b=KhFa0+UE8cBoqgeGlYn7YY0DigPgDl9ULU9zdQtAo2p5rbmtg5C87kE2LCTfGo/0aQ+YtY YyCEaTXDaMAa6pDYcaTqAjwfNppaP1A08HNQUgbY3MyDUkHimH8ySJZQYPaBcDoE76RT7r 7qiGh+oQUs3EuYMjqVP4dp0OgEci3ivparmbSXGDw9xRpKOFIgVz1wZxs+zcz4oqc/3KrH Vk0YfazsWEZrSUA2WXCWIzJ9r2rLY4NubYu97MUNIDbNDjIoK13gdby0AeXWNo81OmtD93 OYzGQyADuXjEMDFo1Jk6Q2e2rCcynlxMiBF0HFUfXuOQFKmZkHLx8JbD51mZSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670052873; a=rsa-sha256; cv=none; b=pehZkaJvG3QrUggBKTUWNphTDWyR80L+55DW1Gi0hLpErbvjByTsgW2FNdDMnmDBS/oxiV MaGerNR95zq9q2VX8eBb/TOmZXUhkTC0E3YACPJi0V6KQYH8f/8pXNzyT43p+EjZpUb2se oKb2IB82aJ6ny4ayVnyY5gMK1TpG2WEzktR6BlvMQhTj7+BQAFnWBGdedQeWNuLWFckEKE fDJMJp8tv63BCdvpVxXH/CMbwSzS74SBfI8d0R7gwT7407wAw3WAU90kfcSGy5OzXNXXnF 9eKxgHsLzrIz1G5POaw2pFwgRcP/HGQ28DcYZXvMi26xhRWkvZY22dLneZfF4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=m3gQikkr; dmarc=pass (policy=none) header.from=gmail.com; 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=pass header.d=gmail.com header.s=20210112 header.b=m3gQikkr; dmarc=pass (policy=none) header.from=gmail.com; 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: 50D951988A X-Spam-Score: -3.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2TyNU/nSGK0Z Payas Relekar writes: > After discovering categories > (https://orgmode.org/manual/Categories.html) I'd like to use them > everywhere because it makes agenda cleaner. But currently, it has only > below options to get this value (in order of precedence, highest to lowest) > > - #+CATEGORY property (if present) > - file name > > While I can set the property in my capture templates, it will only take > effect on newly created files and will not retroactively apply all the > previously created ones. > > As such, I'd like to propose adding variable to allow user to specify > whether #+TITLE property should be preferred over #+CATEGORY. The > default can continue as is, but if the user chooses to perfer title, > order of preference will look like (highest to lowest): > > - #+TITLE (if present) > - #+ CATEGORY (if present) > - file name Actually this is a mistake. It should always prefer explicit property (#+CATEGORY) over implicit (#+TITLE). So the order should look like (if the user modifies the variable, highest to lowest): - #+CATEGORY (if present) - #+TITLE (if present AND if user sets the variable) - file name Apologies for confusion. Thanks, Payas --