[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-mode 705d04d9fb 01/24: Make {-# and #-} not be par
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-mode 705d04d9fb 01/24: Make {-# and #-} not be paragraph boundaries |
Date: |
Tue, 1 Nov 2022 22:58:51 -0400 (EDT) |
branch: elpa/haskell-mode
commit 705d04d9fba0b4d632ad8d9f260754701c1ffa4d
Author: Jan Path <jan@jpath.de>
Commit: Jan Path <jan@jpath.de>
Make {-# and #-} not be paragraph boundaries
{- and -} are recognised as paragraph boundaries. While this makes a lot
of sense, it does not make sense to also recognise {-# and #-} as
paragraph boundaries.
---
haskell-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/haskell-mode.el b/haskell-mode.el
index 29530f515e..c93348c6dd 100644
--- a/haskell-mode.el
+++ b/haskell-mode.el
@@ -793,8 +793,8 @@ Minor modes that work well with `haskell-mode':
(error "haskell-mode requires at least Emacs 24.3"))
;; paragraph-{start,separate} should treat comments as paragraphs as well.
- (setq-local paragraph-start (concat " *{-\\| *-- |\\|" page-delimiter))
- (setq-local paragraph-separate (concat " *$\\| *\\({-\\|-}\\) *$\\|"
page-delimiter))
+ (setq-local paragraph-start (concat " *{-\\([^#]\\|$\\)\\| *-- |\\|"
page-delimiter))
+ (setq-local paragraph-separate (concat " *$\\|
*\\({-\\([^#]\\|$\\)\\|\\([^#]\\|^\\)-}\\) *$\\|" page-delimiter))
(setq-local fill-paragraph-function 'haskell-fill-paragraph)
;; (setq-local adaptive-fill-function 'haskell-adaptive-fill)
(setq-local comment-start "-- ")
- [nongnu] elpa/haskell-mode updated (3332050667 -> 90503413f4), ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 0faf9f1324 03/24: Use shell-quote-argument on file path in compilation command, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 705d04d9fb 01/24: Make {-# and #-} not be paragraph boundaries,
ELPA Syncer <=
- [nongnu] elpa/haskell-mode 1bde244f11 08/24: Remove autoloads from face and group definitions, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 0b89979176 04/24: Merge pull request #1761 from EuanParr/pr-fix-path-argument-in-compile, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 15c5eb0aca 13/24: Merge pull request #1775 from vaerksted/master, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode f13b6db78b 07/24: Merge pull request #1771 from amesgen/add-capi, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 952af0ed21 12/24: typos, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode fe3a8046aa 20/24: Merge pull request #1778 from cydparser/ghc-9.2.2-support, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 8d9b271e9c 15/24: Fix minor typo, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode d0e8ca71d2 19/24: Add GHC 9.2.2 extensions and options, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode 8402caa341 05/24: Remove inconsistent docstring, point users at the source of truth, ELPA Syncer, 2022/11/01
- [nongnu] elpa/haskell-mode b2427232ab 02/24: Fix compilation command to handle whitespace in file path, ELPA Syncer, 2022/11/01