Re: [O] org-kill-line sometimes crashes emacs
On Tue, Apr 5, 2011 at 8:20 PM, Nick Dokos nicholas.do...@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...
[O] org-kill-line sometimes crashes emacs
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?
Re: [Orgmode] Re: %i indentation in capture templates
2010/8/6 Sébastien Vauban wxhgmqzgw...@spammotel.com: But just wanted to confirm you this seems, then, a bug to me (regarding what the doc promises). Thanks for the confirmation. The following patch seems to fix the problem: diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 111f7f7..1e407f1 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1045,6 +1045,7 @@ Lisp programs can force the template by setting KEYS to a string. Fill a template and return the filled template as a string. The template may still contain \%?\ for cursor positioning. (setq template (or template (org-capture-get :template))) + (setq initial (or initial (org-capture-get :initial))) (when (stringp initial) (setq initial (org-no-properties initial)) (remove-text-properties 0 (length initial) '(read-only t) initial)) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] %i indentation in capture templates
I have the following capture template: (t Todo entry (file+headline (concat org-directory /inbox.org) inbox) * TODO %?\n%i\n%a) Yet, with foo\nbar\nbaz in the region, this expands to: ... *** TODO foo bar baz ... The manual says of %i that The entire text will be indented like %i itself. Is this a bug, or am I misunderstanding? To be specific, the output I expect is: ... *** TODO foo bar baz ... I'm on 7.01g. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode