From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46164) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1w87-0006Vm-0H for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 12:48:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1w86-0000WK-0B for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 12:48:54 -0500 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:37920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1w85-0000Vt-Od for emacs-orgmode@gnu.org; Wed, 12 Feb 2020 12:48:53 -0500 Received: by mail-lf1-x135.google.com with SMTP id r14so2225344lfm.5 for ; Wed, 12 Feb 2020 09:48:53 -0800 (PST) Received: from [10.144.17.133] ([213.255.177.137]) by smtp.googlemail.com with ESMTPSA id b20sm657998ljp.20.2020.02.12.09.48.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Feb 2020 09:48:51 -0800 (PST) Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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