From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [BUG] in last org in indentation of source blocks - confirmed with emacs -Q Date: Fri, 29 May 2015 10:03:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyFGu-0003Wz-Ld for emacs-orgmode@gnu.org; Fri, 29 May 2015 04:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyFGp-0005Ws-Kz for emacs-orgmode@gnu.org; Fri, 29 May 2015 04:04:04 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:38643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyFGp-0005Wm-EP for emacs-orgmode@gnu.org; Fri, 29 May 2015 04:03:59 -0400 Received: by wizo1 with SMTP id o1so13242933wiz.1 for ; Fri, 29 May 2015 01:03:58 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id ez19sm1845576wid.19.2015.05.29.01.03.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 01:03:57 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Thu, 28 May 2015 13:49:15 +0200") 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Just confirmed this bug with the following setup: Just load =2D-8<---------------cut here---------------start------------->8--- emacs -Q =2D-8<---------------cut here---------------end--------------->8--- #+begin_src emacs-lisp (add-to-list 'load-path "~/.emacs.d/org-mode/lisp") (add-to-list 'load-path "~/.emacs.d/org-mode/contrib/lisp") (require 'org) (setq org-src-preserve-indentation nil) #+end_src Proper indentation of any source block #+begin_src emacs-lisp (setq org-src-preserve-indentation t) #+end_src runaway indentation #+begin_src emacs-lisp (setq org-src-preserve-indentation t) #+end_src ,---- |=20 | Org-mode version 8.3beta (release_8.3beta-1178-g317886 @ /Users/rainerkru= g/.emacs.d/org-mode/lisp/) | GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, Carbon Version 157 AppKit 13= 47.57) of 2015-04-13 on Rainers-MacBook-Pro.local `---- Cheers, Rainer Rainer M Krug writes: > I reralised this morning that there eems to be a bug introduced in one > of the last commits which causes repeted editing of source blocks to > indent more each time the are edited (C-'). > > Original: > ,---- > | #+begin_src sh > | echo 2 > | #+end_src > `---- > > After C-' and back again > ,---- > | #+begin_src sh > | echo 2 > | #+end_src > `---- > > After second C-' and back > ,---- > | #+begin_src sh > | echo 2 > | #+end_src > `---- > > When C-', the indirect buffer has the same indentation as the source > block, but when switching back, two more spaces are added. > > Cheers, > > Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJVaB1rAAoJENvXNx4PUvmCmW0H/0CN0aooInQ7U5dss0m0rtBg lb/0ca9siPqG1q2CifKXCLr62yIEvOOAfCy8PefcH+0l2By8RodPN+UEb/2n0oTi ENooar8xIQNJX7NKotfcYmQlioSFyDnpG3fzgJ0p/jKVNQIPwq/PgNw4ZoJWtTDZ 4pxL5QyvVzYirzD0lIuS9STHOJ5RUim8apYF+3EDRlxBhDUp4caN1aB3iARmLq+r bHIQ66uy/sI92OQrwuQmv9DoZrFV6wCbhFEcu2VEgk/WMOSvTGXQz+JhI+TTZ3TT K2WawBljOjxh58feaacTAewaXnNX+e+YWLwELfWxHeVgL2t+fdVjfKIPNkd3/ag= =8LwA -----END PGP SIGNATURE----- --=-=-=--