From unknown Thu Jul 10 07:16:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8053: shell-script mode < Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8053 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8053@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12978589552882 (code B ref -1); Wed, 16 Feb 2011 12:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Feb 2011 12:22:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpgOw-0000kQ-UT for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:22:35 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpgOq-0000k3-EX for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:22:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpgXY-00040u-Sh for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:31:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpgXY-0003zW-FR for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:31:28 -0500 Received: from [140.186.70.92] (port=53569 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpgXR-0001H0-NS for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2011 07:31:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpgXC-0003sE-62 for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2011 07:31:07 -0500 Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:60763 helo=homiemail-a61.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpgXC-0003s8-0r for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2011 07:31:06 -0500 Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 4457B578073 for ; Wed, 16 Feb 2011 04:31:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=SAJ+svnn1vQxzjrlyhTmyWdTVkUwh3lYJ0twcaMu3DTN18XK/FIZlrhiaOD9 nqJ7S3gQODyhmxgwP7xwg0fPr6wpb7EX7vS0aYwqpwXDUcaxvoBRaoDbaigATdlV MezDGWpemC1pIVvC31ML1+wsBY641ZKLTY/m6HPKHFWMiMY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=1ZeQsfof/I87Qg6tKNc7XhNfM8E=; b=UuoQvwHZ6ADoiDz3 sytqTO3z0i7E5SJttLhM3P+Y+CCWEMiuGE9Xvegq3m2hhdOLOeA57DNe1DAh0QnX hRIT2Oh9yIju8SMvmzwvcIuhGIZu5SZ7sZpxm0dY3+J4yFtxbaigDE6zP4Nfba6w 26GjAi29pgsPSSgVXVFh4jCknls= Received: from jidanni.org (218-163-2-113.dynamic.hinet.net [218.163.2.113]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPSA id 01BCE57806C for ; Wed, 16 Feb 2011 04:31:04 -0800 (PST) From: jidanni@jidanni.org Date: Wed, 16 Feb 2011 20:08:34 +0800 Message-ID: <87tyg4fagt.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.97.132.74 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.4 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) $ cat m.sh cat < Resent-From: Lawrence Mitchell Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Feb 2011 12:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8053 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129794647515535 (code B ref -1); Thu, 17 Feb 2011 12:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Feb 2011 12:41:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq3AZ-00042V-4F for submit@debbugs.gnu.org; Thu, 17 Feb 2011 07:41:15 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq3AW-00042J-GX for submit@debbugs.gnu.org; Thu, 17 Feb 2011 07:41:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq3JI-0006Od-TL for submit@debbugs.gnu.org; Thu, 17 Feb 2011 07:50:18 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:39192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq3JI-0006OV-RA for submit@debbugs.gnu.org; Thu, 17 Feb 2011 07:50:16 -0500 Received: from [140.186.70.92] (port=40151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq3JH-0003J3-93 for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2011 07:50:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq3JB-0006Ld-IY for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2011 07:50:14 -0500 Received: from lo.gmane.org ([80.91.229.12]:53898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq3JB-0006Kp-6x for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2011 07:50:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pq3J4-000827-4n for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2011 13:50:02 +0100 Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 13:50:02 +0100 Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 13:50:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Lawrence Mitchell Date: Thu, 17 Feb 2011 12:49:48 +0000 Lines: 56 Message-ID: References: <87tyg4fagt.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e4300lm.epcc.ed.ac.uk User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:+8BV0GNDmfsAIgKkOqUHTAgOOaE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) jidanni@jidanni.org wrote: > $ cat m.sh > cat < This line is inside the here doc > eof > So is this, but shell-script mode doesn't think so. Otherwise the color > would be the same. > EOF > $ emacs -Q m.sh case-fold-search should be bound to nil in sh-syntax-propertize-here-doc Here's a patch: >From f7731d08aeb4c72c85e91f1fb1d9b1ee1bc59856 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Thu, 17 Feb 2011 12:48:29 +0000 Subject: [PATCH] Make search for end of here-doc case sensitive * progmodes/sh-script.el (sh-syntax-propertize-here-doc): Bind case-fold-search to nil when looking for end of here-doc. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/sh-script.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c204b87..efbbfe1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-02-17 Lawrence Mitchell + + * progmodes/sh-script.el (sh-syntax-propertize-here-doc): Bind + case-fold-search to nil when looking for end of here-doc. + 2011-02-09 Deniz Dogan * net/rcirc.el (rcirc-ctcp-sender-PING): Simplifying. diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index d80d814..ecbac26 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -969,7 +969,8 @@ Point is at the beginning of the next line." (defun sh-syntax-propertize-here-doc (end) (let ((ppss (syntax-ppss))) (when (eq t (nth 3 ppss)) - (let ((key (get-text-property (nth 8 ppss) 'sh-here-doc-marker))) + (let ((key (get-text-property (nth 8 ppss) 'sh-here-doc-marker)) + (case-fold-search nil)) (when (re-search-forward (concat "^\\([ \t]*\\)" (regexp-quote key) "\\(\n\\)") end 'move) -- Lawrence Mitchell From unknown Thu Jul 10 07:16:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jidanni@jidanni.org Subject: bug#8053: closed (Re: bug#8053: shell-script mode < References: <87tyg4fagt.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 8053 X-Gnu-PR-Package: emacs Reply-To: 8053@debbugs.gnu.org Date: Fri, 18 Feb 2011 21:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1298065682-25884-1" This is a multi-part message in MIME format... ------------=_1298065682-25884-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8053: shell-script mode <) id 1PqYAr-0006iv-BX for submit@debbugs.gnu.org; Fri, 18 Feb 2011 16:47:37 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PqYAo-0006ii-U7 for 8053-done@debbugs.gnu.org; Fri, 18 Feb 2011 16:47:35 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p1ILmCsx021271; Fri, 18 Feb 2011 16:48:12 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id CC4F1B411A; Fri, 18 Feb 2011 16:47:27 -0500 (EST) From: Stefan Monnier To: Lawrence Mitchell Subject: Re: bug#8053: shell-script mode < References: <87tyg4fagt.fsf@jidanni.org> Date: Fri, 18 Feb 2011 16:47:27 -0500 In-Reply-To: (Lawrence Mitchell's message of "Thu, 17 Feb 2011 12:49:48 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3735=0 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8053-done Cc: 8053-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > case-fold-search should be bound to nil in > sh-syntax-propertize-here-doc > Here's a patch: Thanks, installed, Stefan ------------=_1298065682-25884-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Feb 2011 12:22:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpgOw-0000kQ-UT for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:22:35 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PpgOq-0000k3-EX for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:22:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpgXY-00040u-Sh for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:31:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpgXY-0003zW-FR for submit@debbugs.gnu.org; Wed, 16 Feb 2011 07:31:28 -0500 Received: from [140.186.70.92] (port=53569 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpgXR-0001H0-NS for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2011 07:31:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpgXC-0003sE-62 for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2011 07:31:07 -0500 Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:60763 helo=homiemail-a61.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpgXC-0003s8-0r for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2011 07:31:06 -0500 Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 4457B578073 for ; Wed, 16 Feb 2011 04:31:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=SAJ+svnn1vQxzjrlyhTmyWdTVkUwh3lYJ0twcaMu3DTN18XK/FIZlrhiaOD9 nqJ7S3gQODyhmxgwP7xwg0fPr6wpb7EX7vS0aYwqpwXDUcaxvoBRaoDbaigATdlV MezDGWpemC1pIVvC31ML1+wsBY641ZKLTY/m6HPKHFWMiMY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=1ZeQsfof/I87Qg6tKNc7XhNfM8E=; b=UuoQvwHZ6ADoiDz3 sytqTO3z0i7E5SJttLhM3P+Y+CCWEMiuGE9Xvegq3m2hhdOLOeA57DNe1DAh0QnX hRIT2Oh9yIju8SMvmzwvcIuhGIZu5SZ7sZpxm0dY3+J4yFtxbaigDE6zP4Nfba6w 26GjAi29pgsPSSgVXVFh4jCknls= Received: from jidanni.org (218-163-2-113.dynamic.hinet.net [218.163.2.113]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPSA id 01BCE57806C for ; Wed, 16 Feb 2011 04:31:04 -0800 (PST) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: shell-script mode < MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.97.132.74 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) $ cat m.sh cat <