From unknown Sat Aug 16 16:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries Resent-From: "Paul W. Rankin" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Nov 2023 17:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 67203@debbugs.gnu.org Cc: "Paul W. Rankin" X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170006929626529 (code B ref -1); Wed, 15 Nov 2023 17:29:03 +0000 Received: (at submit) by debbugs.gnu.org; 15 Nov 2023 17:28:16 +0000 Received: from localhost ([127.0.0.1]:53574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3JgV-0006to-Ah for submit@debbugs.gnu.org; Wed, 15 Nov 2023 12:28:16 -0500 Received: from lists.gnu.org ([2001:470:142::17]:49592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3JI3-0005xa-6x for submit@debbugs.gnu.org; Wed, 15 Nov 2023 12:03:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Dr7-0005VT-R5 for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 06:14:49 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Dr3-0002eF-67 for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 06:14:49 -0500 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=ez05xnRw7lssyapE90EzuKp1jHxXcQnl7on3RY48/l7WrQUMy1NkpNgMLKDs6b+RbPJBvus+lNxEeR74ExyQcfzjx8IO8wn7lXrNtaZE01PHfukxZlwdUU/oVYFV83c/HzJEzv9N+NEbxzZeIu23arBcs0XG26iaCeLACu9DD+odIfRdEMT0lzvHvu6xtKQGfD1n0KY+X8Iy/LmceRdY/Be4PJ0p1LENlTNLIedZ10DS5N8jUKgyWllP0vrPpOzdKW3ynRuchI7/zvvKPfSJe1dwGU4e9g5h2oaAyi3iNCjyLeJzdveLVSB68Xof3+2LHkghcJAt3HVCCumXfMiiWQ==; s=purelymail1; d=paulwrankin.com; v=1; bh=G0uVuK5AH3IFIXQr42tIAqeivCX5wuqTdAznQ645aFM=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=VRmjMRjcDCs+0UwtLN/kMw6QyWgMTNpiwpAJHJo8VNhW4qKHTLc1K19o2TINGGZeC3XNsc8ZuCOP/shKlIIFTH6HsOog6UWQwane0Y7hTV6bqTXe8dClILZUFtmZ4n6JHeUG7wdkt9VGaF2wL8rjz0dWzhGgLeXxO/cvV9oDNIHMigWXrJlOv7u2mhwpuW1pUCsQ38zruIFAVo0pFVksZgJqSXEf8KAmYuNCCXamABLx020NjTLL1LbHeixvSyxdpnQSntoKfwVn/3DT/NcCgzfcH+KtDCaS4V4wgEClGInDSkjgZauUwKI09wCdVdl++voIf4qdYd0XAsnkUrjncQ==; s=purelymail1; d=purelymail.com; v=1; bh=G0uVuK5AH3IFIXQr42tIAqeivCX5wuqTdAznQ645aFM=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: bug-gnu-emacs@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1619336295; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 15 Nov 2023 11:14:27 +0000 (UTC) From: "Paul W. Rankin" Date: Wed, 15 Nov 2023 21:13:31 +1000 Message-ID: <20231115111420.25018-1-hello@paulwrankin.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Content-Type: text/plain; charset=UTF-8 Received-SPF: pass client-ip=34.202.193.197; envelope-from=hello@paulwrankin.com; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --- 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) --=20 2.42.0 From unknown Sat Aug 16 16:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2023 01:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 67203@debbugs.gnu.org Cc: "Paul W. Rankin" Received: via spool by 67203-submit@debbugs.gnu.org id=B67203.17026027028077 (code B ref 67203); Fri, 15 Dec 2023 01:12:02 +0000 Received: (at 67203) by debbugs.gnu.org; 15 Dec 2023 01:11:42 +0000 Received: from localhost ([127.0.0.1]:51303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDwju-00026C-3j for submit@debbugs.gnu.org; Thu, 14 Dec 2023 20:11:42 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:57464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDwjs-00025x-G1 for 67203@debbugs.gnu.org; Thu, 14 Dec 2023 20:11:41 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-54c7744a93fso140343a12.2 for <67203@debbugs.gnu.org>; Thu, 14 Dec 2023 17:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702602695; x=1703207495; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=0UWRKtUUyooEISi4GHXikrIyDNKqNvAiH9cW/ICkd3w=; b=QOPEoFCN7zPswcsFoybETqLmXKarVRvHbe2g79XeAdsb8OW6Tf4X609Scoc9/n22lu VQhACO/FzuWLQQQGJUli9qjF4tva16qU9JY8PNcRjlxbcktlR1GwZzqu1MpLQywoEKaw 4LljciiCduO7Tknq3oufAnraLFyVTHINJkQsDaqCgDzwsIeTgHoCZeLcsYn3GDGaBi93 HZI14qmuX9CUrIuEQdTQmbU1/jynwMIx7LKFeKROKgh/ujEhIbVPL0D4tXSWlJb0pzbu 0YcHDFnOFyj8I16y8cr9E14hisGxy/LLmfTQVSgEEtugkj7HtkMYBghQEvnn+iGsP1rI z00Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702602695; x=1703207495; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0UWRKtUUyooEISi4GHXikrIyDNKqNvAiH9cW/ICkd3w=; b=mS37Kuvq1k83597HoxyaQHsEtkFXypLP+uAUZudBx3w1SU+JMmgtQUL+1KKG8CFdFG s0exQC+vSky582Xvhw1+C+kMxMYDxopJmWaz8TakbZlTpbKutArJfZzmYDP+6b8kRTKX ywyLDqGVUC8S//GXn911ip46Nnr6vVysUYymZQVXVJb3ZUY+ES3MvEj7ghbu/TgvFFGa +fKhrDUGXa3+lL71fdJ4vz3VBO3eWp+U+z1M7ZP2M3w7o8roo+ytEMDEjfNRVpFihOBp M0+4mfKnS+hwrlxakguGEcZ/Y5eIGOF8YhAVQ4WustWd311nDWptg2viCDnsOwgYcutL DADQ== X-Gm-Message-State: AOJu0YxnUPV+M9MIzsEGes95RGbxcZFzVBSkUDIRQc5zZTw6F0bXjiyp B7ekK4E6KCzLqzdkoEg/ErN2e7gV03h40f57RaV44dvlM34gvw== X-Google-Smtp-Source: AGHT+IGyP6hJ/Fjoac5ojtbzqoIQetlO7p5RYLM1BOsMCWe5/CL63zY69WLlVuwGkEntsoxZfqzKxU9zAWijXYwQ0rA= X-Received: by 2002:a50:8a9d:0:b0:54c:f342:ea32 with SMTP id j29-20020a508a9d000000b0054cf342ea32mr6493887edj.76.1702602695061; Thu, 14 Dec 2023 17:11:35 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 14 Dec 2023 17:11:34 -0800 From: Stefan Kangas In-Reply-To: <20231115111420.25018-1-hello@paulwrankin.com> References: <20231115111420.25018-1-hello@paulwrankin.com> MIME-Version: 1.0 Date: Thu, 14 Dec 2023 17:11:34 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Paul W. Rankin" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > --- > When diary entries have more than a single space between date and entry > this is displayed in diary display. This skips the leading whitespace. Thanks. Could you give examples of a file with and without this whitespace, and instructions for how to test your change? I don't use diary much myself. Please also always send patches as attachments, formatted by git format-patch -1 Bonus points if you could also provide unit tests for this stuff, but that's optional since this library currently lacks any. > 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 From unknown Sat Aug 16 16:54:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries Resent-From: "Paul W. Rankin" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2023 02:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: 67203@debbugs.gnu.org Received: via spool by 67203-submit@debbugs.gnu.org id=B67203.170381827610105 (code B ref 67203); Fri, 29 Dec 2023 02:52:01 +0000 Received: (at 67203) by debbugs.gnu.org; 29 Dec 2023 02:51:16 +0000 Received: from localhost ([127.0.0.1]:40549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJ2xw-0002cu-Df for submit@debbugs.gnu.org; Thu, 28 Dec 2023 21:51:16 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]:60684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJ2xr-0002cd-HL for 67203@debbugs.gnu.org; Thu, 28 Dec 2023 21:51:14 -0500 DKIM-Signature: a=rsa-sha256; b=lqmz8eZ0ujlMXGoJVNSVaOL0LN0ZOLnj1HRhFeYzSkyQZWvwj76pqVLlRIPmOrA5pMMabA1Hnn1nJoMGfDDURpXJ5eFUPMtaxfLOins0KznWLh7VZrTWlAKDNGuJG3dTI9ZgB6UGAQtnOHTHtwGN9uaZ8odYHE+XpEkqPhMQquCVstUdU8+SIq/5ne1NcCkgWXK2Qrf2xS9o24oX5xXaFwJmvAnckF97qlaK409RW9v5p7yz3jTiTK/39aK19z1wUDknPpw4q64UZaHtjp2wONeLtpX+ONp9zZhAzIOIZiwuuolF5uKL70CbK+U1qGjR7C6CbPbu2Tbe7VVtnXm7FQ==; s=purelymail1; d=paulwrankin.com; v=1; bh=5Ssg2Ge26+O4iT7cO+GZ/DTty+nzRD789rgjFkgedGs=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=Z83BpawbehqK//Ucc5iyB/sEcyyVwulTxHIlVOeKp/6ppEv7tauYb4dEB4c7Jv8BBPEomPp5LrovVG5pAwmrX7/X0VG8HKdbkYMCiZWMwY4CsOZmqRDcNllVlnKgUXoqVtjGozc8VDRUMXhQokl1xmp7P/8WcJjhO0944UzJypJRdXUSbDLNZwBSjW6MvlUm+yXpXKh71A123lt9ln2636jSuu54RE30JcsABZxrRcBxvvVsMb0iYXZDbsmESKLKVbRFcOXbLBa9id35WcMuMLs0FHbZCdIP7XM13hOOMPPxLAkwfwpJqKcxjZ+8OquvpzNDPREpf1XJQj2DJHrleg==; s=purelymail1; d=purelymail.com; v=1; bh=5Ssg2Ge26+O4iT7cO+GZ/DTty+nzRD789rgjFkgedGs=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: 67203@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPA id -1886097281; Fri, 29 Dec 2023 02:50:48 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 29 Dec 2023 12:50:48 +1000 From: "Paul W. Rankin" In-Reply-To: References: <20231115111420.25018-1-hello@paulwrankin.com> User-Agent: Purely Mail via Roundcube/1.6.5 Message-ID: <0dd8c7c7e81f218c204ee862948fc910@purelymail.com> X-Sender: hello@paulwrankin.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. On 2023-12-15 11:11, Stefan Kangas wrote: > "Paul W. Rankin" via "Bug reports for GNU Emacs, the Swiss army knife > of > text editors" writes: > >> --- >> When diary entries have more than a single space between date and >> entry >> this is displayed in diary display. This skips the leading whitespace. > > Thanks. Could you give examples of a file with and without this > whitespace, and instructions for how to test your change? I don't use > diary much myself. > > Please also always send patches as attachments, formatted by > > git format-patch -1 > > Bonus points if you could also provide unit tests for this stuff, but > that's optional since this library currently lacks any. > >> 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 From unknown Sat Aug 16 16:54:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Paul W. Rankin" Subject: bug#67203: closed (Re: bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries) Message-ID: References: <20231115111420.25018-1-hello@paulwrankin.com> X-Gnu-PR-Message: they-closed 67203 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 67203@debbugs.gnu.org Date: Fri, 29 Dec 2023 03:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1703821382-12967-1" This is a multi-part message in MIME format... ------------=_1703821382-12967-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip le= ading whitespace in diary entries which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 67203@debbugs.gnu.org. --=20 67203: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67203 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1703821382-12967-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 67203-done) by debbugs.gnu.org; 29 Dec 2023 03:42:13 +0000 Received: from localhost ([127.0.0.1]:40569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJ3lE-0003Lw-Lw for submit@debbugs.gnu.org; Thu, 28 Dec 2023 22:42:12 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:42039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJ3l9-0003LP-Sx for 67203-done@debbugs.gnu.org; Thu, 28 Dec 2023 22:42:11 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5534dcfdd61so11316332a12.0 for <67203-done@debbugs.gnu.org>; Thu, 28 Dec 2023 19:42:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703821321; x=1704426121; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=6LAQqYousvpRJ4pZs5PVsPSHNf18dlCwjgWEowaHvrM=; b=JRIS0JMwO4UaiyIN83axx+9T7VVyUolUMrLFewVS1UJNu6L2IowONb+FbHoxNJcd5q hrTGKFVnHzvCsMltdeXvks0yPG5OCNySh10U3AUp6t1eJjGmIBBU2f/8TKYxWXRJv0pC tSMyQlxxXXVeBTunAY5XVqkcUXizz0rcy+yf8ZHAePxvmQEWYcQ2CGFKKIB9AoXD7QNw EGu/Cyq+Vn4B8fMih8+DK1J8cMDFUI6qm9Iddw7OYEjt0kc40HvLb4E276szrCRlEm9X CZejCYngiShxkmZKo09hqFRLq9Ap1P+if+PrJhBPLOaXm2N9s8wCZTzjSjrD3yjsNOi4 9PsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703821321; x=1704426121; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6LAQqYousvpRJ4pZs5PVsPSHNf18dlCwjgWEowaHvrM=; b=TYhwOuDXov+cjjnKuB1TGEQvXi/bKXlGvPkwb+kLWUbbPAi9T/ZlARaRQaYKxGM7MM r4CfXLVz8KvDUARgjwHw405FISV2qffmcbFpeOQRGz1razIwJymvyemJs4nsVY0/h4Hb 2flZVKWxOraS0OZaDEE9SAQ2VBP8XRgPLaGFL/TfH2t0BVYEcjCb9+PID8wRPL9JE5Oq zaSuCKXi5YxIThRboJBNGBaLuhV5kwDrcQhcfjfExT2aahuHM4b31Avn2doe0lrXhLF8 S3pE7z6pTqce9ZeDzT1ndjHOc1EOZRqgElI5IDHt/7RHOxLX49kq3wzHCTfy2yx9R1f0 cjLw== X-Gm-Message-State: AOJu0YydJZBlyiMJmHeDEYrdgYRgXVt7SGhCA4RBU0nqLXI2MelhtVUK nidjOHMatnnVr7AbhNF52u1sX6qXxceaQV4LlPo= X-Google-Smtp-Source: AGHT+IEjIw3YI7QC+vJxkW9RSC7J2zUq/e1Q6KSu9zMDJ/KuCMCW3VZoPIFKfnRRJuxXUYlNQiEWMU048Pu9D7Ioe4k= X-Received: by 2002:a50:9e0e:0:b0:554:32ec:eada with SMTP id z14-20020a509e0e000000b0055432eceadamr9140878ede.18.1703821321428; Thu, 28 Dec 2023 19:42:01 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 28 Dec 2023 19:42:01 -0800 From: Stefan Kangas In-Reply-To: <0dd8c7c7e81f218c204ee862948fc910@purelymail.com> References: <20231115111420.25018-1-hello@paulwrankin.com> <0dd8c7c7e81f218c204ee862948fc910@purelymail.com> MIME-Version: 1.0 Date: Thu, 28 Dec 2023 19:42:01 -0800 Message-ID: Subject: Re: bug#67203: [PATCH] * lisp/calendar/diary-lib.el (diary-list-entries-2) skip leading whitespace in diary entries To: "Paul W. Rankin" Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67203-done Cc: 67203-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Paul W. Rankin" 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. ------------=_1703821382-12967-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Nov 2023 17:28:16 +0000 Received: from localhost ([127.0.0.1]:53574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3JgV-0006to-Ah for submit@debbugs.gnu.org; Wed, 15 Nov 2023 12:28:16 -0500 Received: from lists.gnu.org ([2001:470:142::17]:49592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3JI3-0005xa-6x for submit@debbugs.gnu.org; Wed, 15 Nov 2023 12:03:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Dr7-0005VT-R5 for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 06:14:49 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Dr3-0002eF-67 for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 06:14:49 -0500 Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=ez05xnRw7lssyapE90EzuKp1jHxXcQnl7on3RY48/l7WrQUMy1NkpNgMLKDs6b+RbPJBvus+lNxEeR74ExyQcfzjx8IO8wn7lXrNtaZE01PHfukxZlwdUU/oVYFV83c/HzJEzv9N+NEbxzZeIu23arBcs0XG26iaCeLACu9DD+odIfRdEMT0lzvHvu6xtKQGfD1n0KY+X8Iy/LmceRdY/Be4PJ0p1LENlTNLIedZ10DS5N8jUKgyWllP0vrPpOzdKW3ynRuchI7/zvvKPfSJe1dwGU4e9g5h2oaAyi3iNCjyLeJzdveLVSB68Xof3+2LHkghcJAt3HVCCumXfMiiWQ==; s=purelymail1; d=paulwrankin.com; v=1; bh=G0uVuK5AH3IFIXQr42tIAqeivCX5wuqTdAznQ645aFM=; h=Received:From:To:Subject; DKIM-Signature: a=rsa-sha256; b=VRmjMRjcDCs+0UwtLN/kMw6QyWgMTNpiwpAJHJo8VNhW4qKHTLc1K19o2TINGGZeC3XNsc8ZuCOP/shKlIIFTH6HsOog6UWQwane0Y7hTV6bqTXe8dClILZUFtmZ4n6JHeUG7wdkt9VGaF2wL8rjz0dWzhGgLeXxO/cvV9oDNIHMigWXrJlOv7u2mhwpuW1pUCsQ38zruIFAVo0pFVksZgJqSXEf8KAmYuNCCXamABLx020NjTLL1LbHeixvSyxdpnQSntoKfwVn/3DT/NcCgzfcH+KtDCaS4V4wgEClGInDSkjgZauUwKI09wCdVdl++voIf4qdYd0XAsnkUrjncQ==; s=purelymail1; d=purelymail.com; v=1; bh=G0uVuK5AH3IFIXQr42tIAqeivCX5wuqTdAznQ645aFM=; h=Feedback-ID:Received:From:To:Subject; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: bug-gnu-emacs@gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1619336295; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 15 Nov 2023 11:14:27 +0000 (UTC) From: "Paul W. Rankin" To: bug-gnu-emacs@gnu.org 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 Message-ID: <20231115111420.25018-1-hello@paulwrankin.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Content-Type: text/plain; charset=UTF-8 Received-SPF: pass client-ip=34.202.193.197; envelope-from=hello@paulwrankin.com; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: "Paul W. Rankin" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --- 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) --=20 2.42.0 ------------=_1703821382-12967-1--