From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qD30AgZlt2Yf5AAA62LTzQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 13:03:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qD30AgZlt2Yf5AAA62LTzQ (envelope-from ) for ; Sat, 10 Aug 2024 15:03:02 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NF9T8raI; 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=1723294981; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6qDzr63iS0EvZaxJgv3KkBrGE0whx/sl8kncW+USRHA=; b=XSyhyKeScQE+VS9Tma8CJONHtLcJmRBei12JQkQ4fsztUtZgzgblDhCbfteexr9+a61NPP 0eLqRys76kgZb2aqoJrf4oN2dtZ8+kciTKtt0c9NJn96WkoPZjhUqUDtFKxkWzsDZijtHD z4ohT3BfuzQJLRxJaF/BMxiIsIUor7dbVVacCrwfozPb1EZGXXUaDeDd0kct2VIdg8HoVs NYolloQDPXo/u8uKohoMsxkJm+02DZW2cbdR+nkPfFmivULDdKAQviNqZJQBOPLEZCrJTS TFdLef4dLAqIzlJIL8v3UCpmSKxroMPdcvNcynUjobrwqSwFFJRY2tq4djgccg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NF9T8raI; 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=1723294981; a=rsa-sha256; cv=none; b=Mu4mVbp2nd81QrDXpmq511BzDGvo3cpkoR4rn2O0gLifcAt6w2NX5RmPxwsNYo3xF/F4zg soXgEbxxjWmUjTITvgIXQUsHRAgB2ZkraPQT6v4BMEkCSIIz9xnFndbg4eOPi4usTxbFif JXgxZz88XDO/IkhOVOc2HDMeoi0e/H01z6lWGOsinMNDbWynkeDzv65x8HYizoYBMF22mX XfuEc2K92xZh/G8sfrBEQGNJ8wD9SCSjfkj9l2DipIDebqS81hDdAW1k9AL1//82m166ri rLuuHZ+YcdlC7PaULLZI+WHU6Z/1EcJCmh+qbaaUV7tmab6IFF9F5T6gqBakNg== 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 D02A625AB7 for ; Sat, 10 Aug 2024 15:03:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sclje-0003uG-Cx; Sat, 10 Aug 2024 09:02:18 -0400 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 1scljZ-0003ti-VM for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 09:02:13 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scljX-0001gB-CS for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 09:02:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 09FDD240027 for ; Sat, 10 Aug 2024 15:02:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723294927; bh=6qDzr63iS0EvZaxJgv3KkBrGE0whx/sl8kncW+USRHA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=NF9T8raI37Z9R/zSU1QyReM4X6BbnwbYDV677Eizwu781er/oAUOhvP+r9hhYRCzs NyeATvqou26QpBuZMbwoPxze67DPnF985q2B99mQ5joWWZi2B3D9zYyaE3wq1hqh/X uLMFvPSlsSZ7nLVqSsnb+yWIP6GjUEqVDEo0bvttKNoNQL3eWyfYSVqmuEnmq9P47k plsc6cUQBQYCWEjBXZwVnZlTNuo52azKgkNKCT98qTBEpcH1rpuoJ1C5T3SOG6CsHd D26UHZ/0vPPQy40VBlqCB2gXzqxFNI56ZBCGg/nMy6Abke+Gdy5XCH8S4V6j4fLwnI J47/DYZQrvLBQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wh1C23rGdz9rxB; Sat, 10 Aug 2024 15:02:06 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C5=82awomir?= Grochowski Cc: emacs-orgmode@gnu.org Subject: Re: [FR] org-colview.el, add annotation for functions summary-types In-Reply-To: <87plqiewa6.fsf@gmail.com> References: <87plqiewa6.fsf@gmail.com> Date: Sat, 10 Aug 2024 13:03:18 +0000 Message-ID: <87r0aw34yx.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.67 X-Migadu-Queue-Id: D02A625AB7 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.67 X-TUID: psSxRQkd5Bs3 S=C5=82awomir Grochowski writes: > When the user wants to add a new column (or edit an existing one), he > executes the command `org-columns-new'. Then he can enter or select a few > 'column attributes' (see in manual https://orgmode.org/org.html#Column-at= tributes-1). > One of the attributes is "SUMMARY-TYPE". This attribute can be selected > from the list of very enigmatic symbols such as "+", "$", "X" > which do not convey any information to the user. So, I have prepared a > solution that will address this issue. > > For each symbol, the 'docstring' of the function assigned to that symbol > will be displayed. For example:=20 > "+ -- Compute the sum of VALUES."=20=20 > "$ -- Compute the sum of VALUES, with two decimals." > > What do you think about this solution?=20 I like the idea. > * org-colview.el (org-columns--first-line-docstring): add function that > retrieves the first line of function's docstring. > I have not found a function that would do such a simple thing, it seems > to me that such functionality is often used but there is no special > function for it? I couldn't find one, so I wrote my own. But it is a > general-purpose function and should not be located in org-colview. See `help--symbol-completion-table-affixation'. I'd also prefer using a proper completing-read API instead of `completion-extra-properties' - by using `completion-extra-properties', we disallow users from utilizing this variable. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at