X-Loop: help-debbugs@HIDDEN Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: "Roland Winkler" <winkler@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 18 Dec 2011 23:34:02 +0000 Resent-Message-ID: <handler.10323.B.13242512295184 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10323 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RcQEn-0001LZ-Hq for submit <at> 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 <rwinkler@HIDDEN>) id 1RcQEl-0001LR-HL for submit <at> 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 <rwinkler@HIDDEN>) id 1RcQCy-0002lW-UI for submit <at> 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 <rwinkler@HIDDEN>) id 1RcQCy-0002lS-Sr for submit <at> 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 <rwinkler@HIDDEN>) id 1RcQCy-0000MM-1L for bug-gnu-emacs@HIDDEN; Sun, 18 Dec 2011 18:31:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rwinkler@HIDDEN>) id 1RcQCw-0002l1-3F for bug-gnu-emacs@HIDDEN; 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 <rwinkler@HIDDEN>) id 1RcQCv-0002kZ-Vs for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; Sun, 18 Dec 2011 17:31:45 -0600 (CST) Date: Sun, 18 Dec 2011 17:31:42 -0600 Message-Id: <87mxapsbhd.fsf@HIDDEN> From: "Roland Winkler" <winkler@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> 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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: "Roland Winkler" <winkler@HIDDEN> Subject: bug#10323: Acknowledgement (24.0.92; docstring diary-date-forms) Message-ID: <handler.10323.B.13242512295184.ack <at> debbugs.gnu.org> References: <87mxapsbhd.fsf@HIDDEN> X-Gnu-PR-Message: ack 10323 X-Gnu-PR-Package: emacs Reply-To: 10323 <at> debbugs.gnu.org Date: Sun, 18 Dec 2011 23:34:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 10323 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 10323: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10323 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: "Roland Winkler" <winkler@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 19 Dec 2011 08:05:01 +0000 Resent-Message-ID: <handler.10323.B10323.132428189819264 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10323 <at> debbugs.gnu.org Received: via spool by 10323-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RcYDR-00050f-N5 for submit <at> 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 <rwinkler@HIDDEN>) id 1RcYDP-00050X-0R for 10323 <at> 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 <at> debbugs.gnu.org>; Mon, 19 Dec 2011 02:03:02 -0600 (CST) Message-ID: <20206.61360.35778.630450@HIDDEN> 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" <winkler@HIDDEN> In-Reply-To: <handler.10323.B.13242512295184.ack <at> debbugs.gnu.org> References: <87mxapsbhd.fsf@HIDDEN> <handler.10323.B.13242512295184.ack <at> debbugs.gnu.org> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> 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
X-Loop: help-debbugs@HIDDEN Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 02 Jun 2021 07:27:02 +0000 Resent-Message-ID: <handler.10323.B10323.162261881228843 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Roland Winkler" <winkler@HIDDEN> Cc: 10323 <at> debbugs.gnu.org Received: via spool by 10323-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1loLH9-0007V9-Mr for submit <at> 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 <larsi@HIDDEN>) id 1loLH7-0007Ue-8x for 10323 <at> 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 <larsi@HIDDEN>) id 1loLGw-0003CV-K4; Wed, 02 Jun 2021 09:26:42 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <87mxapsbhd.fsf@HIDDEN> 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@HIDDEN> (Roland Winkler's message of "Sun, 18 Dec 2011 17:31:42 -0600") Message-ID: <87a6o87mmq.fsf@HIDDEN> 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" <winkler@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) "Roland Winkler" <winkler@HIDDEN> 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
X-Loop: help-debbugs@HIDDEN Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: "Roland Winkler" <winkler@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 08 Jun 2021 22:45:02 +0000 Resent-Message-ID: <handler.10323.B10323.162319228711178 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen <larsi@HIDDEN> Cc: 10323 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 10323-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lqkSl-0002uE-IE for submit <at> 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 <winkler@HIDDEN>) id 1lqkSh-0002tz-Cx for 10323 <at> 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 <winkler@HIDDEN>) 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 <winkler@HIDDEN>) 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@HIDDEN> Date: Tue, 8 Jun 2021 17:44:37 -0500 From: "Roland Winkler" <winkler@HIDDEN> In-Reply-To: <87a6o87mmq.fsf@HIDDEN> References: <87mxapsbhd.fsf@HIDDEN> <87a6o87mmq.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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?
X-Loop: help-debbugs@HIDDEN Subject: bug#10323: 24.0.92; docstring diary-date-forms Resent-From: Lars Ingebrigtsen <larsi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 09 Jun 2021 10:12:02 +0000 Resent-Message-ID: <handler.10323.B10323.162323351219481 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 10323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Roland Winkler" <winkler@HIDDEN> Cc: 10323 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 10323-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lqvBg-000549-Gt for submit <at> 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 <larsi@HIDDEN>) id 1lqvBf-00053y-Et for 10323 <at> 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 <larsi@HIDDEN>) id 1lqvBX-0002kC-H6; Wed, 09 Jun 2021 12:11:45 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> References: <87mxapsbhd.fsf@HIDDEN> <87a6o87mmq.fsf@HIDDEN> <62165.9663.313205.24767@HIDDEN> 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@HIDDEN> (Roland Winkler's message of "Tue, 8 Jun 2021 17:44:37 -0500") Message-ID: <87o8cfl540.fsf@HIDDEN> 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" <winkler@HIDDEN> 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) "Roland Winkler" <winkler@HIDDEN> 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
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.