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: Mon, 4 Sep 2017 08:30:10 +0000 Message-ID: <1504513809301.60282@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> <87d17jam0g.fsf@users.sourceforge.net> <1503668647564.74012@bt.com>,<871sns8vm0.fsf@users.sourceforge.net> 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 1504513892 29358 195.159.176.226 (4 Sep 2017 08:31:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2017 08:31:32 +0000 (UTC) To: , <24848@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 04 10:31:28 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 1dommh-0006bS-CH for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 10:31:07 +0200 Original-Received: from localhost ([::1]:43162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dommo-00016F-4k for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Sep 2017 04:31:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dommf-00015a-G0 for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 04:31:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dommc-0003Jh-Be for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 04:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dommc-0003JO-88 for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dommb-0006qZ-Um for bug-gnu-emacs@gnu.org; Mon, 04 Sep 2017 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Sep 2017 08:31:01 +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: patch Original-Received: via spool by 24848-submit@debbugs.gnu.org id=B24848.150451382326273 (code B ref 24848); Mon, 04 Sep 2017 08:31:01 +0000 Original-Received: (at 24848) by debbugs.gnu.org; 4 Sep 2017 08:30:23 +0000 Original-Received: from localhost ([127.0.0.1]:47633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1domly-0006pg-M9 for submit@debbugs.gnu.org; Mon, 04 Sep 2017 04:30:22 -0400 Original-Received: from smtpb1.bt.com ([62.7.242.135]:42890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1domlx-0006pQ-KR for 24848@debbugs.gnu.org; Mon, 04 Sep 2017 04:30:22 -0400 Original-Received: from EVMHT04-UKBR.domain1.systemhost.net (193.113.108.57) by EVMED01-UKBR.bt.com (10.216.161.31) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 4 Sep 2017 09:30:11 +0100 Original-Received: from tpw09926dag12f.domain1.systemhost.net (10.9.212.20) by EVMHT04-UKBR.domain1.systemhost.net (193.113.108.57) with Microsoft SMTP Server (TLS) id 8.3.342.0; Mon, 4 Sep 2017 09:30:13 +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; Mon, 4 Sep 2017 09:30:10 +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; Mon, 4 Sep 2017 09:30:10 +0100 Thread-Topic: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent? Thread-Index: AQHTHNYjY9CjYqE9/kGSEHgspxmKaqKTf0gugADFBOaAAHJIj4AARNOCgAAXHmGACIiFj4AG2m5o In-Reply-To: <871sns8vm0.fsf@users.sourceforge.net> 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.39] 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:136567 Archived-At: 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 se= arched my entire hard drive for it (using sudo, just in case) and it wasn't= found.=0A= =0A= ________________________________________=0A= From: Noam Postavsky on behalf of npostavs@users.sourc= eforge.net =0A= Sent: 31 August 2017 00:49=0A= To: Wiseman,R,Richard,TUK2 R=0A= Cc: 24848@debbugs.gnu.org=0A= Subject: Re: bug#24848: [sh-script] How to save "Local rules set" result fr= om sh-learn-buffer-indent?=0A= =0A= tags 24848 + patch=0A= quit=0A= =0A= writes:=0A= =0A= > Anyway, to help get to the bottom of this, I disabled sh-indentation=0A= > and tried your steps around editing smie-config and M-x normal-mode=0A= > and I got the same result as you: it worked.=0A= >=0A= > So as you indicated, it appears to be that smie-config isn't being loaded= (properly) when Emacs starts.=0A= >=0A= > I await your next inspiration! :-)=0A= =0A= Okay, the patch below fixes the loading for me. I also added a mention=0A= of `smie-config-guess' in `sh-learn-buffer-indent's docstring so that it=0A= should be possible to figure how to save config rules by reading=0A= docstrings rather than hunting in the source code.=0A= =0A=