branch: externals/auctex
commit 8d5acb0d4bb8fa376e013ca7c4bf23ee0fa08e73
Author: Arash Esbati <esb...@gmx.de>
Commit: Mosè Giordano <m...@gnu.org>

    Do not indent the content of `filecontents[*]' env.
    
    * style/filecontents.el ("filecontents"): Do not indent the
    content of `filecontents[*]' environment.
    
    Signed-off-by: Mosè Giordano <m...@gnu.org>
---
 ChangeLog             |    3 +++
 style/filecontents.el |    9 +++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index df7b22a..4841e1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-08-30  Arash Esbati  <esb...@gmx.de>
 
+       * style/filecontents.el ("filecontents"): Do not indent the
+       content of `filecontents[*]' environment.
+
        * style/hyperref.el ("hyperref"): Do not indent the content of
        `Form' environment.
 
diff --git a/style/filecontents.el b/style/filecontents.el
index 493b6c7..20cfa98 100644
--- a/style/filecontents.el
+++ b/style/filecontents.el
@@ -1,6 +1,6 @@
 ;;; filecontents.el --- AUCTeX style for `filecontents.sty'
 
-;; Copyright (C) 2013, 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2013--2015 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen <m...@inducks.org>
 ;; Maintainer: auctex-de...@gnu.org
@@ -38,7 +38,12 @@
  (lambda ()
    (LaTeX-add-environments
     '("filecontents" LaTeX-env-filecontents)
-    '("filecontents*" LaTeX-env-filecontents)))
+    '("filecontents*" LaTeX-env-filecontents))
+
+   (add-to-list 'LaTeX-indent-environment-list
+               '("filecontents" current-indentation))
+   (add-to-list 'LaTeX-indent-environment-list
+               '("filecontents*" current-indentation)))
  LaTeX-dialect)
 
 (defun LaTeX-env-filecontents (environment)

Reply via email to