emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-kill-line sometimes crashes emacs
@ 2011-04-05 23:37 Thomas Jack
  2011-04-06  1:20 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Jack @ 2011-04-05 23:37 UTC (permalink / raw)
  To: emacs-orgmode

Steps to reproduce:

Include an entry like this in your org-capture-templates:
("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
         "* TODO %?\n  %i\n  %a")

Now, delete everything in ~/org/gtd.org except for a lone "Tasks" headline.

Put point on the next line, and start a capture with the template
above. Move point down to the beginning of the line with the "Tasks"
link, and C-k (org-kill-line).

For me, emacs crashes with "Fatal error (6)Aborted". If I first modify
the link and undo the changes, there is no crash.

Can anyone else reproduce?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-kill-line sometimes crashes emacs
  2011-04-05 23:37 org-kill-line sometimes crashes emacs Thomas Jack
@ 2011-04-06  1:20 ` Nick Dokos
  2011-04-06 21:57   ` Thomas Jack
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2011-04-06  1:20 UTC (permalink / raw)
  To: Thomas Jack; +Cc: nicholas.dokos, emacs-orgmode

Thomas Jack <thomasjack@gmail.com> wrote:

> Steps to reproduce:
> 
> Include an entry like this in your org-capture-templates:
> ("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
>          "* TODO %?\n  %i\n  %a")
> 
> Now, delete everything in ~/org/gtd.org except for a lone "Tasks" headline.
> 
> Put point on the next line, and start a capture with the template
> above. Move point down to the beginning of the line with the "Tasks"
> link, and C-k (org-kill-line).
> 
> For me, emacs crashes with "Fatal error (6)Aborted". If I first modify
> the link and undo the changes, there is no crash.
> 
> Can anyone else reproduce?
> 

Yes, I can. What version of emacs are you using?

Mine is: GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.22.0) of 2011-03-16. I'll update 

I tried running emacs under gdb, but I cannot reproduce it in that
situation. Nasty.

Nick

PS. I tried it with the following minimal.emacs by invoking emacs like
this:

   emacs -Q -l ~/minimal.emacs

--8<---------------cut here---------------start------------->8---
;;; constant part
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-install)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

(setq org-capture-templates
'( ("T" "Todo" entry (file+headline "~/org/gtd.org" "Tasks") "* TODO %?\n  %i\n  %a")))
--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-kill-line sometimes crashes emacs
  2011-04-06  1:20 ` Nick Dokos
@ 2011-04-06 21:57   ` Thomas Jack
  2011-04-06 22:13     ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Jack @ 2011-04-06 21:57 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

On Tue, Apr 5, 2011 at 8:20 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Yes, I can. What version of emacs are you using?
>
> Mine is: GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
> 2.22.0) of 2011-03-16. I'll update

Thanks! Glad it's not just me.

I'm all the way back on "GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+
Version 2.22.0) of 2010-11-26 on crested, modified by Debian".

I still can't figure out the exact conditions under which it happens,
but so far I've only seen the crash when the link I'm killing is to
the target headline. That could just be a red herring...

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-kill-line sometimes crashes emacs
  2011-04-06 21:57   ` Thomas Jack
@ 2011-04-06 22:13     ` Nick Dokos
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2011-04-06 22:13 UTC (permalink / raw)
  To: Thomas Jack; +Cc: nicholas.dokos, emacs-orgmode

Thomas Jack <thomasjack@gmail.com> wrote:

> On Tue, Apr 5, 2011 at 8:20 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> > Yes, I can. What version of emacs are you using?
> >
> > Mine is: GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
> > 2.22.0) of 2011-03-16. I'll update
> 
> Thanks! Glad it's not just me.

Not me: I'd be gladder if it was just you ;-)

> 
> I'm all the way back on "GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+
> Version 2.22.0) of 2010-11-26 on crested, modified by Debian".
> 

That's worse than I thought: I was hoping that it was some recent change
that might have affected only 24.0.50 and I was further hoping that it
might have been fixed by now. I'll still update one of these days and try
it again, but the hope has dimmed considerably...

> I still can't figure out the exact conditions under which it happens,
> but so far I've only seen the crash when the link I'm killing is to
> the target headline. That could just be a red herring...
> 

Whatever the color of the herring, emacs should *not* crash noway, nohow :-) 

Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-06 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05 23:37 org-kill-line sometimes crashes emacs Thomas Jack
2011-04-06  1:20 ` Nick Dokos
2011-04-06 21:57   ` Thomas Jack
2011-04-06 22:13     ` Nick Dokos

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).