GNU bug report logs - #24848
[sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?

Previous Next

Package: emacs;

Reported by: <richard.wiseman <at> bt.com>

Date: Tue, 1 Nov 2016 15:37:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 29414

Found in version 24.5

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: <richard.wiseman <at> bt.com>
To: <npostavs <at> gmail.com>, <24848 <at> debbugs.gnu.org>
Subject: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?
Date: Fri, 25 Aug 2017 13:44:07 +0000
I'm using Emacs v24.5.1 and yes, I've a basic offset of 2 set...

(custom-set-variables
 ;; lots of stuff
 '(sh-basic-offset 2)
 ;; lots of stuff
)

I was interested that you mentioned sh-indentation as an alternative to sh-basic-offset so I added that too, and that resulted in the indentation that I want!

So that solves the problem that I was trying to solve by saving learned indentation. :-)

Anyway, to help get to the bottom of this, I disabled sh-indentation and tried your steps around editing smie-config and M-x normal-mode and I got the same result as you: it worked.

So as you indicated, it appears to be that smie-config isn't being loaded (properly) when Emacs starts.

I await your next inspiration! :-)

Thanks,

Richard



This bug report was last modified 7 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.