emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exit code editing buffer without installing the changes
@ 2013-02-15  0:02 Not To Miss
  2013-02-15  1:00 ` Rasmus
  2013-02-15 22:00 ` Bastien
  0 siblings, 2 replies; 6+ messages in thread
From: Not To Miss @ 2013-02-15  0:02 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

Hi org-mode users,

I know in a source code block, C-c ' will launch a buffer to edit the
source code and C-c ' again will install the buffer back to the code block.
Sometimes I just want to abort all the changes, so I am wondering: Is there
anyway to exit the buffer without installing the changes   and return to
the org file without any modification?

Thanks,
Zech

[-- Attachment #2: Type: text/html, Size: 484 bytes --]

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

* Re: exit code editing buffer without installing the changes
  2013-02-15  0:02 exit code editing buffer without installing the changes Not To Miss
@ 2013-02-15  1:00 ` Rasmus
  2013-02-15 22:00 ` Bastien
  1 sibling, 0 replies; 6+ messages in thread
From: Rasmus @ 2013-02-15  1:00 UTC (permalink / raw)
  To: emacs-orgmode

Not To Miss <not.to.miss@gmail.com> writes:

> Hi org-mode users,
>
> I know in a source code block, C-c ' will launch a buffer to edit the
> source code and C-c ' again will install the buffer back to the code block.
> Sometimes I just want to abort all the changes, so I am wondering: Is there
> anyway to exit the buffer without installing the changes   and return to
> the org file without any modification?

Would C-x k RET do?  Or are you looking for something more
sophisticated?

-- 
This is the kind of tedious nonsense up with which I will not put

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

* Re: exit code editing buffer without installing the changes
  2013-02-15  0:02 exit code editing buffer without installing the changes Not To Miss
  2013-02-15  1:00 ` Rasmus
@ 2013-02-15 22:00 ` Bastien
  2013-02-16 17:59   ` Not To Miss
  2013-02-16 18:43   ` Bernt Hansen
  1 sibling, 2 replies; 6+ messages in thread
From: Bastien @ 2013-02-15 22:00 UTC (permalink / raw)
  To: Not To Miss; +Cc: emacs-orgmode

Hi Zech,

Not To Miss <not.to.miss@gmail.com> writes:

> I know in a source code block, C-c ' will launch a buffer to edit the
> source code and C-c ' again will install the buffer back to the code
> block. Sometimes I just want to abort all the changes, so I am
> wondering: Is there anyway to exit the buffer without installing the
> changes   and return to the org file without any modification?

I implemented this -- you can now use `C-c k' in the buffer, it will
quit and restore the window config correctly.

Thanks for suggesting this!

-- 
 Bastien

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

* Re: exit code editing buffer without installing the changes
  2013-02-15 22:00 ` Bastien
@ 2013-02-16 17:59   ` Not To Miss
  2013-02-16 18:43   ` Bernt Hansen
  1 sibling, 0 replies; 6+ messages in thread
From: Not To Miss @ 2013-02-16 17:59 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

awesome. thanks!


On Fri, Feb 15, 2013 at 3:00 PM, Bastien <bzg@altern.org> wrote:

> Hi Zech,
>
> Not To Miss <not.to.miss@gmail.com> writes:
>
> > I know in a source code block, C-c ' will launch a buffer to edit the
> > source code and C-c ' again will install the buffer back to the code
> > block. Sometimes I just want to abort all the changes, so I am
> > wondering: Is there anyway to exit the buffer without installing the
> > changes   and return to the org file without any modification?
>
> I implemented this -- you can now use `C-c k' in the buffer, it will
> quit and restore the window config correctly.
>
> Thanks for suggesting this!
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1181 bytes --]

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

* Re: exit code editing buffer without installing the changes
  2013-02-15 22:00 ` Bastien
  2013-02-16 17:59   ` Not To Miss
@ 2013-02-16 18:43   ` Bernt Hansen
  2013-02-16 20:38     ` Bastien
  1 sibling, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2013-02-16 18:43 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Not To Miss

Bastien <bzg@altern.org> writes:

> Hi Zech,
>
> Not To Miss <not.to.miss@gmail.com> writes:
>
>> I know in a source code block, C-c ' will launch a buffer to edit the
>> source code and C-c ' again will install the buffer back to the code
>> block. Sometimes I just want to abort all the changes, so I am
>> wondering: Is there anyway to exit the buffer without installing the
>> changes   and return to the org file without any modification?
>
> I implemented this -- you can now use `C-c k' in the buffer, it will
> quit and restore the window config correctly.
>
> Thanks for suggesting this!

We use C-c C-k to abort a capture buffer - would that key be more
consistent?

Regards,
Bernt

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

* Re: exit code editing buffer without installing the changes
  2013-02-16 18:43   ` Bernt Hansen
@ 2013-02-16 20:38     ` Bastien
  0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2013-02-16 20:38 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Not To Miss, emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

> We use C-c C-k to abort a capture buffer - would that key be more
> consistent?

Indeed, I made this change, thanks!

-- 
 Bastien

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

end of thread, other threads:[~2013-02-16 20:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15  0:02 exit code editing buffer without installing the changes Not To Miss
2013-02-15  1:00 ` Rasmus
2013-02-15 22:00 ` Bastien
2013-02-16 17:59   ` Not To Miss
2013-02-16 18:43   ` Bernt Hansen
2013-02-16 20:38     ` Bastien

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