GNU bug report logs - #67203
[PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries

Previous Next

Package: emacs;

Reported by: "Paul W. Rankin" <hello <at> paulwrankin.com>

Date: Wed, 15 Nov 2023 17:29:03 UTC

Severity: normal

Tags: patch

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#67203: closed ([PATCH] * lisp/calendar/diary-lib.el
 (diary-list-entries-2) skip leading whitespace in diary entries)
Date: Fri, 29 Dec 2023 03:43:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 28 Dec 2023 19:42:01 -0800
with message-id <CADwFkmnZzNG3SYAMbeQLwTkd+We3m=2YPFmK_dZy3fPwBwRrMg <at> mail.gmail.com>
and subject line Re: bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries
has caused the debbugs.gnu.org bug report #67203,
regarding [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
67203: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67203
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Paul W. Rankin" <hello <at> paulwrankin.com>
To: bug-gnu-emacs <at> gnu.org
Cc: "Paul W. Rankin" <hello <at> paulwrankin.com>
Subject: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip
 leading whitespace in diary entries
Date: Wed, 15 Nov 2023 21:13:31 +1000
---
When diary entries have more than a single space between date and entry
this is displayed in diary display. This skips the leading whitespace.


 lisp/calendar/diary-lib.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 0d894f1..6806039 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -697,6 +697,8 @@ any entries were found."
                 (setq date-start (line-end-position 0))
                 ;; Actual entry starts on the next-line?
                 (if (looking-at "[ \t]*\n[ \t]") (forward-line 1))
+                ;; We don't want leading whitespace
+                (skip-chars-forward " \t")
                 (setq entry-found t
                       entry-start (point))
                 (forward-line 1)
-- 
2.42.0



[Message part 3 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: "Paul W. Rankin" <hello <at> paulwrankin.com>
Cc: 67203-done <at> debbugs.gnu.org
Subject: Re: bug#67203: [PATCH] * lisp/calendar/diary-lib.el
 (diary-list-entries-2) skip leading whitespace in diary entries
Date: Thu, 28 Dec 2023 19:42:01 -0800
"Paul W. Rankin" <hello <at> paulwrankin.com> writes:

> Sorry for the late reply. I actually stopped using calendar. Twas but a
> brief interlude. I think there's a problem with my patch anyway.

OK, thanks.  I'm therefore closing this bug report.


This bug report was last modified 1 year and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.