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> users.sourceforge.net>, <24848 <at> debbugs.gnu.org>
Subject: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?
Date: Mon, 4 Sep 2017 08:30:10 +0000
Thanks Noam.  I'm not sure I've got any way to test this patch, though...  I don't seem to have an smie.el file anywhere.  I've installed the emacs24-el package expecting that to contain it but it doesn't -- at least, I've searched my entire hard drive for it (using sudo, just in case) and it wasn't found.

________________________________________
From: Noam Postavsky <npostavs <at> gmail.com> on behalf of npostavs <at> users.sourceforge.net <npostavs <at> users.sourceforge.net>
Sent: 31 August 2017 00:49
To: Wiseman,R,Richard,TUK2 R
Cc: 24848 <at> debbugs.gnu.org
Subject: Re: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent?

tags 24848 + patch
quit

<richard.wiseman <at> bt.com> writes:

> 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! :-)

Okay, the patch below fixes the loading for me.  I also added a mention
of `smie-config-guess' in `sh-learn-buffer-indent's docstring so that it
should be possible to figure how to save config rules by reading
docstrings rather than hunting in the source code.





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

Previous Next


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