From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Fitzsimmons Subject: Fix time regexp in org-get-entries-from-diary Date: Thu, 19 Dec 2019 21:53:07 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55482) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii8Pk-00014o-MI for emacs-orgmode@gnu.org; Thu, 19 Dec 2019 21:53:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ii8Pi-0007Df-GU for emacs-orgmode@gnu.org; Thu, 19 Dec 2019 21:53:16 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:39849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ii8Ph-0006xg-Ef for emacs-orgmode@gnu.org; Thu, 19 Dec 2019 21:53:14 -0500 Received: by mail-qk1-x72e.google.com with SMTP id c16so6454588qko.6 for ; Thu, 19 Dec 2019 18:53:09 -0800 (PST) Received: from localhost.localdomain (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id f23sm2381794qke.104.2019.12.19.18.53.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2019 18:53:08 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Dear Org developers, I filed a bug report in Emacs debbugs, but probably should have sent it here instead: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38599 The attached patch appears to fix the bug. Does it look OK? Thanks, Thomas --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-time-regexp-in-org-get-entries-from-diary.patch >From 6102f07d61ee5d128701b7d3799b2e278aa79248 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Sun, 15 Dec 2019 12:20:05 -0500 Subject: [PATCH] Fix time regexp in org-get-entries-from-diary * lisp/org-agenda.el (org-get-entries-from-diary): Make time regular expression more precise. Reported-by: Justin Abrahms --- lisp/org-agenda.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 6391e0e9c..f07c86b9a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5135,6 +5135,7 @@ (defun org-get-entries-from-diary (date) (cons 'org-diary-default-entry diary-list-entries-hook)) (diary-file-name-prefix nil) ; turn this feature off (diary-modify-entry-list-string-function 'org-modify-diary-entry-string) + (diary-time-regexp (concat "^" diary-time-regexp)) entries (org-disable-agenda-to-diary t)) (save-excursion -- 2.24.1 --=-=-=--