From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent? Date: Fri, 22 Sep 2017 18:46:19 -0400 Message-ID: <87h8vunyh0.fsf@users.sourceforge.net> 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> <1504513809301.60282@bt.com> <87o9qkg4tn.fsf@users.sourceforge.net> <1505115881331.63387@bt.com> <1505123630318.10795@bt.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506120433 6240 195.159.176.226 (22 Sep 2017 22:47:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Sep 2017 22:47:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: 24848@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 23 00:47:07 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 1dvWiv-0001BG-ED for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 00:47:05 +0200 Original-Received: from localhost ([::1]:33049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvWj2-0003bc-U8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Sep 2017 18:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvWix-0003bT-FC for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 18:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvWit-0003Nx-GZ for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 18:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvWit-0003No-DM for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 18:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dvWis-0000SA-5W for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2017 18:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2017 22:47: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: patch Original-Received: via spool by 24848-submit@debbugs.gnu.org id=B24848.15061203901703 (code B ref 24848); Fri, 22 Sep 2017 22:47:02 +0000 Original-Received: (at 24848) by debbugs.gnu.org; 22 Sep 2017 22:46:30 +0000 Original-Received: from localhost ([127.0.0.1]:53323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvWiM-0000RP-Er for submit@debbugs.gnu.org; Fri, 22 Sep 2017 18:46:30 -0400 Original-Received: from mail-io0-f169.google.com ([209.85.223.169]:48067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvWiK-0000RD-H7 for 24848@debbugs.gnu.org; Fri, 22 Sep 2017 18:46:29 -0400 Original-Received: by mail-io0-f169.google.com with SMTP id e189so5797481ioa.4 for <24848@debbugs.gnu.org>; Fri, 22 Sep 2017 15:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=adX5UrmumsPfSpiLvLzfcKMRboyEePIau8/Ns8DKUt4=; b=kZ/MfuxIlox0hEdSzmB7vxpC0mrhRTr2LgDhlxAe+M6jtLy5pLQ/Ue5ZYvKiFJyu/z PRTCJSUEjKsW5D0Qh0OQZ3LxWFzRD3qflJGPBqH8C3IN2ry7mNd53rHUc1zMBDnilaHU Wnm81fbfR0vct6XV/mnftylOnND/Dt1q/OT0YBDQ4odzoDX0du9Zmrra2n8JN6pfisT8 he4IrAI1H45i8zhGWeKOyo1fHxf9oIaAOpY8i6Ze+iS9NnSAVu5sjJMJiDbBlYVb65NF w2fUVJa870Phu+suxuTRkrmWAox/N5h34QrBdNuIYPfHw8uMyQ4fSDSMOc+xTpNfkCmE bDKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=adX5UrmumsPfSpiLvLzfcKMRboyEePIau8/Ns8DKUt4=; b=k7ryQjzf5PK3nv2kUyjTjgJSIcVxVgNOyM6POjse3pEKE4ONvf1F1oBoaZj03bmcC6 thY5JZIb7HGvw0NgYKBBbs3LAWK2pCsaXHGgqw3Heo/JNVSwkvCZLYh+JIpv+pVdaDne fb72GHJlTD+0v+yS+ZT6bdTRImLP4zmW79kU6aGlOaKrRvytumVW4SlgKijlTdYp9nnH 8Fs/D9rfnEkJR13r9+KLO/rnqulsI0bPNQp76f3Uz5c5OjpByKpdO+cQ1rwRTBv9HfZG 7Y4WeQ62bupkSwE54ugllov/0p72wLlF4GGfIhOq40WczeiE8WDlfp+PpKe06NiuMel5 0VcQ== X-Gm-Message-State: AHPjjUiKsKf+CxCVuEm8/VvosCkcDS8JFhQqGl8fxGWZ8zrI4li4Ngod pgD4y34gQck/fhNqeiU5aXfosw== X-Google-Smtp-Source: AOwi7QDTFWF1EjUIP5OfdmsTuURhUxmJ8d2wHQLIreMEw5xsWfjR1GbFlVBCxgkM6c533Uq9/5P2uQ== X-Received: by 10.107.7.159 with SMTP id g31mr996967ioi.250.1506120382546; Fri, 22 Sep 2017 15:46:22 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e95sm442993iod.30.2017.09.22.15.46.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2017 15:46:21 -0700 (PDT) In-Reply-To: <1505123630318.10795@bt.com> (richard wiseman's message of "Mon, 11 Sep 2017 09:53:50 +0000") 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:137259 Archived-At: writes: > I've added the code to an unzipped version of smie.el and to > sh-script.el and byte-compiled both. Emacs loads without errors now, > but to be honest, I'm unsure how to check that it now loads > smie-config properly! I load a script file and check the value of > smie-config and it says it's set for the current session only but its > value is nil. Well, the best way to check would to remove the setting of sh-indentation and make sure you still get the indentation you want. However, since you're saying smie-config is nil, it seems something went wrong. Do you have the patched smie.elc on your load-path (i.e., does M-x locate-library RET smie RET point to the patched version)? > My ~/.emacs contains, amongst many other things: > > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(sh-basic-offset 2) > '(sh-indentation 2) > '(smie-config (quote ((sh-mode (2 :elem basic 4))))) > '(tab-width 2)) Since you have the smie-config set in your custom variable block, I can't quite see how it ended up as nil. Is it possible something else in your config is resetting it?