From unknown Fri Jun 13 10:20:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Dec 2011 23:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10323@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13242512295184 (code B ref -1); Sun, 18 Dec 2011 23:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2011 23:33:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RcQEn-0001LZ-Hq for submit@debbugs.gnu.org; Sun, 18 Dec 2011 18:33:49 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RcQEl-0001LR-HL for submit@debbugs.gnu.org; Sun, 18 Dec 2011 18:33:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcQCy-0002lW-UI for submit@debbugs.gnu.org; Sun, 18 Dec 2011 18:31:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:36511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcQCy-0002lS-Sr for submit@debbugs.gnu.org; Sun, 18 Dec 2011 18:31:56 -0500 Received: from eggs.gnu.org ([140.186.70.92]:52770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcQCy-0000MM-1L for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2011 18:31:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcQCw-0002l1-3F for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2011 18:31:56 -0500 Received: from essmail.ess.niu.edu ([131.156.1.18]:51009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcQCv-0002kZ-Vs for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2011 18:31:54 -0500 Received: from regnitz (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id pBINViTJ028399 for ; Sun, 18 Dec 2011 17:31:45 -0600 (CST) Date: Sun, 18 Dec 2011 17:31:42 -0600 Message-Id: <87mxapsbhd.fsf@niu.edu> From: "Roland Winkler" X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Maybe this is too pedantic: If one tries to separate a diary entry into the date and the text part, the question comes up: what about the separator (usually some whitespace character(s)) between the date and the text part? The docstring of diary-date-forms says The patterns on the list must be MUTUALLY EXCLUSIVE and should not match any portion of the diary entry itself, just the date component. Originally I thought this would exclude the separator from the date component (so that I had to deal with it myself). But the patterns are designed the other way round. For the regexp matcher the separator is an important part of the date component. So I suggest to modify the docstring of diary-date-forms to say something like The patterns on the list must be MUTUALLY EXCLUSIVE and should not match any portion of the diary entry itself, just the date component. Here the first character following the date itself is considered part of the date. Actually, this is not completely true either, and it becomes relevant if one wants to indent the diary entries for which the `backup' mechanism of diary-european-date-forms applies. If one has the diary entries 18/12/2011$ foo bar 18/12/2011 foo baz 18 December foo bar the first two entries are indented as one might expect it; yet the third one is not indented (i.e., with `backup' all whitespace characters following immediately the date become part of the date) In GNU Emacs 24.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2011-12-14 on regnitz Windowing system distributor `The X.Org Foundation', version 11.0.10706000 From unknown Fri Jun 13 10:20:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2011 08:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10323@debbugs.gnu.org Received: via spool by 10323-submit@debbugs.gnu.org id=B10323.132428189819264 (code B ref 10323); Mon, 19 Dec 2011 08:05:01 +0000 Received: (at 10323) by debbugs.gnu.org; 19 Dec 2011 08:04:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RcYDR-00050f-N5 for submit@debbugs.gnu.org; Mon, 19 Dec 2011 03:04:57 -0500 Received: from essmail.ess.niu.edu ([131.156.1.18]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RcYDP-00050X-0R for 10323@debbugs.gnu.org; Mon, 19 Dec 2011 03:04:55 -0500 Received: from regnitz (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id pBJ831c7004492 for <10323@debbugs.gnu.org>; Mon, 19 Dec 2011 02:03:02 -0600 (CST) Message-ID: <20206.61360.35778.630450@gargle.gargle.HOWL> Date: Mon, 19 Dec 2011 02:02:56 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: "Roland Winkler" In-Reply-To: References: <87mxapsbhd.fsf@niu.edu> X-Mailer: VM 8.2 trial under 24.0.92.1 (x86_64-unknown-linux-gnu) X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) > Actually, this is not completely true either, and it becomes > relevant if one wants to indent the diary entries for which the > `backup' mechanism of diary-european-date-forms applies. If one > has the diary entries > > 18/12/2011$ foo bar > 18/12/2011 foo baz > 18 December foo bar > > the first two entries are indented as one might expect it; yet the > third one is not indented (i.e., with `backup' all whitespace > characters following immediately the date become part of the date) To avoid misunderstandings: Here I was talking about how diary-fancy-display displays the above diary entries. This uses diary-date-forms. Roland From unknown Fri Jun 13 10:20:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2021 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Roland Winkler" Cc: 10323@debbugs.gnu.org Received: via spool by 10323-submit@debbugs.gnu.org id=B10323.162261881228843 (code B ref 10323); Wed, 02 Jun 2021 07:27:02 +0000 Received: (at 10323) by debbugs.gnu.org; 2 Jun 2021 07:26:52 +0000 Received: from localhost ([127.0.0.1]:38597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loLH9-0007V9-Mr for submit@debbugs.gnu.org; Wed, 02 Jun 2021 03:26:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loLH7-0007Ue-8x for 10323@debbugs.gnu.org; Wed, 02 Jun 2021 03:26:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8SfJn0KL2iD4+Ug8VxAbrAi9C+Ebc1R+IEDxlwvngjQ=; b=JIZ2btm1Hhl1IIlgw3yxrhlrpL tTva0z5NbVH28G0Vp6Ggt6qQmnVox/9F6Wl0XfleVL3lGuhG0TrMDf/zI4OIKuGZw5hx1YtnJzuDK JgRpP1aw+y4Ujb4vvPgTJULOdCSSC0brgevaqxLfWwKos4FIKhYeOxaKMUNvwCje3r4U=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loLGw-0003CV-K4; Wed, 02 Jun 2021 09:26:42 +0200 From: Lars Ingebrigtsen References: <87mxapsbhd.fsf@niu.edu> X-Now-Playing: Nobukazu Takemura's _Child's View_: "For Tomorrow (Childlike Mix)" Date: Wed, 02 Jun 2021 09:26:37 +0200 In-Reply-To: <87mxapsbhd.fsf@niu.edu> (Roland Winkler's message of "Sun, 18 Dec 2011 17:31:42 -0600") Message-ID: <87a6o87mmq.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Roland Winkler" writes: > Maybe this is too pedantic: If one tries to separate a diary entry > into the date and the text part, the question comes up: what about > the separator (usually some whitespace character(s)) between [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) "Roland Winkler" writes: > Maybe this is too pedantic: If one tries to separate a diary entry > into the date and the text part, the question comes up: what about > the separator (usually some whitespace character(s)) between the > date and the text part? The docstring of diary-date-forms says > > The patterns on the list must be MUTUALLY EXCLUSIVE and should not match > any portion of the diary entry itself, just the date component. > > Originally I thought this would exclude the separator from the date > component (so that I had to deal with it myself). But the patterns > are designed the other way round. For the regexp matcher the > separator is an important part of the date component. So I suggest > to modify the docstring of diary-date-forms to say something like > > The patterns on the list must be MUTUALLY EXCLUSIVE and should not match > any portion of the diary entry itself, just the date component. > Here the first character following the date itself is considered part of > the date. (I'm going through old bug reports that unfortunately got no response at the time.) This was nine years ago, but the doc string is still the same here. And... I'm not quite sure I understand either the current doc string or the proposed enhancement, really. :-) > Actually, this is not completely true either, and it becomes relevant if > one wants to indent the diary entries for which the `backup' mechanism > of diary-european-date-forms applies. If one has the diary entries > > 18/12/2011$ foo bar > 18/12/2011 foo baz > 18 December foo bar > > the first two entries are indented as one might expect it; yet the third > one is not indented (i.e., with `backup' all whitespace characters > following immediately the date become part of the date) Perhaps something from this discussion of the problem should be added to the doc string? If so, please do go ahead and modify it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 13 10:20:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Jun 2021 22:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 10323@debbugs.gnu.org, Eli Zaretskii Received: via spool by 10323-submit@debbugs.gnu.org id=B10323.162319228711178 (code B ref 10323); Tue, 08 Jun 2021 22:45:02 +0000 Received: (at 10323) by debbugs.gnu.org; 8 Jun 2021 22:44:47 +0000 Received: from localhost ([127.0.0.1]:59989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqkSl-0002uE-IE for submit@debbugs.gnu.org; Tue, 08 Jun 2021 18:44:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqkSh-0002tz-Cx for 10323@debbugs.gnu.org; Tue, 08 Jun 2021 18:44:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50474) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqkSc-0002Up-1H; Tue, 08 Jun 2021 18:44:38 -0400 Received: from [2600:1700:5650:f790::12] (port=37832 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqkSb-0001k9-SD; Tue, 08 Jun 2021 18:44:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <62165.9663.313205.24767@gargle.gargle.HOWL> Date: Tue, 8 Jun 2021 17:44:37 -0500 From: "Roland Winkler" In-Reply-To: <87a6o87mmq.fsf@gnus.org> References: <87mxapsbhd.fsf@niu.edu> <87a6o87mmq.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Wed Jun 2 2021 Lars Ingebrigtsen wrote: > > The patterns on the list must be MUTUALLY EXCLUSIVE and should not match > > any portion of the diary entry itself, just the date component. > > Here the first character following the date itself is considered part of > > the date. > > (I'm going through old bug reports that unfortunately got no response at > the time.) > > This was nine years ago, but the doc string is still the same here. > And... I'm not quite sure I understand either the current doc string or > the proposed enhancement, really. :-) > > > Actually, this is not completely true either, and it becomes relevant if > > one wants to indent the diary entries for which the `backup' mechanism > > of diary-european-date-forms applies. If one has the diary entries > > > > 18/12/2011$ foo bar > > 18/12/2011 foo baz > > 18 December foo bar > > > > the first two entries are indented as one might expect it; yet > > the third one is not indented (i.e., with `backup' all > > whitespace characters following immediately the date become part > > of the date) > > Perhaps something from this discussion of the problem should be > added to the doc string? If so, please do go ahead and modify it. It took me a while to refresh my memories about this bug report. The problem is about how diary-date-forms arranges the splitting of a diary entry into a date (specifying when to display the diary entry) and the associated text (that will be displayed for this date). The current code assumes, indeed, that there is a separator in between these two components of an entry. This separator is given by the last element of each date form in diary-date-forms and the separator is swallowed by the "fancy diary display" machinery for diary entries. This behavior is undocumented which makes it hard to figure out how the predefined elements of diary-date-forms actually work, and this was, I believe, my original motivation for the bug report almost ten years ago. For most predefined date forms, the separator is a single character. For example, given an entry "08/06/2021foo bar", the letter f is treated as separator that is swallowed so that the fancy diary buffer displays the entry as "oo bar". Probably, this undocumented behavior is rarely causing problems for users because it is more common that the first character following the date is a space. Yet worse, the "backup" approach used for the third date form in diary-european-date-forms implies that any non-word characters at the beginning of the text are not displayed in the fancy diary buffer. For example, the diary entry "08 June @John: hello" is displayed as "John: hello" instead of "@John: hello". This may confuse not only elisp coders but also ordinary users of the emacs diary. A cleaner solution was probably that the last element of each date form defined the beginning of the text that will be displayed for this date. However, the current code has existed for many years so that likely users have arranged themselves with its oddities and a better solution must keep this in mind, too. (I haven't figured out why, according to the docstring of diary-date-forms, the patterns defined by different date forms must be mutually exclusive. I'd find it more natural if just the first matching pattern wins.) What do others think about this? From unknown Fri Jun 13 10:20:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jun 2021 10:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Roland Winkler" Cc: 10323@debbugs.gnu.org, Eli Zaretskii Received: via spool by 10323-submit@debbugs.gnu.org id=B10323.162323351219481 (code B ref 10323); Wed, 09 Jun 2021 10:12:02 +0000 Received: (at 10323) by debbugs.gnu.org; 9 Jun 2021 10:11:52 +0000 Received: from localhost ([127.0.0.1]:60538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqvBg-000549-Gt for submit@debbugs.gnu.org; Wed, 09 Jun 2021 06:11:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqvBf-00053y-Et for 10323@debbugs.gnu.org; Wed, 09 Jun 2021 06:11:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Basg2XjyJhVIo8SJ6h8Yo2WUayiH9pEIW9NBYnEX5gw=; b=RmRP/caSOvEadyHs4y+DGOh6Ig rlzJpsteIk8qDB39TYsmb8+bFRkFuVl0MgbE8tvjk84l/lNKE28XrBoLeRKQhCitsTyrY++xDICj6 jB5prxJzhmJPvRn9LGH5gNDPqCdUAlw/rEupESzChE21vIaq4X8dyNuUZAHczbMVNieo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqvBX-0002kC-H6; Wed, 09 Jun 2021 12:11:45 +0200 From: Lars Ingebrigtsen References: <87mxapsbhd.fsf@niu.edu> <87a6o87mmq.fsf@gnus.org> <62165.9663.313205.24767@gargle.gargle.HOWL> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEU4Ly1zVUWLZ0ps Vk2vk4z///9S3c4OAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UGCQoJDdrx2JkAAAGLSURBVDjLrZLR eYMwDITNRwdA0gQyHcCKsgD5sv9MPckm0Ia81Q+B8Fun09mlYE31fZX/BC2BXlco8aeKA2i+6kUP ZghTma+ao+rSFf2V6uqUzzcAefrQvF6B3N3ttjE5dyXiRKzFO4h6xv+IINrQLyll7dt1ByNC6HR0 gJyAPTRCUpn3dLFLfN5AtHtLMBNESEp5UJZQPQCWl/JEe9SEtQ40QCvtnn35BUpWTJW+tgwRbAfY t8xPki1jYeFTRStGy50YNjBMt1tCuAW/b+lLTz14QQXJMHwCmoC+Ka5CPfVQEYN4Rq/0C+DHMptQ 48OVTNT1I3S6dRBt3Qeo6hz5jIpldpKO1MX8VIH5qJPVfTT3iN1ILBwbV6lrB61vJY/QnF/3KqWi xOMpfkzuO3AwFNxeADNMAM30ttZHXY0GMLKYTxV7V8zuO4hTXww35EZVcIRiY8BWprCDXNc4WRgY ABdF0YM5E4STtkcSqax1/yyvinDrlfcxDyk3N1EbpxJRd4A0gfCFJksx9x8oB2aDE5U94wAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNi0wOVQxMDowOToxMyswMDowMMdL10AAAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjEtMDYtMDlUMTA6MDk6MTMrMDA6MDC2Fm/8AAAAAElFTkSuQmCC X-Now-Playing: Tujiko Noriko's _Kuro (OST)_: "Karaoke Theme" Date: Wed, 09 Jun 2021 12:11:43 +0200 In-Reply-To: <62165.9663.313205.24767@gargle.gargle.HOWL> (Roland Winkler's message of "Tue, 8 Jun 2021 17:44:37 -0500") Message-ID: <87o8cfl540.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Roland Winkler" writes: > (I haven't figured out why, according to the docstring of > diary-date-forms, the patterns defined by different date forms must > be mutually exclusive. I'd find it more natural if just the first > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) "Roland Winkler" writes: > (I haven't figured out why, according to the docstring of > diary-date-forms, the patterns defined by different date forms must > be mutually exclusive. I'd find it more natural if just the first > matching pattern wins.) > > What do others think about this? I tried following the logic of the code here (and read the doc strings a bunch of times), and I'm still confused as to why it's implemented the way it is -- it seems pretty convoluted. But we probably can't change the implementation here (without obsoleting the variables and starting from scratch), so I think we should just attempt to document what it's actually doing, as difficult as even that is. :-/ -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 13 10:20:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Jun 2021 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Roland Winkler Cc: 10323@debbugs.gnu.org, Lars Ingebrigtsen Received: via spool by 10323-submit@debbugs.gnu.org id=B10323.162327968229466 (code B ref 10323); Wed, 09 Jun 2021 23:02:02 +0000 Received: (at 10323) by debbugs.gnu.org; 9 Jun 2021 23:01:22 +0000 Received: from localhost ([127.0.0.1]:34849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lr7CL-0007fC-Pq for submit@debbugs.gnu.org; Wed, 09 Jun 2021 19:01:21 -0400 Received: from mout.web.de ([212.227.15.14]:49515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lr7CG-0007et-N8 for 10323@debbugs.gnu.org; Wed, 09 Jun 2021 19:01:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1623279669; bh=7obLo21P2yBBfG8koNDFeeWYtcjSvuijh8tF+Kudhjw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=KCtZN1J8Q3WbbWJ7ihjs/YUZXOW0IQZmjvQY0hUvl5mcMa5KMs7GK3BDin7ZP2IiC +KjHuJtnpFzJtqozTB7GVq3oqpw4mYcrLqZqCMs+4a7PrYXTBb056dlEVTPVMT+si+ IPnvfSCeHwpr2e4/1UaTGxNmllp8iD5/4yNDPwcg= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([88.67.109.158]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LfReL-1lXDu146Jd-00p3ei; Thu, 10 Jun 2021 01:01:09 +0200 From: Michael Heerdegen References: <87mxapsbhd.fsf@niu.edu> <87a6o87mmq.fsf@gnus.org> <62165.9663.313205.24767@gargle.gargle.HOWL> Date: Thu, 10 Jun 2021 01:01:07 +0200 In-Reply-To: <62165.9663.313205.24767@gargle.gargle.HOWL> (Roland Winkler's message of "Tue, 8 Jun 2021 17:44:37 -0500") Message-ID: <87a6nyy764.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:11L/jB1L66C7l1vNe0E9P/wRXXSWKH+ARARxG5C+0iZnbgA9XNt ENIlKdAasxyWkauOknhWNTjc40jfcUxGCsSqRICFTf2v6MMan2Xr9Bc6UAoLFsgCAdwW7v/ 7a9iZ9vDehIcg6EGDnYJ1s68EVGVZVTPWOaL3q+78064gQmt4CWSoBMue//T7JH9b0WNlfM WhbcPmIBmwmCMBQqBNzRQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:e449Jvx0dts=:9KBanUmLFJ50ryKSQWzIBu 5bWxls9LMvgvtuljz9hZDRPzSSLoHPci3QM4bqF0p46mhWQM+skD5ksedB5HOYLHIG6VSGtQ1 uMOwTD78yRiNO+N91voGnESJSJgE7/fpNMLxLfsqRQNowOuG4pua6lIr39nqEf6UNMk8Quott DPl3tjopWGqwiZ1KdsNFRm47/d8sLUSvYgmFDeqWf3DlZHZvOtDQZU4UQTszkzBjdMAMCDS82 ezLYQv9wASwe+7uw8O1klIpZV/b2k8LhctWVKJ2HfqGH8wYiWf8AR4ckILdfW94j2hwzbr4ms IlFhhreRduShYIM2JVOJuyqe5akNhY0ydDQJTsS/KKR86rk6gvGnrdwygqN8qItwZSHloFE95 901ihH9okrumQi4d65E4M29bgo6rtk+Sk2PZK6Mg4r9nw37s/BroBv2dWGDSQvnUbi0BkpY9x WJmU828ydouswIADZ3ZGHDwh5DEsiDzEz1vOxw/px2Av0pWBQT1noxXkU29xBjogw6d7QKgPa m+XH7rgda5cB2ogXe4FtoIkvT2qhjl/gubjNYl9cLBidQvGsxSsC/2GWMPHjB3ht3VQVeU2SW 8Yw9HNJuzyVN6SktTAj5aHpq6HBvnAYloA1CE3ZuQ/LSOyqDVWiFm4Lp2oPRWNe+oqMyu+TIU BsNRu94R3gUFoNmqBnW4TVdxVRHvkjb31zwiPqV7NFdBNLR2y7+dfrn31oHbWvE39EzvCz/JH moSKnq9dDRYnqnp7O2A+g4/XACTDx2Itw9npoNTLU8xtkoC2SLhKzhMEKZa+Hw/x3D1tiq5jF 57z8Y31WzT3rOo0KlLsXipEZnUwx6nSBomwoq6SotQ5KnkkoVXOwEMtgQDm4Mf9pX+zG/tn3o OQ8S2YJAPe6HgdP0FhhjFPoevs3eEGuvAivGDLu2zCTeT8xTyBHlrcWo7HZCVQVrvQe2mqPpb oDBmmIflQp+y7eyIwQHh9wIxJhHp97oGe8/KBgeL5iAr3IJLdLZYC4l8z49p8G8j1dfVbN6Fb LuwafteJJB7HnXlaLgOT8ryp7QeVwTCWkmsqUJfNOKyqX3k/mHHUgUX9c8MPdTbbqu9pbGTdC FTiIffBYxyu2dnpvetVaxi61qh/d4LzmmlOaSYUvJjhR6HdrFIMoAqqjQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) "Roland Winkler" writes: > (I haven't figured out why, according to the docstring of > diary-date-forms, the patterns defined by different date forms must > be mutually exclusive. I'd find it more natural if just the first > matching pattern wins.) With the current implementation that requirement seems to be necessary at least - see bug#7377. Michael.