From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent? Date: Fri, 25 Aug 2017 08:37:56 +0000 Message-ID: <1503650276173.14201@bt.com> References: <1478012827020.47948@bt.com> <1503574770199.95054@bt.com> <87o9r59lyp.fsf_-_@users.sourceforge.net> <1503582257373.58386@bt.com>, <87inhca1s9.fsf@users.sourceforge.net>, <1503648698123.80907@bt.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1503650363 23808 195.159.176.226 (25 Aug 2017 08:39:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 08:39:23 +0000 (UTC) To: , <24848@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 25 10:39:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlA8y-0005I2-1N for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 10:39:08 +0200 Original-Received: from localhost ([::1]:52112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlA91-0006ec-NS for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 04:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlA8w-0006eH-24 for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 04:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlA8s-0008L5-UH for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 04:39:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlA8s-0008Ko-Qp for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 04:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlA8s-0000tE-Bg for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 04:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2017 08:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24848 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24848-submit@debbugs.gnu.org id=B24848.15036502863351 (code B ref 24848); Fri, 25 Aug 2017 08:39:02 +0000 Original-Received: (at 24848) by debbugs.gnu.org; 25 Aug 2017 08:38:06 +0000 Original-Received: from localhost ([127.0.0.1]:53525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlA7y-0000ry-96 for submit@debbugs.gnu.org; Fri, 25 Aug 2017 04:38:06 -0400 Original-Received: from smtpb1.bt.com ([62.7.242.135]:9622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlA7v-0000rT-UK for 24848@debbugs.gnu.org; Fri, 25 Aug 2017 04:38:04 -0400 Original-Received: from EVMHT01-UKBR.domain1.systemhost.net (193.113.108.42) by EVMED01-UKBR.bt.com (10.216.161.31) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 25 Aug 2017 09:37:54 +0100 Original-Received: from tpw09926dag12f.domain1.systemhost.net (10.9.212.20) by EVMHT01-UKBR.domain1.systemhost.net (193.113.108.42) with Microsoft SMTP Server (TLS) id 8.3.342.0; Fri, 25 Aug 2017 09:37:57 +0100 Original-Received: from tpw09926dag12e.domain1.systemhost.net (10.9.212.12) by tpw09926dag12f.domain1.systemhost.net (10.9.212.20) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 25 Aug 2017 09:37:56 +0100 Original-Received: from tpw09926dag12e.domain1.systemhost.net ([fe80::b8c9:c264:c4b3:b898]) by tpw09926dag12e.domain1.systemhost.net ([fe80::b8c9:c264:c4b3:b898%12]) with mapi id 15.00.1293.002; Fri, 25 Aug 2017 09:37:56 +0100 Thread-Topic: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent? Thread-Index: AQHTHNYjY9CjYqE9/kGSEHgspxmKaqKTf0gugADFBOaAAHJIj4AACCKw In-Reply-To: <1503648698123.80907@bt.com> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.187.101.36] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136186 Archived-At: PS When I first load the bash script, if I run smie-config-show-indent on t= he line after "then", I get:=0A= =0A= Rules used: :elem basic -> 4, :after "then" -> nil=0A= =0A= If I then run smie-config-guess followed by smie-config-show-indent on the = same line, I now get:=0A= =0A= Rules used: :elem basic -> 2(via 4), :after "then" -> nil=0A= =0A= If I run smie-config-save (response: "Mode rules replaced in `smie-config'"= ) followed by customize-variable smie-config the value is simply:=0A= =0A= ((2 :elem basic 4))=