emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture loses entered text when C-g on file selection
@ 2010-08-28 13:48 Greg Troxel
  2010-08-30  7:26 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Troxel @ 2010-08-28 13:48 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 526 bytes --]


This may not technically be a bug, but it violated my expectations:

setup:

      (setq org-capture-templates
	    '(("t" "task" entry
	       (file+headline "notes.org" "Refile")
	       "* TODO %?\n  %U\n")))

Use 'C-c r' to start capturing.

Type 'foo'.

C-c C-w to start refiling

Type 'bar'.

Decide that you really didn't finish the note, and type C-g to get back
to editing the note.

Notice that your typed-in text is vanished.

C-h l output of a test case that shows this problem:

  C-c r f o o C-c C-w b a r C-g


[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

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

* Re: org-capture loses entered text when C-g on file selection
  2010-08-28 13:48 org-capture loses entered text when C-g on file selection Greg Troxel
@ 2010-08-30  7:26 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-08-30  7:26 UTC (permalink / raw)
  To: Greg Troxel; +Cc: emacs-orgmode


On Aug 28, 2010, at 3:48 PM, Greg Troxel wrote:

>
> This may not technically be a bug, but it violated my expectations:
>
> setup:
>
>      (setq org-capture-templates
> 	    '(("t" "task" entry
> 	       (file+headline "notes.org" "Refile")
> 	       "* TODO %?\n  %U\n")))
>
> Use 'C-c r' to start capturing.
>
> Type 'foo'.
>
> C-c C-w to start refiling
>
> Type 'bar'.
>
> Decide that you really didn't finish the note, and type C-g to get  
> back
> to editing the note.
>
> Notice that your typed-in text is vanished.
>
> C-h l output of a test case that shows this problem:
>
>  C-c r f o o C-c C-w b a r C-g

Hi Greg,

unfortunately, the way this is implemented is the following:  It first
finalizes the capture, then it does the refile.  So it is difficult
to recover at that point.

- Carsten

>
> _______________________________________________
> 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

- Carsten

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

end of thread, other threads:[~2010-08-30  7:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-28 13:48 org-capture loses entered text when C-g on file selection Greg Troxel
2010-08-30  7:26 ` Carsten Dominik

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