From: Eli Zaretskii <eliz@gnu.org>
To: lorniu <lorniu@gmail.com>, kobarity <kobarity@gmail.com>
Cc: 71170@debbugs.gnu.org
Subject: bug#71170: 30.0.50; hs-hide-all in python mode not works as expected
Date: Sat, 25 May 2024 13:28:25 +0300 [thread overview]
Message-ID: <86fru6yyly.fsf@gnu.org> (raw)
In-Reply-To: <87a5kfsiuw.fsf@gmail.com> (message from lorniu on Fri, 24 May 2024 16:40:39 +0800)
> From: lorniu <lorniu@gmail.com>
> Date: Fri, 24 May 2024 16:40:39 +0800
>
>
> When I run `hs-hide-all` in python mode for some python files,
> It cannot work properly.
>
> For example, the `class` in following code can not be hide:
>
> ```
> if TYPE_CHECKING:
> Base64FileInput = Union[IO[bytes], PathLike[str]]
> FileContent = Union[IO[bytes], bytes, PathLike[str]]
> else:
> Base64FileInput = Union[IO[bytes], PathLike]
> FileContent = Union[IO[bytes], bytes, PathLike] # PathLike is not subscriptable in Python 3.8.
>
> class aaa:
> ...
> ```
>
> Maybe the issue caused by function in `python-hideshow-find-next-block`
> of python.el, that the comment regexp should be "^#" instead of "#"?
Shouldn't that be something like "^[:space:]*#" instead?
next prev parent reply other threads:[~2024-05-25 10:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-24 8:40 bug#71170: 30.0.50; hs-hide-all in python mode not works as expected lorniu
2024-05-25 10:28 ` Eli Zaretskii [this message]
2024-05-25 14:36 ` kobarity
2024-05-26 4:39 ` lorniu
2024-05-26 5:10 ` kobarity
[not found] ` <87fru512ne.fsf@gmail.com>
2024-05-26 8:31 ` kobarity
2024-05-26 8:51 ` lorniu
2024-05-26 9:05 ` kobarity
2024-06-08 11:54 ` Eli Zaretskii
2024-06-08 15:22 ` kobarity
2024-06-09 13:50 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fru6yyly.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=71170@debbugs.gnu.org \
--cc=kobarity@gmail.com \
--cc=lorniu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.