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 20:38:56 +0200 (CEST) Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_60e20040_2393_79bc1d89" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49346@debbugs.gnu.org To: lisa-asket@perso.be, "Lars Ingebrigtsen" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 04 20:42:25 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 1m074T-0004Dp-La for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 20:42:25 +0200 Original-Received: from localhost ([::1]:44178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m074S-00050e-Is for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jul 2021 14:42:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m072A-0007xi-TK for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 14:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m072A-0007Vv-JT for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 14:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0729-0000F3-MD for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 14:40:01 -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 18:40:01 +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.1625423951863 (code B ref 49346); Sun, 04 Jul 2021 18:40:01 +0000 Original-Received: (at 49346) by debbugs.gnu.org; 4 Jul 2021 18:39:11 +0000 Original-Received: from localhost ([127.0.0.1]:43258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m071L-0000Dr-GI for submit@debbugs.gnu.org; Sun, 04 Jul 2021 14:39:11 -0400 Original-Received: from msg-1.mailo.com ([213.182.54.11]:43688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m071I-0000Db-Oe for 49346@debbugs.gnu.org; Sun, 04 Jul 2021 14:39:10 -0400 Original-Received: by www-8.mailo.com with http webmail; Sun, 4 Jul 2021 20:38:56 +0200 (CEST) X-EA-Auth: HHTXHdwWi+TAJIfy1UWgancIeh9sKDZM4uggSutWbsIbwCngrNfI2qiRLS3Xek5bKVtRWnnJlUxuVcLpdzV/8+i6CPWe8dwO X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 In-Reply-To: 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:209422 Archived-At: ------=_NextPart_001_60e20040_2393_79bc1d89 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable After thinking a bit more about this, it would be better to use two ## at t= he beginning for headings, such that single # is for normal headings. ## h1 ## h2 ## h3 From: lisa-asket@perso.be To: Lars Ingebrigtsen Subject: bug#49346: headings when using sh-mode Date: 04/07/2021 19:18:08 Europe/Paris Cc: 49346@debbugs.gnu.org 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_60e20040_2393_79bc1d89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
After thinking a bit more about this, it would be better to use two ##= at the beginning for headings,
such that single # is for normal = headings.

## h1
## h2
## h3


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

I have been using

# h1
# h2
# h3

This is similar to defining headers = in html without ending up using long repeating symbols
such = as `#####` or `*******`.=C2=A0 The number at the end defines the headline l= evel.


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_60e20040_2393_79bc1d89--