From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#55284: 28.1; TODO Mode - Unable to operate if `calendar-date-style' is set to 'iso Date: Fri, 06 May 2022 10:59:14 +0200 Message-ID: <87czgrdokd.fsf@gmx.net> References: <721fd2dd-0409-fc6f-82c7-315e4bbdfe87@me.com> <83mtfv17p0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22471"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Christos Ballas , 55284@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 06 11:00:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmtot-0005i1-G6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 May 2022 11:00:15 +0200 Original-Received: from localhost ([::1]:47480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmtos-00032K-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 May 2022 05:00:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmtoh-00030L-0t for bug-gnu-emacs@gnu.org; Fri, 06 May 2022 05:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmtog-0005o0-KS for bug-gnu-emacs@gnu.org; Fri, 06 May 2022 05:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmtog-0003UR-JS for bug-gnu-emacs@gnu.org; Fri, 06 May 2022 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 May 2022 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55284 X-GNU-PR-Package: emacs Original-Received: via spool by 55284-submit@debbugs.gnu.org id=B55284.165182756613333 (code B ref 55284); Fri, 06 May 2022 09:00:02 +0000 Original-Received: (at 55284) by debbugs.gnu.org; 6 May 2022 08:59:26 +0000 Original-Received: from localhost ([127.0.0.1]:47111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmto6-0003Sy-5Y for submit@debbugs.gnu.org; Fri, 06 May 2022 04:59:26 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:56057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmto4-0003Sl-IT for 55284@debbugs.gnu.org; Fri, 06 May 2022 04:59:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1651827556; bh=HvjS+Sz/sR64yItv9VZ5mIz2iv4vNfwYtB1khLGN/F8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=iStpfDoHYsjP8Nv9LrdRA/KiT5JGlf/1fMNfl3+1gUNq6zrQe4WFfLMvpVu01Ybwm BYhouT/AgJmtG9/9iXdEeyS9x3dSUl3EiLJmQ0UHEqeTe0kK/Z/Sb+a+zIHJje8TSA k0ismQ2KwI2BKIgPEV1XTfGB/HgkGyG8nHcYJCLs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.127]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mt79F-1o6m4Y3dPt-00tRqg; Fri, 06 May 2022 10:59:16 +0200 In-Reply-To: <83mtfv17p0.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 May 2022 09:44:27 +0300") X-Provags-ID: V03:K1:m4QIxo88Q5xxIn8rzj6CAti2IkGbUeYgnR+0mYFzv2LCOEQ7S62 Mm0ymRGtFaPYk9Ki/yLmctAohWm9BYpDRsd8dh9vt8XaL40gvERcaOFQyxECM0SkzB7V1Tx akO/HC1gTZRTgcICtsS786RjWN8LUtLliTKgsALP6wzR0/SY7Pn/tWsQBLIKTeWN9tyYdEh zX0h1Nh2+P5MJTXXqjVrQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:HA5iSRBLNl0=:JcKs8ZQk6dEQW5cYFRI6W/ KetEA8boRnTfOFrHU6PRXp5ysryTEPFieBlzcChPLlAaLWglxASzjqBKgsh8jYHwXnB4e4eIg H5XyH26K2mJl1RMTIVUOGDPjLNKDIQV7Ktc4mwOejHefCmZJF47HSBgd0CuzvATWg89HMsq/f TGQxHnCSB1K/OMt0qDSvnRZctSCCJTQBXHaRZ24YMMyceDKwHqYqDKS8SsyTQMEi1k8R4uHg0 yoaQGmoQ2vrhQgfj/U/Su0iQvQsE8fY2h8wnxF6TNvFTBo2SXFbh+gVeeY3UXZJq8iWUsLTDr c72lKbWzCImMAuYrkgl3ZKpqI5NP+pAGYcqn/EIZf3j/R5FkFi1Vaal/ttZQV9kg7LSCgZ9Pp v6Ei1qs3M3s8D/JhEZrbGz5FLZDENsJ8rbHulIKBNThHaiRggZKhTjaS+RFrxwJDQeycufsbj pESnoySm86c1SaqrlHnf7SS4iCTrSc3Wexgsq96Sy12tzWTZsUlEMjem6jvBW8HhVBGJpI76w GuNYyiYdiOw2CDuRb/4bQXKUoBbhGtQGJEfW/d8jE/IwqMmKFPjOKczE3M74dVDrd1XSRTegt mLJvZkb/0yg0cl2O177fwk+VgP/MppqqSY8x6IUYw5UiaAhkmMt09JwlBHUGo48D+xt3iKQSl yYC7/D8ajS38RjRMsfx0XZkLhDbL0bCFSjp6kV3CYG9/P2yaHfqCMOECPzuvlaCrkULhSN9h6 Ggt/bT1A4TEr8kYFLs+bYckhPwdqwueOhWngDhctlU0a1yaOxxEYMdxkeGQg0UkyXXICfFd4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231479 Archived-At: On Fri, 06 May 2022 09:44:27 +0300 Eli Zaretskii wrote: >> Date: Fri, 6 May 2022 00:01:37 +0100 >> From: Christos Ballas via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Starting from emacs -q >> (setq calendar-date-style 'iso) >> M-x todo-show -> Test -> Test You left out the prompt for a Todo item; typing an item and RET at the prompt will insert the item into the category with the date header in ISO format. However, the date is not correctly fontified, which is a sign of trouble... >> In the newly constructed buffer type "i i Test2" >> Emacs will now hang until you type "C-g" > > It looks like todo-mode.el is basically incompatible with any > calendar-date-style but 'american'. It also works with the 'european' style, but indeed not with 'iso'. > (Btw, you aren't supposed to set calendar-date-style directly. But > going through the Customize interface, as you are supposed to, doesn't > help in this case, because the relevant todo-mode patterns are > defconst's.) Yes, this is something that's always bothered me (as Todo mode maintainer) but IIRC my brief investigation of the issue way back when convinced me that it was not easy (for me) to fix. I don't use the ISO date style in Todo mode myself and saw no complaints till now, so I haven't tried again to fix it. Unfortunately, I can't afford to do time-consuming debugging and testing now, so if it is possible to fix this bug, I would encourage someone better acquainted than me with the Calendar/Diary handling of dates to do it. Otherwise, I'll look into it when I have the time. One of the issues I remember being bothered by is if someone wants to change back and forth between date styles. It seems that this is not (fully) supported by diary-lib.el (I'm filing a separate bug report about that). If that can be fixed, it might be applicable to Todo mode. Steve Berman