emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-edit-special and C-x C-s strange behavior
@ 2012-01-11  6:40 Leo Alekseyev
  2012-01-11 15:16 ` Eric S Fraga
  0 siblings, 1 reply; 13+ messages in thread
From: Leo Alekseyev @ 2012-01-11  6:40 UTC (permalink / raw)
  To: emacs-orgmode

I often edit my org-babel code blocks via org-edit-special (C-'), in
part because I find the tabbing behavior within the code blocks to be
somewhat flaky. Inevitably, when editing the code block I will press
C-x C-s (muscle memory). This causes all sorts of annoying
consequences: the buffer with the code block gets buried, window
splitting disappears, and if I go back to the original org buffer,
find the relevant code block and try to edit again via C-', I'm faced
with a rather cryptic message "Return to existing edit buffer? [n]
will revert changes: (y or n) ".

Since C-x C-s is such a basic operation, I think it should do
something more sensible in an edit buffer (for instance, it should
save the original org document and not screw with the window
configuration).  Alternatively, it could be configured to save, and
exit the edit buffer (i.e. simulate the effect of pressing C-' and
then C-x C-s in the original org buffer).  This would go a long way to
making working with code blocks more pleasant.  From my viewpoint /
usage patterns it makes a lot of sense for an edit buffer to behave
like a version of the original org buffer narrowed to the source code
block. If there's a particular reason for the current behavior, I'd be
very curious to know it.

--Leo

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

end of thread, other threads:[~2012-02-14 23:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11  6:40 Org-edit-special and C-x C-s strange behavior Leo Alekseyev
2012-01-11 15:16 ` Eric S Fraga
2012-01-11 20:56   ` Andreas Leha
2012-01-12  1:40     ` Leo Alekseyev
2012-01-12  4:56       ` Leo Alekseyev
2012-01-12  9:03       ` Eric S Fraga
2012-01-12 10:14         ` Andreas Leha
2012-01-12 13:55           ` Leo Alekseyev
     [not found]             ` <30ae09b29d262e6156ec9818df085441@mail.rickster.com>
2012-01-13 20:58               ` Leo Alekseyev
2012-01-24 15:25                 ` Bastien
2012-02-08 21:50                   ` Leo Alekseyev
2012-02-14 22:37                     ` Andreas Leha
2012-02-14 23:02                       ` Andreas Leha

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