From: Ethan <ethan.glasser.camp@gmail.com>
To: Ethan <ethan.glasser.camp@gmail.com>,
emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Infinite loop with org-log-done 'time?
Date: Wed, 23 Jul 2014 13:06:38 -0400 [thread overview]
Message-ID: <CAOJ+Ob373Q2tXKP5WQQqf7eQg4QbpV11sVMDtpxtiYhuEz3e3A@mail.gmail.com> (raw)
In-Reply-To: <CAOJ+Ob2SieHSBYU5KHBZP4LaZn49krBdsLMUN4sEp-3WppBB2A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3256 bytes --]
I just noticed that there was a commit
3c14db868574c97eff0eb0df7a72a618d5517292 that might have fixed it. The
linked bug report seems to sound very similar to what I experienced. Thanks!
http://permalink.gmane.org/gmane.emacs.orgmode/88673
Ethan
On Wed, Jul 23, 2014 at 1:03 PM, Ethan <ethan.glasser.camp@gmail.com> wrote:
> Sorry for the late reply. Thanks for the advice Nicolas. Today I tried to
> reproduce it with the same file and couldn't. However, I have hit the bug
> (whatever it is) without org-log-done 'time, so I guess that was a red
> herring. I'll keep an eye on it.
>
> Ethan
>
>
>
> On Fri, Jul 18, 2014 at 3:50 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> Ethan <ethan.glasser.camp@gmail.com> writes:
>>
>> > I'm running org-mode from git (version "8.3beta"), and recently I
>> started
>> > to get hangs in org files.
>>
>> First ensure you're using the latest Org revision. A lot of changes
>> happened between "release_8.3beta" tag and HEAD.
>>
>> > The bug has been tricky to track down. I can reproduce it reliably in
>> one
>> > particular file by switching DONE to TODO on one particular heading.
>> > Changing DONE to TODO on another nearby heading doesn't seem to cause
>> the
>> > problem. For this reason, I don't have a minimal example.
>> >
>> > It doesn't happen in org-mode in stock emacs. It also doesn't happen,
>> even
>> > with org-mode from git, if I disable my '(org-log-done 'time)
>> > customization. I managed to get a backtrace using gdb (attached). I can
>> > provide (off-list) the .org file that I used to induce the failure.
>>
>> If you can reproduce the problem with an up-to-date Org, I'm interested
>> in the org file. You can also consider calling the function below first
>>
>> (defun ngz-scramble-contents ()
>> "Copy current buffer, preserving structure but not contents.
>> The copy is done in \"*Scrambled text*\" buffer. The function
>> assumes current major mode is `org-mode'."
>> (interactive)
>> (let ((tree (org-element-parse-buffer)))
>> (org-element-map tree '(code comment comment-block example-block
>> fixed-width
>> keyword link node-property plain-text
>> verbatim)
>> (lambda (obj)
>> (case (org-element-type obj)
>> ((code comment comment-block example-block fixed-width keyword
>> node-property verbatim)
>> (let ((value (org-element-property :value obj)))
>> (org-element-put-property
>> obj :value (replace-regexp-in-string "[[:alnum:]]" "x"
>> value))))
>> (link
>> (unless (string= (org-element-property :type obj) "radio")
>> (org-element-put-property obj :raw-link "
>> http://orgmode.org")))
>> (plain-text
>> (org-element-set-element
>> obj (replace-regexp-in-string "[[:alnum:]]" "x" obj)))))
>> nil nil nil t)
>> (let ((buffer (get-buffer-create "*Scrambled text*")))
>> (with-current-buffer buffer
>> (insert (org-element-interpret-data tree))
>> (goto-char (point-min)))
>> (switch-to-buffer buffer))))
>>
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>
[-- Attachment #2: Type: text/html, Size: 4696 bytes --]
next prev parent reply other threads:[~2014-07-23 17:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 18:48 Infinite loop with org-log-done 'time? Ethan
2014-07-18 7:50 ` Nicolas Goaziou
2014-07-23 17:03 ` Ethan
2014-07-23 17:06 ` Ethan [this message]
2014-07-19 3:22 ` Matt Lundin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOJ+Ob373Q2tXKP5WQQqf7eQg4QbpV11sVMDtpxtiYhuEz3e3A@mail.gmail.com \
--to=ethan.glasser.camp@gmail.com \
--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 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.