[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24848: [sh-script] How to save "Local rules set" result from sh-lear
From: |
npostavs |
Subject: |
bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent? |
Date: |
Thu, 24 Aug 2017 21:12:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
<richard.wiseman@bt.com> writes:
> So the above seem to demonstrate that sh-name-buffer and
> sh-save-styles-to-buffer don't save all indentation information.
Oh, I think the commentary I found is actually for the old sh-script
specific indentation. If 'sh-use-smie' is set (the default) you should
rather use M-x smie-save-config. And then it seems an extra step is
needed to activate it in the current session, evalute this expression:
(customize-set-variable 'smie-config
;; This value is set by `smie-save-config'.
'((sh-mode (-2 :before "then" 0))))
I'm not sure if this is because I'm testing with 'emacs -Q', or
something is missing from 'smie-save-config'. I think normally the
value would saved with the other customized options and work without any
extra effort.
> Please let me know if you'd like any further information.
Could you also please post a script which gives the bad indentation?
This could be another bug in itself.
- bug#24848: Any progress?, richard.wiseman, 2017/08/24
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, npostavs, 2017/08/24
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, richard.wiseman, 2017/08/24
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?,
npostavs <=
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, richard.wiseman, 2017/08/25
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, richard.wiseman, 2017/08/25
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, npostavs, 2017/08/25
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, richard.wiseman, 2017/08/25
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, richard.wiseman, 2017/08/25
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, Noam Postavsky, 2017/08/26
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, richard.wiseman, 2017/08/29
- bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?, npostavs, 2017/08/30