From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 13 14:13:45 2015 Received: (at submit) by debbugs.gnu.org; 13 Mar 2015 18:13:45 +0000 Received: from localhost ([127.0.0.1]:45409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWU5f-0007BE-Ts for submit@debbugs.gnu.org; Fri, 13 Mar 2015 14:13:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60526) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWTob-0006h6-L8 for submit@debbugs.gnu.org; Fri, 13 Mar 2015 13:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWToU-0001ci-PZ for submit@debbugs.gnu.org; Fri, 13 Mar 2015 13:56:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWToU-0001ce-NS for submit@debbugs.gnu.org; Fri, 13 Mar 2015 13:55:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWToS-0002P7-UC for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 13:55:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWToQ-0001bm-BJ for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 13:55:56 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:33106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWToQ-0001bZ-0v for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2015 13:55:54 -0400 Received: by wggz12 with SMTP id z12so24979515wgg.0 for ; Fri, 13 Mar 2015 10:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nNwlBrOWhXXqMnhPSKFlq7LUdM4b+zjrYjjwPQqd03w=; b=E2GS3sIf+ligkh7WaP9LzYxOxf/I0mYgu409q6hSQln+GslnA4XEIj8LU66G1513gO JoQ5ur7u5conCXQd+R/8nwBYXN+fULev1HM8dy4U7oDhvKxaSwf51w3jUQg0u8ccZzoG 9D28BtPLuQkmrCxYC/u7y4NUce4VXKF+jhllO5eddlTaibC1RXv2YO9UB1CTMYZEX9QX L1MW+96eAgkaqEU6NGZoJM+HGgRSE5MXPJ0FU20GLClaK9MOwK5Ay9woNEcsg3+At9fk 8KcdZwErxWUIuvVDzxT4UZnycqUjNvh9pOr2PBSlgT4B7GYFjQew6+D+l2MyKlHwiABZ M10g== MIME-Version: 1.0 X-Received: by 10.194.121.10 with SMTP id lg10mr101444409wjb.71.1426269352713; Fri, 13 Mar 2015 10:55:52 -0700 (PDT) Received: by 10.27.183.3 with HTTP; Fri, 13 Mar 2015 10:55:52 -0700 (PDT) Date: Fri, 13 Mar 2015 18:55:52 +0100 Message-ID: Subject: 24.4; sh-mode sets indent-line-function globally From: =?UTF-8?Q?Jens_Kjerrstr=C3=B6m?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e011771551f64be05112f36ec X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 13 Mar 2015 14:13:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e011771551f64be05112f36ec Content-Type: text/plain; charset=UTF-8 - Create a new buffer "*apa*". Should be in fundamental mode. Press return, notice no indentation. Check the value of variable indent-line-function, should be indent-relative. - Create a new buffer "*bepa*", insert "#!/bin/tcsh" on the first line. M-x sh-mode. The message "No indentation for this shell type." should appear. Press return in buffer "*bepa*", notice incorrect indentation. - Switch to buffer "*apa*", press return, notice that this now indents lines too. The value of indent-line-function is now sh-basic-indent-line. This is likely due to the following lines in sh-set-shell in sh-mode.el: ... (message "No indentation for this shell type.") (setq indent-line-function 'sh-basic-indent-line)) ... The above lines are the else branch of an if, in the if branch setq-local is used. In GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.3.9600 Configured using: `configure --prefix=/c/usr' Important settings: value of $LANG: SVE locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: global-company-mode: t company-mode: t helm-mode: t shell-dirtrack-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t show-paren-mode: t delete-selection-mode: t recentf-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t Recent messages: Loading c:/Users/Jens/AppData/Roaming/.emacs.d/recentf...done Cleaning up the recentf list...done (0 removed) zlib library not found ad-handle-definition: `tramp-read-passwd' got redefined Helm completion enabled Key Chord mode on For information about GNU Emacs and the GNU system, type C-h C-a. Making helm-map local to *helm M-x* while let-bound! Making helm-sources local to *helm M-x* while let-bound! Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils helm-command helm-elisp helm-eval eldoc company-files company-oddmuse company-keywords company-etags etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-ropemacs company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company jk-key-chords key-chord helm-mode helm-files rx image-dired tramp tramp-compat tramp-loaddefs trampver shell dired-x dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-vars mailcap bookmark pp helm-locate helm-help helm-org org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs helm-match-plugin helm-grep helm-regexp helm-plugin grep helm-external helm-utils dired compile comint ansi-color ring helm advice help-fns easy-mmode edmacro kmacro cl-macs gv helm-source eieio byte-opt bytecomp byte-compile cconv eieio-core info paren delsel jk-edit-functions jk-styles recentf tree-widget wid-edit cl-loaddefs cl-lib easymenu package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars 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 w32notify w32 multi-tty emacs) Memory information: ((conses 8 246070 8936) (symbols 32 34844 0) (miscs 32 76 161) (strings 16 69440 9436) (string-bytes 1 1982791) (vectors 8 27246) (vector-slots 4 577293 8296) (floats 8 165 76) (intervals 28 1659 624) (buffers 508 13)) --089e011771551f64be05112f36ec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

- Create a new buffer "*apa*". Should be in = fundamental mode. Press
=C2=A0 return, notice no indentation. Check the = value of variable
=C2=A0 indent-line-function, should be indent-relative= .

- Create a new buffer "*bepa*", insert "#!/bin/tcsh= " on the first
=C2=A0 line. M-x sh-mode. The message "No inden= tation for this shell type."
=C2=A0 should appear. Press return in = buffer "*bepa*", notice incorrect
=C2=A0 indentation.

-= Switch to buffer "*apa*", press return, notice that this now ind= ents
=C2=A0 lines too. The value of indent-line-function is now
=C2= =A0 sh-basic-indent-line.

This is likely due to the following lines = in sh-set-shell in sh-mode.el:

...
(message "No indentation = for this shell type.")
(setq indent-line-function 'sh-basic-ind= ent-line))
...

The above lines are the else branch of an if, in t= he if branch
setq-local is used.




In GNU Emacs 24.4.1 = (i686-pc-mingw32)
=C2=A0of 2014-10-24 on LEG570
Windowing system dist= ributor `Microsoft Corp.', version 6.3.9600
Configured using:
=C2= =A0`configure --prefix=3D/c/usr'

Important settings:
=C2=A0 v= alue of $LANG: SVE
=C2=A0 locale-coding-system: cp1252

Major mode= : Lisp Interaction

Minor modes in effect:
=C2=A0 global-company-m= ode: t
=C2=A0 company-mode: t
=C2=A0 helm-mode: t
=C2=A0 shell-dir= track-mode: t
=C2=A0 helm-match-plugin-mode: t
=C2=A0 helm-occur-matc= h-plugin-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 delete-selection-mo= de: t
=C2=A0 recentf-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 electri= c-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 file-name-shadow-m= ode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
= =C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0= auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient= -mark-mode: t

Recent input:
M-x r e p o r t <return>
Recent messages:
Loading c:/Users/Jens/AppData/Roaming/.emacs.d/recentf= ...done
Cleaning up the recentf list...done (0 removed)
zlib library = not found
ad-handle-definition: `tramp-read-passwd' got redefinedHelm completion enabled
Key Chord mode on
For information about GNU = Emacs and the GNU system, type C-h C-a.
Making helm-map local to *helm M= -x* while let-bound!
Making helm-sources local to *helm M-x* while let-b= ound!

Load-path shadows:
None found.

Features:
(shadow = sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies m= m-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc= 2047 rfc2045 ietf-drums mail-utils helm-command helm-elisp
helm-eval eld= oc company-files company-oddmuse company-keywords
company-etags etags co= mpany-gtags company-dabbrev-code company-dabbrev
company-capf company-cm= ake company-ropemacs company-xcode company-clang
company-semantic compan= y-eclim company-template company-css company-nxml
company-bbdb company j= k-key-chords key-chord helm-mode helm-files rx
image-dired tramp tramp-c= ompat tramp-loaddefs trampver shell dired-x
dired-aux ffap thingatpt hel= m-buffers helm-elscreen helm-tags
helm-bookmark helm-adaptive helm-info = helm-net browse-url xml url
url-proxy url-privacy url-expand url-methods= url-history url-cookie
url-domsuf url-util url-parse auth-source gnus-u= til mm-util mail-prsvr
password-cache url-vars mailcap bookmark pp helm-= locate helm-help
helm-org org org-macro org-footnote org-pcomplete pcomp= lete org-list
org-faces org-entities noutline outline org-version ob-ema= cs-lisp ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-co= mint
ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-f= unc
cal-menu calendar cal-loaddefs helm-match-plugin helm-grep helm-rege= xp
helm-plugin grep helm-external helm-utils dired compile comint
ans= i-color ring helm advice help-fns easy-mmode edmacro kmacro cl-macs
gv h= elm-source eieio byte-opt bytecomp byte-compile cconv eieio-core
info pa= ren delsel jk-edit-functions jk-styles recentf tree-widget
wid-edit cl-l= oaddefs cl-lib easymenu package epg-config time-date
tooltip electric un= iquify ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 ls-lisp w32-co= mmon-fns disp-table w32-win w32-vars tool-bar dnd
fontset image regexp-o= pt fringe tabulated-list newcomment lisp-mode
prog-mode register page me= nu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock synt= ax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnames= e 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 c= us-face macroexp files
text-properties overlay sha1 md5 base64 format en= v code-pages mule
custom widget hashtable-print-readable backquote make-= network-process
w32notify w32 multi-tty emacs)

Memory information= :
((conses 8 246070 8936)
=C2=A0(symbols 32 34844 0)
=C2=A0(miscs = 32 76 161)
=C2=A0(strings 16 69440 9436)
=C2=A0(string-bytes 1 198279= 1)
=C2=A0(vectors 8 27246)
=C2=A0(vector-slots 4 577293 8296)
=C2= =A0(floats 8 165 76)
=C2=A0(intervals 28 1659 624)
=C2=A0(buffers 508= 13))

--089e011771551f64be05112f36ec-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 13 14:15:26 2015 Received: (at 20101) by debbugs.gnu.org; 13 Mar 2015 18:15:26 +0000 Received: from localhost ([127.0.0.1]:45414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWU7K-0007Ev-CE for submit@debbugs.gnu.org; Fri, 13 Mar 2015 14:15:26 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59439 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWU7H-0007Ek-O3 for 20101@debbugs.gnu.org; Fri, 13 Mar 2015 14:15:24 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YWU7G-0000Fm-Oc; Fri, 13 Mar 2015 14:15:22 -0400 From: Glenn Morris To: Jens =?utf-8?Q?Kjerrstr=C3=B6m?= Subject: Re: bug#20101: 24.4; sh-mode sets indent-line-function globally References: X-Spook: Panama mailbomb enigma BRLO Ft. Meade enforcers X-Ran: d`ZTlYC8Tw>`v\D1?~}#76CH}Qf{c;{2=6e'rWk.@(rd[_Kt$%BfIK?!:f+cL@4`?"pu(O X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 13 Mar 2015 14:15:22 -0400 In-Reply-To: ("Jens =?utf-8?Q?Kjerrstr=C3=B6m=22's?= message of "Fri, 13 Mar 2015 18:55:52 +0100") Message-ID: <0jlhj0zrut.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20101 Cc: 20101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Thanks, already fixed. http://debbugs.gnu.org/19433 From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 13 14:16:02 2015 Received: (at control) by debbugs.gnu.org; 13 Mar 2015 18:16:02 +0000 Received: from localhost ([127.0.0.1]:45417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWU7t-0007Fw-Qz for submit@debbugs.gnu.org; Fri, 13 Mar 2015 14:16:02 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59456 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWU7s-0007Fm-HR for control@debbugs.gnu.org; Fri, 13 Mar 2015 14:16:00 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YWU7s-0000JI-At for control@debbugs.gnu.org; Fri, 13 Mar 2015 14:16:00 -0400 Date: Fri, 13 Mar 2015 14:16:00 -0400 Message-Id: Subject: control message for bug 20101 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) unarchive 19433 forcemerge 19433 20101 From unknown Sat Jun 21 17:32:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 11 Apr 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 12:24:01 2015 Received: (at control) by debbugs.gnu.org; 12 May 2015 16:24:01 +0000 Received: from localhost ([127.0.0.1]:42580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCyO-00051o-MU for submit@debbugs.gnu.org; Tue, 12 May 2015 12:24:01 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:57609 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCyM-00051f-KO for control@debbugs.gnu.org; Tue, 12 May 2015 12:23:58 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YsCyM-0005rf-CZ for control@debbugs.gnu.org; Tue, 12 May 2015 12:23:58 -0400 Date: Tue, 12 May 2015 12:23:58 -0400 Message-Id: Subject: control message for bug 20557 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) unarchive 19433 forcemerge 19433 20557 From unknown Sat Jun 21 17:32:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Jun 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator