From unknown Thu Aug 14 21:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts Resent-From: Andrew Pennebaker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jul 2014 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17991@debbugs.gnu.org X-Debbugs-Original-To: Emacs Bugs Received: via spool by submit@debbugs.gnu.org id=B.140501605817586 (code B ref -1); Thu, 10 Jul 2014 18:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jul 2014 18:14:18 +0000 Received: from localhost ([127.0.0.1]:52485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5IrF-0004ZV-9L for submit@debbugs.gnu.org; Thu, 10 Jul 2014 14:14:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54034) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5Ir8-0004Yz-Q1 for submit@debbugs.gnu.org; Thu, 10 Jul 2014 14:14:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5Ir2-00047a-Gy for submit@debbugs.gnu.org; Thu, 10 Jul 2014 14:14:01 -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.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5Ir2-00047W-Dx for submit@debbugs.gnu.org; Thu, 10 Jul 2014 14:14:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5Ir1-00030Z-Ed for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 14:14:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5Ir0-000479-88 for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 14:13:59 -0400 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:35053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5Ir0-000472-2v for bug-gnu-emacs@gnu.org; Thu, 10 Jul 2014 14:13:58 -0400 Received: by mail-ie0-f182.google.com with SMTP id y20so2003581ier.41 for ; Thu, 10 Jul 2014 11:13:57 -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=9wbqEdzNvN+JiCGGoKhFCSr4LoI3teaZPRuUbsE0i98=; b=bk1YyXxsxZR4zkMLaeCDeZqSO8DSOdNXDLCEKWudFx0CRuZ5WrezY9t0IZe8lL2dQd pAc2SK09A6pLhCRiwBZDwiUfnR2o0BLvlGdvNuipQnQ/Y7XSfHbrEpPw/7uTyGCfHXZS Y9cD1o0y2G0AKo1cfHR79Am+m5wokbYNl5LEoXmnB5ElzQrp/nkHcKIxA9+q/tkxwQBo IljPKsjZh1ckfFwq+YfC9Hzo1/ScsDOu8Z1tZneKa0x/0lmT/l0Zq6wYBYD3novKujXN 7CAUn+c7yDsd11s1v+hw9eceDSSQA49eL6SW3EE43a00n0Sc58M9s0U93c4xGhmpD6zH QBEA== MIME-Version: 1.0 X-Received: by 10.50.43.202 with SMTP id y10mr23640760igl.10.1405016037276; Thu, 10 Jul 2014 11:13:57 -0700 (PDT) Received: by 10.42.16.16 with HTTP; Thu, 10 Jul 2014 11:13:57 -0700 (PDT) Date: Thu, 10 Jul 2014 13:13:57 -0500 Message-ID: From: Andrew Pennebaker Content-Type: multipart/alternative; boundary=089e011604bace480804fddac99c 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-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 (----) --089e011604bace480804fddac99c Content-Type: text/plain; charset=UTF-8 Would be helpful if shell-mode understood that .bashrc*, .profile*, etc. are shell scripts. Right now, they are treated as fundamental. -- Cheers, Andrew Pennebaker www.yellosoft.us --089e011604bace480804fddac99c Content-Type: text/html; charset=UTF-8
Would be helpful if shell-mode understood that .bashrc*, .profile*, etc. are shell scripts. Right now, they are treated as fundamental.

--
Cheers,

