[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY funct
From: |
kobarity |
Subject: |
bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks |
Date: |
Sat, 13 Aug 2022 21:36:57 +0900 |
Augusto Stoffel <arstoffel@gmail.com> wrote:
>
> This is a marginally related remark, but I noticed that python-mode sets
>
> (setq-local outline-heading-end-regexp ":[^\n]*\n")
>
> and this doesn't work well with the new-ish type annotation syntax.
>
> Wouldn't it be better to simply remove this setting, reverting back to
> the default "\n"? Then folding by outline-minor-mode would behave like
> hideshow currently does when it comes to something like
>
> def f(
> x: int
> ) -> int:
> pass
I agree with removing the `outline-heading-end-regexp' setting. I thought
about adding a custom variable since some people might prefer the
current setting, but I reconsidered that setting it as a file local
variable would be sufficient as described in docstring:
#+begin_quote
The recommended way to set this is with a ‘Local Variables:’ list
in the file it applies to.
#+end_quote
Is there any comments on extending `hs-special-modes-alist'? Attached
are revised patches. I would like to know if it is worth extending
`hs-special-modes-alist'.
Best Regards,
fix-56635-hideshow.patch
Description: Binary data
fix-56635-python.patch
Description: Binary data
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, kobarity, 2022/08/07
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, Augusto Stoffel, 2022/08/08
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks,
kobarity <=
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, Lars Ingebrigtsen, 2022/08/17
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, Lars Ingebrigtsen, 2022/08/17
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, kobarity, 2022/08/17
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, Dima Kogan, 2022/08/23
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, Lars Ingebrigtsen, 2022/08/24
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, kobarity, 2022/08/24
- bug#56635: 29.0.50; [PATCH] hide-show in python-mode supports ONLY function and class blocks, Lars Ingebrigtsen, 2022/08/25