unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Daniel Hornung <daniel.hornung@ds.mpg.de>
Cc: 21397@debbugs.gnu.org
Subject: bug#21397: 24.5; outline-minor-mode / python-mode: hides decorator
Date: Thu, 27 May 2021 00:35:27 +0200	[thread overview]
Message-ID: <87sg2986og.fsf@gnus.org> (raw)
In-Reply-To: <5039442.ZckMLNPJDK@tiersen> (Daniel Hornung's message of "Wed, 2 Sep 2015 09:14:08 +0200")

Daniel Hornung <daniel.hornung@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





      parent reply	other threads:[~2021-05-26 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02  7:14 bug#21397: 24.5; outline-minor-mode / python-mode: hides decorator Daniel Hornung
2015-09-03 15:15 ` Stefan Monnier
2021-05-26 22:35 ` Lars Ingebrigtsen [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sg2986og.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=21397@debbugs.gnu.org \
    --cc=daniel.hornung@ds.mpg.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).