GNU bug report logs - #49346
headings when using sh-mode

Previous Next

Package: emacs;

Reported by: lisa-asket <at> perso.be

Date: Sat, 3 Jul 2021 03:53:02 UTC

Severity: wishlist

Tags: moreinfo

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: lisa-asket <at> perso.be
To: "Lars Ingebrigtsen" <larsi <at> gnus.org>
Cc: 49346 <at> debbugs.gnu.org
Subject: bug#49346: headings when using sh-mode
Date: Sun,  4 Jul 2021 19:18:08 +0200 (CEST)
[Message part 1 (text/plain, inline)]
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 `*******`.  The number at the end defines the headline level.



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

lisa-asket <at> 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'?

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




[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.