all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries
@ 2023-11-15 11:13 Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-12-15  1:11 ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-11-15 11:13 UTC (permalink / raw)
  To: 67203; +Cc: Paul W. Rankin

---
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






^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-29  3:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 11:13 bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-15  1:11 ` 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

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.