Tweak condition for src buffer to inherit active region.
commit9db0d7e20b5121fad3fecfe1e6c432d6fce73034
authorDan Davison <dandavison7@gmail.com>
Fri, 19 Nov 2010 23:31:19 +0000 (19 23:31 +0000)
committerDan Davison <dandavison7@gmail.com>
Fri, 19 Nov 2010 23:32:30 +0000 (19 23:32 +0000)
tree0fd01cbbe8087aac8b936851ba93c6d127decf72
parent967c71f5efa6d7ba12dcfff100ff1dedcb8d30a0
Tweak condition for src buffer to inherit active region.

* lisp/org-src.el (org-edit-src-code): Allow region to be inherited by
edit buffer when mark is one character beyond end of src block.

Thanks to Jambunathan K. for the bug report:

 C-c C-v C-M-h and C-c C-v C-x interaction

   In the block below do

   1. C-c C-v C-M-h, C-c C-v C-x C-M-\
   2. Mark (just) the code-block with C-SPC etc etc. C-c C-v C-x C-M-\

   See the difference in behaviour.

<text:p text:style-name="Standard">This is a xref to
<text:bookmark-ref text:reference-format="text"
text:ref-name="__RefHeading__1669_1684552201">Heading8
</text:bookmark-ref>.</text:p>

I have transient mark mode on.
lisp/org-src.el