GNU bug report logs - #21397
24.5; outline-minor-mode / python-mode: hides decorator

Previous Next

Package: emacs;

Reported by: Daniel Hornung <daniel.hornung <at> ds.mpg.de>

Date: Wed, 2 Sep 2015 07:15:02 UTC

Severity: minor

Tags: confirmed

Found in version 24.5

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Hornung <daniel.hornung <at> ds.mpg.de>
Cc: 21397 <at> debbugs.gnu.org
Subject: bug#21397: 24.5; outline-minor-mode / python-mode: hides decorator
Date: Thu, 27 May 2021 00:35:27 +0200
Daniel Hornung <daniel.hornung <at> ds.mpg.de> writes:

> When I hide the body of a method, everything until the next "def ..."
> line is hidden, including decorators which might belong to that next def
> line.  See the following example:
>
> class A:
>     def foo:
>         pass
>
>     @foo
>     def bar:
>         pass
>
> When I do `hide-subtree' on the "def foo:" line, the result is:
>
> class A:
>     def foo:...
>     def bar:
>         pass
>
> I would have expected that also the "@foo" line should still be visible,
> and at most be hidden when hiding bar's subtree.

I can confirm that this problem is still present in Emacs 28.

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




This bug report was last modified 4 years and 81 days ago.

Previous Next


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