Re: [O] Capture templates with "function" type

2013-11-06 Thread Brett Viren
Bastien writes: > Capture templates using `function' should now return back to the > correct window location. Thanks for raising this, Thanks so much for putting time in it! Regards, -Brett. pgpgYsSYgPjri.pgp Description: PGP signature

Re: [O] Capture templates with "function" type

2013-11-06 Thread Bastien
Hi Brett, Bastien writes: > I'm still investigating this bug, but in the meantime you may want to > try using file+function, which does not have the bug. Capture templates using `function' should now return back to the correct window location. Thanks for raising this, -- Bastien

Re: [O] Capture templates with "function" type

2013-11-06 Thread Bastien
Hi Brett, Brett Viren writes: > Can someone say how I might get this behavior for the "function" capture > type as well? I'm still investigating this bug, but in the meantime you may want to try using file+function, which does not have the bug. -- Bastien

Re: [O] Capture templates with "function" type

2013-11-05 Thread Brett Viren
Hi Bastien, Bastien writes: > You may try this (not tested myself): > > (defun bv-daily-log-file () > (save-window-excursion > (find-file (concat "~/org/web/notes/" > (format-time-string "%Y-%m-%d") ".org")) > (goto-char (point-max)) > (newline 2))) > > The tr

Re: [O] Capture templates with "function" type

2013-11-05 Thread Bastien
Hi Brett, Brett Viren writes: > (defun bv-daily-log-file () > (find-file (concat "~/org/web/notes/" > (format-time-string "%Y-%m-%d") ".org")) > (goto-char (point-max)) > (newline 2) > ) You may try this (not tested myself): (defun bv-daily-log-file () (save-window-e

Re: [O] Capture templates with "function" type

2013-10-30 Thread Alexander Baier
Brett Viren writes: > Hi, > > I'm trying to set up a capture template of type "function" in order to > produce a daily log file named after today's date. > > It mostly works. However, after doing the C-cC-c to close the capture > buffer the window is left holding the daily log file which the cap

[O] Capture templates with "function" type

2013-10-26 Thread Brett Viren
Hi, I'm trying to set up a capture template of type "function" in order to produce a daily log file named after today's date. It mostly works. However, after doing the C-cC-c to close the capture buffer the window is left holding the daily log file which the capture just updated instead of going