* C-c ' and mail sources
@ 2013-11-13 5:16 François Pinard
2013-11-13 8:58 ` Bastien
2013-11-13 18:03 ` Aaron Ecay
0 siblings, 2 replies; 3+ messages in thread
From: François Pinard @ 2013-11-13 5:16 UTC (permalink / raw)
To: emacs-orgmode
Hi, Org people. Just observing this little nit.
If I insert an email message (copy and pasted from Gnus in my case)
within:
#+BEGIN_SRC mail
#+END_SRC
the header lines of the message are highlighted with a reasonable set of
colors. However, with the cursor within the message, I hid "C-c '"
twice, this has the effect of shifting the inserted message two columns
to the right, the highlighting of the header is then lost.
Not a big problem, and I expect that someone on this list will reply
that this is an Org limitation (a way to say that the bug is innocuous
enough to not deserve a correction). I rather use the word limitation
for a bug which has been documented :-). In any case, this is a bug.
I do not know what would be the reasonable way to correct it: preventing
the shifting, or changing how highlighting interpret beginning of lines,
in case of Org?
François
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: C-c ' and mail sources
2013-11-13 5:16 C-c ' and mail sources François Pinard
@ 2013-11-13 8:58 ` Bastien
2013-11-13 18:03 ` Aaron Ecay
1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2013-11-13 8:58 UTC (permalink / raw)
To: François Pinard; +Cc: emacs-orgmode
Hi François,
François Pinard <pinard@iro.umontreal.ca> writes:
> Not a big problem, and I expect that someone on this list will reply
> that this is an Org limitation (a way to say that the bug is innocuous
> enough to not deserve a correction). I rather use the word limitation
> for a bug which has been documented :-). In any case, this is a
> bug.
Not that I want to distract readers from the original issue, but being
curious: do you have the same problem with #+BEGIN_SRC message ?
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: C-c ' and mail sources
2013-11-13 5:16 C-c ' and mail sources François Pinard
2013-11-13 8:58 ` Bastien
@ 2013-11-13 18:03 ` Aaron Ecay
1 sibling, 0 replies; 3+ messages in thread
From: Aaron Ecay @ 2013-11-13 18:03 UTC (permalink / raw)
To: François Pinard, emacs-orgmode
Hello François,
2013ko azaroak 13an, François Pinard-ek idatzi zuen:
[...]
> I do not know what would be the reasonable way to correct it: preventing
> the shifting, or changing how highlighting interpret beginning of lines,
> in case of Org?
I have the following in my emacs init file to prevent the shifting of
python code blocks:
#+BEGIN_SRC emacs-lisp
(defadvice org-edit-src-exit (around awe-org activate)
(let ((org-edit-src-content-indentation org-edit-src-content-indentation))
(when (eq major-mode 'python-mode)
(setq org-edit-src-content-indentation 0))
ad-do-it))
#+END_SRC
You should be able to adapt this for mail mode by changing the
(eg 'major-mode ...) test. Alternatively, if you never want any
source blocks to be indented from the left margin, you can customize the
org-edit-src-content-indentation variable to 0.
--
Aaron Ecay
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-13 18:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 5:16 C-c ' and mail sources François Pinard
2013-11-13 8:58 ` Bastien
2013-11-13 18:03 ` Aaron Ecay
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.