From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9110: how to map sh-mode to mean bash-mode Date: Sun, 17 Jul 2011 19:02:26 -0400 Message-ID: <5e1uxoa4u5.fsf@fencepost.gnu.org> References: <4E232057.1040409@easy-emacs.de> <871uxovdtu.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310943812 2051 80.91.229.12 (17 Jul 2011 23:03:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 23:03:32 +0000 (UTC) To: 9110-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 18 01:03:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiaMy-0005OV-1K for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jul 2011 01:03:28 +0200 Original-Received: from localhost ([::1]:35705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiaMx-0007W4-4S for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 19:03:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiaMZ-0007Vg-HN for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 19:03:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiaMY-0001vm-Ag for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 19:03:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiaMY-0001vf-5O for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 19:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QiaMY-00006O-0D for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 19:03:02 -0400 Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jul 2011 23:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 9110 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 9110@debbugs.gnu.org, rgm@gnu.org Original-Received: via spool by 9110-done@debbugs.gnu.org id=D9110.1310943754348 (code D ref 9110); Sun, 17 Jul 2011 23:03:01 +0000 Original-Received: (at 9110-done) by debbugs.gnu.org; 17 Jul 2011 23:02:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiaM5-00005Z-7Q for submit@debbugs.gnu.org; Sun, 17 Jul 2011 19:02:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiaM4-00005P-3L for 9110-done@debbugs.gnu.org; Sun, 17 Jul 2011 19:02:32 -0400 Original-Received: from localhost ([127.0.0.1]:59722) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiaLy-00060B-Q4; Sun, 17 Jul 2011 19:02:26 -0400 X-Spook: subversive DRM Mena MDA government Roswell pipeline AVIP X-Ran: "]Wm{5b#v\&XZ#[I'j<%7e/~^::l@yWXK=|~[/Npip}xM:8c7KBI2heleU=$Co1?S]7r^) X-Hue: magenta X-Attribution: GM In-Reply-To: <871uxovdtu.fsf@jidanni.org> (jidanni@jidanni.org's message of "Mon, 18 Jul 2011 04:42:37 +0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 17 Jul 2011 19:03:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49362 Archived-At: jidanni@jidanni.org wrote: > As you know, the bash shell likes to call itself sh sometimes. > But it is really still bash. No, it isn't. > Hence I would like to make my emacs assume anything it thinks is sh is > really bash, and thus show me "bash" in the mode line, not "sh", no > matter how smart it thinks it is. (add-hook 'sh-mode-hook '(lambda () (and buffer-file-name (string-match "\\.sh\\'" buffer-file-name) (sh-set-shell "bash"))))