From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Bug? SCHEDULED lines treated differently when text precedes them Date: Fri, 06 Sep 2019 11:08:20 +1000 Message-ID: <87o8zyb5a3.fsf@gmail.com> References: <874l1q9a9x.fsf@neron> <877e6mew38.fsf@nicolasgoaziou.fr> <87zhjiamo2.fsf@neron> <87y2z2dfoz.fsf@nicolasgoaziou.fr> <87v9u6am3q.fsf@neron> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51918) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i62jm-0001pq-Lj for emacs-orgmode@gnu.org; Thu, 05 Sep 2019 21:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i62jl-0007WA-E7 for emacs-orgmode@gnu.org; Thu, 05 Sep 2019 21:08:30 -0400 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:41777) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i62jl-0007VU-7d for emacs-orgmode@gnu.org; Thu, 05 Sep 2019 21:08:29 -0400 Received: by mail-pl1-x643.google.com with SMTP id m9so2247421pls.8 for ; Thu, 05 Sep 2019 18:08:28 -0700 (PDT) In-reply-to: <87v9u6am3q.fsf@neron> 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 Cc: Nicolas Goaziou maybe add org-lint to the after-save-hook - maybe something like (untested) (add-hook 'after-save-hook (lamda () (when (eq buffer-mode 'org-mode) (org-lint)))) Christoph Groth writes: > Nicolas Goaziou wrote: >> Christoph Groth writes: >> >> > I understand now that Org does what it should. However, I find this >> > behavior quite dangerous. It caught me after more than 10 years of >> > using Org. If there's a list of long-term issues with Org >> > somewhere, this problem may deserve being added to it. >> >> I don't think there is much to fix here. In any case, the command >> `org-lint' warns you about this kind of error. > > Thanks for mentioning 'org-lint'. I just ran it on my agenda files, and > it found multiple errors in most of my (very long) files. So at least > for me (and likely for other Org users as well), the risk of missing > TODO items is real - that's a rather serious problem for a task manager! > > My agenda files are populated using 'org-capture'. Do you have > suggestions how to best integrate org-lint transparently into everyday > org usage? For example, files could be linted automatically before they > are saved, or before a new item is captured. -- Tim Cross