all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Pedro" <jpedrodeamorim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 67287@debbugs.gnu.org
Subject: bug#67287: 29.1; hs-set-up-overlay messes up indent-sexp
Date: Mon, 20 Nov 2023 10:42:24 -0300	[thread overview]
Message-ID: <87sf505ynz.fsf@ergo> (raw)
In-Reply-To: <83a5r9jy3l.fsf@gnu.org>

Em domingo, 19/11/2023 às 22:18, Eli Zaretskii <eliz@gnu.org> escreveu:

Hey Eli, thanks for the quick reply.

> Indentation commands align text by columns, and 'display' properties
> and invisible text affect those columns (starting from Emacs 29).

Ah, that explains why I started seeing this behaviour recently...

> So you shouldn't expect reasonable results from indenting a sexp which
> is partially hidden and has a 'display' property that replaces it.
> IOW, always unhide the block before indenting it.

So you mean that whatever is going to indent or modify the hidden text
should be "unhiding" it before doing so? Can you point to a function
that does this so I could take as a reference?

> This is not a bug.

Yeah, but maybe it requires a bit more documenting? I couldn't find
where this new behaviour was documented in NEWS.29, all I could find was
that the implementation of overlays has changed, but no mention of how
it affects 'display' properties. Maybe I missed it?

Regards,

-- 
João Pedro de A. Paula
IT bachelors at Universidade Federal do Rio Grande do Norte (UFRN)

  reply	other threads:[~2023-11-20 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-19 19:35 bug#67287: 29.1; hs-set-up-overlay messes up indent-sexp João Pedro
2023-11-19 20:18 ` Eli Zaretskii
2023-11-20 13:42   ` João Pedro [this message]
2023-11-20 14:10     ` Eli Zaretskii
2023-12-22 14:51   ` Stefan Kangas

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=87sf505ynz.fsf@ergo \
    --to=jpedrodeamorim@gmail.com \
    --cc=67287@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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.