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


Message #34 received at 24848 <at> debbugs.gnu.org (full text, mbox):

From: <richard.wiseman <at> bt.com>
To: <npostavs <at> gmail.com>, <24848 <at> debbugs.gnu.org>
Subject: Re: bug#24848: [sh-script] How to save "Local rules set" result from
 sh-learn-buffer-indent?
Date: Fri, 25 Aug 2017 14:31:10 +0000
A little extra information that will possibly muddy the waters...

I've the same version of Emacs on a Windows machine (I use Linux Mint normally) and I've essentially the same ~/.emacs file on both machines, but for some reason the Windows one behaves differently for bash scripts!  Perhaps the sh-mode comes from somewhere else or is a different version, I don't know.  On Windows, though, when I go to a correctly indented line in a function and press tab, it indents incorrectly! :-(

So for example,

#!/usr/bin/env bash

function f {
  echo Hello from the function
}

f

On Windows, when I'm on the "echo" line and press tab, it indents to 4 spaces; on Linux it doesn't.



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.