unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24848: 24.5; "Local rules set"
@ 2016-11-01 15:07 richard.wiseman
  2017-08-24 11:39 ` bug#24848: Any progress? richard.wiseman
  0 siblings, 1 reply; 24+ messages in thread
From: richard.wiseman @ 2016-11-01 15:07 UTC (permalink / raw)
  To: 24848

[-- Attachment #1: Type: text/plain, Size: 5232 bytes --]

--text follows this line--

I tried to send this earlier but I think it failed.  I got no confirmation of it sending anyway, so here's essentially the same thing again...

I've been using sh-mode to edit bash scripts, but I noticed that the indent after a "then" was twice what it should be (and twice what it is after an "else").  I googled and discovered that I can run "sh-learn-buffer-indent" to learn the indentation that I want; this prompted me of a shortcut "C-c >" which I've then been using.

It works perfectly!

But it only applies to the current session and all the "C-c >" command says when complete is "Local rules set".  It doesn't say what those rules are or how to make them permanent.  It doesn't even say what it means by "rules" actually.  I put a question on StackOverflow and was recommended to submit a bug report, hence this email.

So could the "Local rules set" message be changed to include instructions on how to make the changes permanent please?

Thanks,

Richard




In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-17 on lgw01-04, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11803000
System Description: Linux Mint 18 Sarah

Configured using:
 `configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Shell-script

Minor modes in effect:
  sh-electric-here-document-mode: t
  delete-selection-mode: t
  show-paren-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:

C-x M-i is undefined
byte-code: End of buffer [4 times]
byte-code: Beginning of buffer [16 times]

Load-path shadows:
/usr/share/emacs/24.5/site-lisp/sgml-mode hides /usr/share/emacs/site-lisp/sgml-mode
/usr/share/emacs/24.5/site-lisp/php-mode hides /usr/share/emacs/site-lisp/php-mode
/usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.5/site-lisp/sgml-mode hides /usr/share/emacs/24.5/lisp/textmodes/sgml-mode
/usr/share/emacs/24.5/site-lisp/sh-script hides /usr/share/emacs/24.5/lisp/progmodes/sh-script

Features:
(mailalias mailclient browse-url shadow sort gnus-util mail-extr
emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pp apropos
cus-theme eieio-custom eieio byte-opt bytecomp byte-compile cl-extra
cconv eieio-core wid-browse tree-widget cus-edit wid-edit help-mode
easymenu tabify sh-script smie executable web-mode advice help-fns
disp-table edmacro kmacro cl-loaddefs cl-lib sgml-mode delsel paren
cus-start cus-load time-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 138222 26012)
 (symbols 48 23067 0)
 (miscs 40 111 525)
 (strings 32 27088 5121)
 (string-bytes 1 727532)
 (vectors 16 15338)
 (vector-slots 8 465085 10423)
 (floats 8 90 790)
 (intervals 56 1256 253)
 (buffers 960 17)
 (heap 1024 34477 1884))




[-- Attachment #2: Type: text/html, Size: 7381 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-09-25 23:41 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01 15:07 bug#24848: 24.5; "Local rules set" richard.wiseman
2017-08-24 11:39 ` bug#24848: Any progress? richard.wiseman
2017-08-24 12:41   ` bug#24848: [sh-script] How to save "Local rules set" result from sh-learn-buffer-indent? npostavs
2017-08-24 13:44     ` richard.wiseman
2017-08-25  1:12       ` npostavs
2017-08-25  8:11         ` richard.wiseman
2017-08-25  8:37           ` richard.wiseman
2017-08-25 12:07           ` npostavs
2017-08-25 13:44             ` richard.wiseman
2017-08-25 14:31               ` richard.wiseman
2017-08-26 20:08                 ` Noam Postavsky
2017-08-29  7:43                   ` richard.wiseman
2017-08-30 23:49               ` npostavs
2017-09-04  8:30                 ` richard.wiseman
2017-09-08 23:15                   ` npostavs
2017-09-11  7:44                     ` richard.wiseman
2017-09-11  9:53                       ` richard.wiseman
2017-09-11 18:48                         ` npostavs
2017-09-12  7:09                           ` richard.wiseman
2017-09-22 22:46                         ` Noam Postavsky
2017-09-25 11:10                           ` richard.wiseman
2017-09-25 12:19                             ` Noam Postavsky
2017-09-25 13:06                               ` richard.wiseman
2017-09-25 23:41                                 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).