emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Slight misbehaviour with `C-x r t' in Org
@ 2014-01-18  1:25 François Pinard
  2014-01-19 16:26 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: François Pinard @ 2014-01-18  1:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi, Org people.

I hope you're all doing fine, and wish you much enjoy this new year! :-)

Let me report a little strange behaviour I observed a few times.  Here
is the textual content of an Org file:

--8<---------------cut here---------------start------------->8---
* Trying
a
=b=
*c*
/d/
--8<---------------cut here---------------end--------------->8---

It is displayed like this, with org-hide-emphasis-markers to nil:

,----
| * Trying         blue
|   a              normal
|   =b=            grey
|   *c*            bold
|   /d/            italics
`----

But, as I keep org-hide-emphasis-markers to t, what I see is:

,----
| * Trying         blue
|   a              normal
|   b              grey
|   c              bold
|   d              italics
`----

Now, in this mode, if I put the mark on the `a' letter and the point on
the `d' letter, and type `C-x r t SPC SPC RET', I then see:

,----
| * Trying         blue
|     a            normal
|   =  b=          normal
| *  c*            blue
|   /  d/          normal
`----

So, the spaces are inserted after the opening marker, while I would have
expected to see them inserted before it.  My actual examples are of
course bigger than the toy example above, but even then, this is easily
corrected with some light edition.  But yet, I find it inconvenient
having to always revise text after shifting it (I often use `C-x r t'),
in case of inline markup randomly happening at the beginning of a line.

François

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

* Re: Slight misbehaviour with `C-x r t' in Org
  2014-01-18  1:25 Slight misbehaviour with `C-x r t' in Org François Pinard
@ 2014-01-19 16:26 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-01-19 16:26 UTC (permalink / raw)
  To: François Pinard; +Cc: emacs-orgmode

Hi François,

François Pinard <pinard@iro.umontreal.ca> writes:

> Now, in this mode, if I put the mark on the `a' letter and the point on
> the `d' letter, and type `C-x r t SPC SPC RET', I then see:
>
> ,----
> | * Trying         blue
> |     a            normal
> |   =  b=          normal
> | *  c*            blue
> |   /  d/          normal
> `----

Yes -- this is a problem with `move-to-column' ignoring invisible text
at the beginning of the line.  I reported this to the Emacs developers
with a minimal example.  Thanks!

-- 
 Bastien

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

end of thread, other threads:[~2014-01-19 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-18  1:25 Slight misbehaviour with `C-x r t' in Org François Pinard
2014-01-19 16:26 ` Bastien

Code repositories for project(s) associated with this 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).