Andrew Pennebaker
--089e011604bace480804fddac99c-- From unknown Thu Aug 14 21:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jul 2014 18:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Andrew Pennebaker Cc: 17991@debbugs.gnu.org Received: via spool by 17991-submit@debbugs.gnu.org id=B17991.140501660418722 (code B ref 17991); Thu, 10 Jul 2014 18:24:02 +0000 Received: (at 17991) by debbugs.gnu.org; 10 Jul 2014 18:23:24 +0000 Received: from localhost ([127.0.0.1]:52495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5J03-0004ri-IT for submit@debbugs.gnu.org; Thu, 10 Jul 2014 14:23:24 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49712 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5Izw-0004rR-3J for 17991@debbugs.gnu.org; Thu, 10 Jul 2014 14:23:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1X5Izv-0008Vd-8a; Thu, 10 Jul 2014 14:23:11 -0400 From: Glenn Morris References: X-Spook: nuclear insurgency Uzi FSF doctrine Ortega Kosovo csim X-Ran: `G:]T#L:l}/AP (Andrew Pennebaker's message of "Thu, 10 Jul 2014 13:13:57 -0500") Message-ID: 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.7 (-----) 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.7 (-----) Andrew Pennebaker wrote: > Would be helpful if shell-mode understood that .bashrc*, .profile*, etc. > are shell scripts. Right now, they are treated as fundamental. Works for me. emacs-24.3 -Q .profile -> shell-script emacs-24.3 -Q .bashrc -> shell-script C-h v auto-mode-alist ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" . sh-mode) ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode) From unknown Thu Aug 14 21:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts Resent-From: Andrew Pennebaker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jul 2014 19:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Glenn Morris Cc: 17991@debbugs.gnu.org Received: via spool by 17991-submit@debbugs.gnu.org id=B17991.140501986425451 (code B ref 17991); Thu, 10 Jul 2014 19:18:01 +0000 Received: (at 17991) by debbugs.gnu.org; 10 Jul 2014 19:17:44 +0000 Received: from localhost ([127.0.0.1]:52560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5Jqe-0006cJ-F5 for submit@debbugs.gnu.org; Thu, 10 Jul 2014 15:17:44 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:51876) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5JqZ-0006bs-A2 for 17991@debbugs.gnu.org; Thu, 10 Jul 2014 15:17:39 -0400 Received: by mail-ig0-f169.google.com with SMTP id r10so3380257igi.0 for <17991@debbugs.gnu.org>; Thu, 10 Jul 2014 12:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NhjxjoUR2dm0fTq8yJ3Mo7MmyS4wsQagxBUYcZP9cvM=; b=sEbgSpxzWMyW7s9ThAao8ckln4BUWFQ8gRDG/R+11H3A3rwsHoO0YIw+8/CSg9mi3O HbgkRPgsJn52S9/6MO7BIMsYGuaroUnEpcWIGiLcVVTuNeDRmRbYFCCiCwn7N+E01spL HAIG5Hrkmm62txdomR6J4ELdh61diJshobRR4K9+eF3g4o5fPm+6/O33KMg3e5pN60NK VXaoL9Al8rFkqDU6SF0Xnc1utFogmkd4fqnJ7sRLZuuhIGox3h3XYUB/RvA7xyTK/umz WAMItvHu5fuxm/Sq2xhbDoAEjOL/8QvYuD4g8CHmg15PlpmmYPAOhOZhoSoI1cO5y9dJ MLLw== MIME-Version: 1.0 X-Received: by 10.42.202.14 with SMTP id fc14mr57422716icb.8.1405019849767; Thu, 10 Jul 2014 12:17:29 -0700 (PDT) Received: by 10.42.16.16 with HTTP; Thu, 10 Jul 2014 12:17:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 10 Jul 2014 14:17:29 -0500 Message-ID: From: Andrew Pennebaker Content-Type: multipart/alternative; boundary=20cf301afbff0c445404fddbadc0 X-Spam-Score: -0.7 (/) 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: -0.7 (/) --20cf301afbff0c445404fddbadc0 Content-Type: text/plain; charset=UTF-8 Yes, same on my machine. I think this problem is specific to alternative config files (I've got a ".bashrc" for primary computer, ".bashrc-cygwin" for Windows, ".bashrc-android" for Android, and so on. Could the default auto-mode-alist entry be tweaked to include any file with ".bashrc" as a prefix? On Thu, Jul 10, 2014 at 1:23 PM, Glenn Morris wrote: > Andrew Pennebaker wrote: > > > Would be helpful if shell-mode understood that .bashrc*, .profile*, etc. > > are shell scripts. Right now, they are treated as fundamental. > > Works for me. > > emacs-24.3 -Q .profile -> shell-script > emacs-24.3 -Q .bashrc -> shell-script > > C-h v auto-mode-alist > ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) > ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" > . sh-mode) > > ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" > . sh-mode) > -- Cheers, Andrew Pennebaker www.yellosoft.us --20cf301afbff0c445404fddbadc0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, same on my machine.

I think this problem = is specific to alternative config files (I've got a ".bashrc"= for primary computer, ".bashrc-cygwin" for Windows, ".bashr= c-android" for Android, and so on.

Could the default auto-mode-alist entry be tweaked to include any= file with ".bashrc" as a prefix?


On Thu, Jul 10, 2014 at 1:23 PM, Gl= enn Morris <rgm@gnu.org> wrote:
Andrew Pennebaker wrote:

> Would be helpful if shell-mode understood that .bashrc*, .profile*, et= c.
> are shell scripts. Right now, they are treated as fundamental.

Works for me.

emacs-24.3 -Q .profile =C2=A0 =C2=A0-> shell-script
emacs-24.3 -Q .bashrc =C2=A0 =C2=A0 -> shell-script

C-h v auto-mode-alist
=C2=A0("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'"= ; . sh-mode)
=C2=A0("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?log= out\\)\\'"
=C2=A0. sh-mode)
=C2=A0("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?= cshrc\\|esrc\\)\\'"
=C2=A0. sh-mode)



--
Cheers,
=
Andrew Pennebaker
--20cf301afbff0c445404fddbadc0-- From unknown Thu Aug 14 21:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts Resent-From: Kevin Rodgers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jul 2014 07:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: 17991@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140506317414675 (code B ref -1); Fri, 11 Jul 2014 07:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2014 07:19:34 +0000 Received: from localhost ([127.0.0.1]:52826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5V7C-0003oX-Qc for submit@debbugs.gnu.org; Fri, 11 Jul 2014 03:19:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37105) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5V77-0003o8-Vb for submit@debbugs.gnu.org; Fri, 11 Jul 2014 03:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5V6w-0004xP-UF for submit@debbugs.gnu.org; Fri, 11 Jul 2014 03:19:20 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5V6w-0004xL-Rp for submit@debbugs.gnu.org; Fri, 11 Jul 2014 03:19:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5V6r-0006c0-Ed for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 03:19:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5V6m-0004t8-45 for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 03:19:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:49986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5V6l-0004sW-Tr for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 03:19:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X5V6k-0005C3-M1 for bug-gnu-emacs@gnu.org; Fri, 11 Jul 2014 09:19:02 +0200 Received: from 71-212-253-190.hlrn.qwest.net ([71.212.253.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jul 2014 09:19:02 +0200 Received: from kevin.d.rodgers by 71-212-253-190.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jul 2014 09:19:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Kevin Rodgers Date: Fri, 11 Jul 2014 01:19:40 -0600 Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 71-212-253-190.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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.1 (----) 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.1 (----) On 7/10/14 1:17 PM, Andrew Pennebaker wrote: > Yes, same on my machine. > > I think this problem is specific to alternative config files (I've got a > ".bashrc" for primary computer, ".bashrc-cygwin" for Windows, ".bashrc-android" > for Android, and so on. > > Could the default auto-mode-alist entry be tweaked to include any file with > ".bashrc" as a prefix? Why not just add a major mode cookie (comment) at the top of your non-standardly-named files? # -*- mode: sh; -*- > On Thu, Jul 10, 2014 at 1:23 PM, Glenn Morris > > wrote: > > Andrew Pennebaker wrote: > > > Would be helpful if shell-mode understood that .bashrc*, .profile*, etc. > > are shell scripts. Right now, they are treated as fundamental. > > Works for me. > > emacs-24.3 -Q .profile -> shell-script > emacs-24.3 -Q .bashrc -> shell-script > > C-h v auto-mode-alist > ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) > ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'" > . sh-mode) > ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" > . sh-mode) > > > > > -- > Cheers, > > Andrew Pennebaker > www.yellosoft.us -- Kevin Rodgers Denver, Colorado, USA From unknown Thu Aug 14 21:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts Resent-From: Andrew Pennebaker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jul 2014 12:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Kevin Rodgers Cc: 17991@debbugs.gnu.org Received: via spool by 17991-submit@debbugs.gnu.org id=B17991.140508123421271 (code B ref 17991); Fri, 11 Jul 2014 12:21:02 +0000 Received: (at 17991) by debbugs.gnu.org; 11 Jul 2014 12:20:34 +0000 Received: from localhost ([127.0.0.1]:53082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5ZoU-0005Wx-Ju for submit@debbugs.gnu.org; Fri, 11 Jul 2014 08:20:34 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:41603) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5ZoO-0005Wa-Fa for 17991@debbugs.gnu.org; Fri, 11 Jul 2014 08:20:28 -0400 Received: by mail-ie0-f176.google.com with SMTP id tr6so813663ieb.35 for <17991@debbugs.gnu.org>; Fri, 11 Jul 2014 05:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tV1ZlHL3n7hGx0i0wmW7s+531Jn2WUv4BfOsTN8kTOM=; b=IL3uRmBV3TR2M4SISAccZ1/o9C0MTpekLKuxRFnx5E5kADLBz5impRqzftdjhgFAFd wDPEps9SryupMxhf7kO4BblZEQAWLJGq5dYfHmv/gd5pLMZihv+gxT5bu6iYRydimiSV SrGQ9Vzjfx0eeRb1h29ecJuHgEI+RE2J7Q3yZksyLtfs7Vm6vop/eA+2ZL6jOwv3kyYp 0O3ymfezaYtES4fnmo3zt0/TrjCy92JH3J8rKKJfFkibCib0IaQ5y+y/jv/HEluxdmcV OZGCxvx56TgLo/3wIHRyydbeIJ3I0CClmiQrQuOWysCes2YlsjTtA296P5sEtgy1yPXv kIxg== MIME-Version: 1.0 X-Received: by 10.42.202.14 with SMTP id fc14mr4376348icb.8.1405081218650; Fri, 11 Jul 2014 05:20:18 -0700 (PDT) Received: by 10.42.16.16 with HTTP; Fri, 11 Jul 2014 05:20:18 -0700 (PDT) Received: by 10.42.16.16 with HTTP; Fri, 11 Jul 2014 05:20:18 -0700 (PDT) In-Reply-To: References: Date: Fri, 11 Jul 2014 07:20:18 -0500 Message-ID: From: Andrew Pennebaker Content-Type: multipart/alternative; boundary=20cf301afbffeb1a9704fde9f68c X-Spam-Score: -0.7 (/) 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: -0.7 (/) --20cf301afbffeb1a9704fde9f68c Content-Type: text/plain; charset=UTF-8 That's not a bad idea. Personally, I don't like inserting any editor-specific text in my code (I woundn't use the equivalent Vim cookie either). My current workaround is to manually add (.\bashrc|\.profile).* to auto-mode-alist. I just wish this were the default pattern. ... is there another convention for naming multiple bash configs, per machine, that matches the existing patterns? I guess I could use ". bashrc.android.sh", ugly but functional. On Jul 11, 2014 2:20 AM, "Kevin Rodgers" wrote: > On 7/10/14 1:17 PM, Andrew Pennebaker wrote: > >> Yes, same on my machine. >> >> I think this problem is specific to alternative config files (I've got a >> ".bashrc" for primary computer, ".bashrc-cygwin" for Windows, >> ".bashrc-android" >> for Android, and so on. >> >> Could the default auto-mode-alist entry be tweaked to include any file >> with >> ".bashrc" as a prefix? >> > > Why not just add a major mode cookie (comment) at the top of your > non-standardly-named files? > > # -*- mode: sh; -*- > > On Thu, Jul 10, 2014 at 1:23 PM, Glenn Morris > rgm@gnu.org>> >> wrote: >> >> Andrew Pennebaker wrote: >> >> > Would be helpful if shell-mode understood that .bashrc*, >> .profile*, etc. >> > are shell scripts. Right now, they are treated as fundamental. >> >> Works for me. >> >> emacs-24.3 -Q .profile -> shell-script >> emacs-24.3 -Q .bashrc -> shell-script >> >> C-h v auto-mode-alist >> ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode) >> ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_ >> login\\|z?logout\\)\\'" >> . sh-mode) >> ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\| >> bashrc\\|t?cshrc\\|esrc\\)\\'" >> . sh-mode) >> >> >> >> >> -- >> Cheers, >> >> Andrew Pennebaker >> www.yellosoft.us >> > > > -- > Kevin Rodgers > Denver, Colorado, USA > > > > > --20cf301afbffeb1a9704fde9f68c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

That's not a bad idea.

Personally, I don't like inserting any editor-specific t= ext in my code (I woundn't use the equivalent Vim cookie either).

My current workaround is to manually add (.\bashrc|\.profile= ).* to auto-mode-alist. I just wish this were the default pattern.

... is there another convention for naming multiple bash con= figs, per machine, that matches the existing patterns? I guess I could use = ".bashrc.android.sh", ug= ly but functional.

On Jul 11, 2014 2:20 AM, "Kevin Rodgers&quo= t; <kevin.d.rodgers@gmail.c= om> wrote:
On 7/10/14 1:17 PM, Andrew Pennebaker wrote:
Yes, same on my machine.

I think this problem is specific to alternative config files (I've got = a
".bashrc" for primary computer, ".bashrc-cygwin" for Wi= ndows, ".bashrc-android"
for Android, and so on.

Could the default auto-mode-alist entry be tweaked to include any file with=
".bashrc" as a prefix?

Why not just add a major mode cookie (comment) at the top of your
non-standardly-named files?

# -*- mode: sh; -*-

On Thu, Jul 10, 2014 at 1:23 PM, Glenn Morris <rgm@gnu.org <mailto:rgm@gnu.org>>
wrote:

=C2=A0 =C2=A0 Andrew Pennebaker wrote:

=C2=A0 =C2=A0 =C2=A0> Would be helpful if shell-mode understood that .ba= shrc*, .profile*, etc.
=C2=A0 =C2=A0 =C2=A0> are shell scripts. Right now, they are treated as = fundamental.

=C2=A0 =C2=A0 Works for me.

=C2=A0 =C2=A0 emacs-24.3 -Q .profile =C2=A0 =C2=A0-> shell-script
=C2=A0 =C2=A0 emacs-24.3 -Q .bashrc =C2=A0 =C2=A0 -> shell-script

=C2=A0 =C2=A0 C-h v auto-mode-alist
=C2=A0 =C2=A0 =C2=A0 ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\= .z?profile\\'" . sh-mode)
=C2=A0 =C2=A0 =C2=A0 ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?logi= n\\|bash_login\\|z?logout\\)\\'"
=C2=A0 =C2=A0 =C2=A0 . sh-mode)
=C2=A0 =C2=A0 =C2=A0 ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|= [kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'"
=C2=A0 =C2=A0 =C2=A0 . sh-mode)




--
Cheers,

Andrew Pennebaker
www.yellosoft.us = <http://www.yellos= oft.us>


--
Kevin Rodgers
Denver, Colorado, USA




--20cf301afbffeb1a9704fde9f68c-- From unknown Thu Aug 14 21:50:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17991: shell-mode: fails to recognize .bashrc files as shell scripts Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jul 2014 12:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17991 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Andrew Pennebaker Cc: Kevin Rodgers , 17991@debbugs.gnu.org Received: via spool by 17991-submit@debbugs.gnu.org id=B17991.140508316525248 (code B ref 17991); Fri, 11 Jul 2014 12:53:01 +0000 Received: (at 17991) by debbugs.gnu.org; 11 Jul 2014 12:52:45 +0000 Received: from localhost ([127.0.0.1]:53098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5aJg-0006Z9-OC for submit@debbugs.gnu.org; Fri, 11 Jul 2014 08:52:45 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:55952) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5aJd-0006Yu-JU for 17991@debbugs.gnu.org; Fri, 11 Jul 2014 08:52:42 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3h8vL03zjmz3hj3G; Fri, 11 Jul 2014 14:52:40 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3h8vL02G1xz7S6Kl; Fri, 11 Jul 2014 14:52:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id Kxguq-scT26x; Fri, 11 Jul 2014 14:52:39 +0200 (CEST) X-Auth-Info: dy4pvcSM4skXrAQzhZ34SraKVtg56YxJ9ZeoyjhQO8w= Received: from igel.home (host-188-174-218-28.customer.m-online.net [188.174.218.28]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 11 Jul 2014 14:52:39 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 652EF2C0974; Fri, 11 Jul 2014 14:52:39 +0200 (CEST) From: Andreas Schwab References: X-Yow: Hello? Enema Bondage? I'm calling because I want to be happy, I guess.. Date: Fri, 11 Jul 2014 14:52:39 +0200 In-Reply-To: (Andrew Pennebaker's message of "Fri, 11 Jul 2014 07:20:18 -0500") Message-ID: <87ha2o5a7c.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: 0.0 (/) Andrew Pennebaker writes: > My current workaround is to manually add (.\bashrc|\.profile).* to > auto-mode-alist. I just wish this were the default pattern. I don't consider this a workaround, but rather the correct way to handle such personal preferences. > ... is there another convention for naming multiple bash configs, per > machine, that matches the existing patterns? I guess I could use ". > bashrc.android.sh", ugly but functional. Since the shell is a full programming language, there are no limits in what people will do with the startup scripts. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 11 14:42:22 2014 Received: (at control) by debbugs.gnu.org; 11 Jul 2014 18:42:22 +0000 Received: from localhost ([127.0.0.1]:53740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5fm1-0001t9-FD for submit@debbugs.gnu.org; Fri, 11 Jul 2014 14:42:21 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46238 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5fly-0001t0-Eq for control@debbugs.gnu.org; Fri, 11 Jul 2014 14:42:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1X5flx-000076-Ve for control@debbugs.gnu.org; Fri, 11 Jul 2014 14:42:18 -0400 Date: Fri, 11 Jul 2014 14:42:17 -0400 Message-Id: Subject: control message for bug 17991 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.7 (-----) 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.7 (-----) tag 17991 wontfix From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 26 10:46:15 2015 Received: (at control) by debbugs.gnu.org; 26 Dec 2015 15:46:15 +0000 Received: from localhost ([127.0.0.1]:41496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCr2t-0008Gp-ID for submit@debbugs.gnu.org; Sat, 26 Dec 2015 10:46:15 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:42833) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aCr2s-0008Fq-Ga for control@debbugs.gnu.org; Sat, 26 Dec 2015 10:46:14 -0500 Received: from 2.150.58.24.tmi.telenormobil.no ([2.150.58.24] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aCr2T-00014s-GX for control@debbugs.gnu.org; Sat, 26 Dec 2015 16:45:49 +0100 Date: Sat, 26 Dec 2015 16:45:48 +0100 Message-Id: <87si2ptdqr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17991 X-MailScanner-ID: 1aCr2T-00014s-GX X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1451749549.79785@+KIaDaM96sMQHWGBx6mDkQ X-Spam-Status: No X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) tags 17991 wontfix close 17991