emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hannu Koivisto <azuhoo@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <c04c047b-9c22-16e1-9e41-f81f0a303a9d@gmail.com> (raw)

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	other threads:[~2020-02-12 17:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-12 17:48 Hannu Koivisto [this message]
2020-02-13  1:05 ` Bug: copy-rectangle-to-register problem with org-indent [9.3.5 (9.3.5-elpa @ ~/.emacs.d/elpa/org-20200212/)] Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c04c047b-9c22-16e1-9e41-f81f0a303a9d@gmail.com \
    --to=azuhoo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).