From: "Paul W. Rankin" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 67203@debbugs.gnu.org
Cc: "Paul W. Rankin" <hello@paulwrankin.com>
Subject: bug#67203: [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 [thread overview]
Message-ID: <20231115111420.25018-1-hello@paulwrankin.com> (raw)
---
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
next reply other threads:[~2023-11-15 11:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-15 11:13 Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-12-15 1:11 ` bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries Stefan Kangas
2023-12-29 2:50 ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-29 3:42 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231115111420.25018-1-hello@paulwrankin.com \
--to=bug-gnu-emacs@gnu.org \
--cc=67203@debbugs.gnu.org \
--cc=hello@paulwrankin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.