From 895739cccbda9063c796f87ac0b08148ce0de774 Mon Sep 17 00:00:00 2001 From: Sebastian Mendez Date: Wed, 25 Feb 2015 02:04:52 +0100 Subject: [PATCH] Force temp buffer to use spaces for indentation. This prevents the insertion of unwanted tabs in the cabal file when auto-inserting dependencies, regardless of the user value for `indent-tabs-mode` in the default mode (default is fundamental mode). Solves issues #379 and #474. --- haskell-cabal.el | 1 + 1 file changed, 1 insertion(+) diff --git a/haskell-cabal.el b/haskell-cabal.el index 49e3fae99..1e7fcfab9 100644 --- a/haskell-cabal.el +++ b/haskell-cabal.el @@ -464,6 +464,7 @@ resultung buffer-content" (save-excursion (prog1 (with-temp-buffer + (setq indent-tabs-mode nil) (indent-to ,start-col) (insert ,section-data) (goto-char (point-min))