emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] in last org in indentation of source blocks - confirmed with emacs -Q
Date: Fri, 29 May 2015 10:03:50 +0200	[thread overview]
Message-ID: <m2y4k7vmhl.fsf@krugs.de> (raw)
In-Reply-To: <m2wpzsx6pw.fsf@krugs.de> (Rainer M. Krug's message of "Thu, 28 May 2015 13:49:15 +0200")

[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]

Just confirmed this bug with the following setup:

Just load

--8<---------------cut here---------------start------------->8---
emacs -Q
--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

,----
| 
| Org-mode version 8.3beta (release_8.3beta-1178-g317886 @ /Users/rainerkrug/.emacs.d/org-mode/lisp/)
| GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, Carbon Version 157 AppKit 1347.57) of 2015-04-13 on Rainers-MacBook-Pro.local
`----

Cheers,

Rainer




Rainer M Krug <Rainer@krugs.de> 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

-- 
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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

      parent reply	other threads:[~2015-05-29  8:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 11:49 [BUG] in last org in indentation of source blocks Rainer M Krug
2015-05-28 17:02 ` Titus von der Malsburg
2015-05-28 18:15   ` Thomas S. Dye
2015-05-28 18:50     ` Titus von der Malsburg
2015-05-29  7:46     ` Rainer M Krug
2015-05-29  7:45   ` Rainer M Krug
2015-05-29  7:59 ` Nicolas Goaziou
2015-05-29  8:10   ` Rainer M Krug
2015-05-29  8:03 ` Rainer M Krug [this message]

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=m2y4k7vmhl.fsf@krugs.de \
    --to=rainer@krugs.de \
    --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).