emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: copy-rectangle-to-register problem with org-indent [9.3.5 (9.3.5-el


From: Hannu Koivisto
Subject: Bug: copy-rectangle-to-register problem with org-indent [9.3.5 (9.3.5-elpa @ ~/.emacs.d/elpa/org-20200212/)]
Date: Wed, 12 Feb 2020 19:48:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Hi,

Summary: if org-indent-mode is enabled, copy-rectangle-to-register seems to copy "indentation" in addition to the actual rectangle, even if the rectangle is not in the beginning or end of any line.

Steps to reproduce:
- Using the Emacs and Org mode versions listed at the end, start Emacs with "emacs -q" - M-x package-initialize RET so that Org fetched using the package system is used instead of the bundled one
- Create test.org with the following content:

* test
** test2
foo !2.11. foo
bar 23.11. foo
baz 24.11. foo
jep 25.11! foo

- Enable org-indent-mode
- Select a region starting from the first ! and ending to the second !
- C-x r r i
- Switch to *scratch* buffer
- C-x r i i

Expected result:

!2.11.
23.11.
24.11.
25.11!

Actual result:

    !2.11.
    23.11.
    24.11.
    25.11!

...where indentation happens due to text properties (you cannot move point to column 0, for example -- I'm using manually inserted spaces in this email). If I select the inserted lines, starting from the line above it, and execute M-x facemenu-remove-all RET, the inserted lines move to column 0.

Emacs  : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-09-22, modified by Debian
Package: Org mode version 9.3.5 (9.3.5-elpa @ /home/hannuko/.emacs.d/elpa/org-20200212/)

--
Hannu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]