emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: emacs-orgmode@gnu.org
Subject: Re: org-agenda-do-date-late and emacs freeze
Date: Sun, 02 Mar 2014 22:25:32 -0600	[thread overview]
Message-ID: <87fvmzq56r.fsf@fastmail.fm> (raw)
In-Reply-To: <87lhwrq5dt.fsf@fastmail.fm> (Matt Lundin's message of "Sun, 02 Mar 2014 22:21:18 -0600")

Matt Lundin <mdl@imapmail.org> writes:

> Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
>
>> Hi,
>>
>> is there a way to debug what is happening after pressing some key
>> combination. 
>>
>> I have the problem that in the agenda view when I press M-+ to run the
>> function org-agenda-do-date-late, sometimes (and this is the problme: it
>> happens randomly, not always), emacs gets freezed and I have to press
>> C-g to cancel. Interestingly when I press C-g I see the date on the
>> right side updated and everything continues working OK...
>
> Does it happen when you have filtered the agenda? If so, then I can
> confirm this bug... 
>
...
> I previously documented the issue in this thread:
>
>  - http://comments.gmane.org/gmane.emacs.orgmode/75288

AFAICT, there is something of a ping-pong game going on between multiple
bugs whose solutions conflict with each other. 

1. The bug was first introduced with the following commit:

--8<---------------cut here---------------start------------->8---
commit fafb5f3429c41cba1eddb9fc78d9f9e0980acbe2
Author: Bastien Guerry <bzg@altern.org>
Date:   Mon Feb 11 14:56:38 2013 +0100

    org-agenda.el: Fix bug when displaying a temporary overlay
    
    * org-agenda.el (org-agenda-schedule, org-agenda-deadline):
    Cosmetic changes.
    (org-agenda-show-new-time): Fix bug when displaying a
    temporary overlay with the scheduled/deadline information.
    
    Thanks to Thomas Morgan for reporting this bug and testing the patch.
--8<---------------cut here---------------end--------------->8---

...which was a response to the following bug...

http://article.gmane.org/gmane.emacs.orgmode/65538/match=agenda

2. The bug was solved by the following patch.

--8<---------------cut here---------------start------------->8---
commit 7f9d0688d47140bcac7bea627474802adfce31ee
Author: Carsten Dominik <carsten.dominik@gmail.com>
Date:   Sat Aug 31 15:44:34 2013 +0200

    Fix cursor movement to a specific column
    
    * lisp/org-compat.el (org-move-to-column): Turn off invisibility stuff
    for moving the cursor to a column.
    
    Pathc by Nick Docks
--8<---------------cut here---------------end--------------->8---

3. However, the problem resurfaced with the following patch, which
effectively reversed the previous fix.

--8<---------------cut here---------------start------------->8---
commit 2911965bfef9072a3031d48dfe2ea50bcb3ff9df
Author: Bastien Guerry <bzg@altern.org>
Date:   Wed Nov 6 09:59:46 2013 +0100

    org-agenda: Fix bug when showing the new time
    
    * org-agenda.el (org-agenda-show-new-time): Ignore invisible
    text when inserting the new time as a text property.
    
    * org-compat.el (org-move-to-column): New argument
    `ignore-invisible' to turn on `buffer-invisibility-spec'.
    
    Thanks to Marcin Borkowski and Karl Voit for reporting this.
--8<---------------cut here---------------end--------------->8---

The timing of the patch leads me to believe that it was a solution to
the problems outlined in this thread. 

- http://comments.gmane.org/gmane.emacs.orgmode/69934

So, in summary, it seems we have different bugs whose solutions have
thus far conflicted with each other.

Matt

  reply	other threads:[~2014-03-03  4:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18 12:38 org-agenda-do-date-late and emacs freeze Igor Sosa Mayor
2014-02-18 13:09 ` Nick Dokos
2014-02-18 14:00   ` Igor Sosa Mayor
2014-02-18 14:29   ` Igor Sosa Mayor
2014-03-01  8:39     ` Bastien
2014-03-03  4:21 ` Matt Lundin
2014-03-03  4:25   ` Matt Lundin [this message]
2014-03-17  2:07     ` Bastien
2014-03-17  9:03       ` Igor Sosa Mayor
2014-03-20 16:08     ` Bastien
2014-03-21 18:57       ` Matt Lundin
2014-03-25 18:37         ` Matt Lundin
2014-03-25 20:59           ` Bastien
2014-03-28 13:40       ` Igor Sosa Mayor
2014-03-03 14:51   ` Igor Sosa Mayor

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvmzq56r.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).