From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lisa-asket@perso.be Newsgroups: gmane.emacs.bugs Subject: bug#49346: headings when using sh-mode Date: Sun, 4 Jul 2021 19:18:08 +0200 (CEST) Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_60e1ed50_6a61_3fbba89f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49346@debbugs.gnu.org To: "Lars Ingebrigtsen" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 04 19:19:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m05lz-000A8m-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 19:19:15 +0200 Original-Received: from localhost ([::1]:52106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m05ly-0002lK-IN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 13:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m05lm-0002dv-Ky for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 13:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m05lm-0005qL-Dp for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 13:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m05lm-0006mX-7s for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 13:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lisa-asket@perso.be Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49346 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 49346-submit@debbugs.gnu.org id=B49346.162541910426009 (code B ref 49346); Sun, 04 Jul 2021 17:19:02 +0000 Original-Received: (at 49346) by debbugs.gnu.org; 4 Jul 2021 17:18:24 +0000 Original-Received: from localhost ([127.0.0.1]:43215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m05lA-0006lR-GK for submit@debbugs.gnu.org; Sun, 04 Jul 2021 13:18:24 -0400 Original-Received: from ip-15.mailobj.net ([213.182.54.15]:38676 helo=msg-4.mailo.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m05l7-0006lB-BX for 49346@debbugs.gnu.org; Sun, 04 Jul 2021 13:18:22 -0400 Original-Received: by www-8.mailo.com with http webmail; Sun, 4 Jul 2021 19:18:08 +0200 (CEST) X-EA-Auth: mXHZUb/v6v26kRHcPLS6IgFr57ZALZQAMcBS1jWYjvznUOjONvGSqmd5k1oZHpdr2DeO5cNgkCv5iSMvHFcs+NQfnLyF2gse X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 In-Reply-To: <87bl7i421c.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209420 Archived-At: ------=_NextPart_001_60e1ed50_6a61_3fbba89f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have been using=20 # h1 # h2 # h3 This is similar to defining headers in html without ending up using long r= epeating symbols=20 such as `#####` or `*******`.=C2=A0 The number at the end defines the head= line level. From: Lars Ingebrigtsen To: lisa-asket@perso.be Subject: bug#49346: headings when using sh-mode Date: 04/07/2021 15:54:55 Europe/Paris Cc: 49346@debbugs.gnu.org lisa-asket@perso.be writes: > I enabled `outline-minor-mode` and found that by default `sh-script` > uses `*`, `** `, `***` as headings. Because the headings are not part > of comments, my bash script breaks if I use headings in this way. > Headings normally start with the comment character. `sh-mode' has no support for outlining, so `outline-minor-mode' just uses the default values for `outline-regexp'. So I guess this is a wishlist item for adding support for outlining in `sh-mode'? Does anybody have a suggestion for what that should be in `sh-mode', or whether this doesn't really make sense for `sh-mode'? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ------=_NextPart_001_60e1ed50_6a61_3fbba89f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have been using

# h1
# h2
# h3

This is similar to defining headers i= n html without ending up using long repeating symbols
such a= s `#####` or `*******`.=C2=A0 The number at the end defines the headline le= vel.


From: Lars Ingebrigtsen <= larsi@gnus.org>
To: lisa-asket@perso.be
Subject: bug#49346: headings when using sh-mode
Date: 04/07/2021 15:54:55 Europe/Paris
Cc: 49346@debbugs.gnu.org

lisa-asket@perso.be writes:

> I enabled `outline-minor-mode` and found that by default `sh-script`<= br> > uses `*`, `** `, `***` as headings. Because the headings are not par= t
> of comments, my bash script breaks if I use headings in this way.
= > Headings normally start with the comment character.

`sh-mode' has no support for outlining, so `outline-minor-mode' just
uses the default values for `outline-regexp'. So I guess this is a
wishlist item for adding support for outlining in `sh-mode'?

Does anybody have a suggestion for what that should be in `sh-mode', or whether this doesn't really make sense for `sh-mode'?

--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no



------=_NextPart_001_60e1ed50_6a61_3fbba89f--