From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org, Gregory Heytings <ghe@sdf.org>,
"Gregory Heytings via Emacs development discussions."
<emacs-devel@gnu.org>
Subject: Re: Overlay behavior change
Date: Wed, 08 Jul 2020 11:48:36 +0300 [thread overview]
Message-ID: <B0D4C85A-294D-42C2-AF53-0E9616EB6AC1@gnu.org> (raw)
In-Reply-To: <alpine.NEB.2.21.2007080958370394.9785@sdf.lonestar.org>
On July 8, 2020 11:14:25 AM GMT+03:00, "Gregory Heytings via Emacs development discussions." <emacs-devel@gnu.org> wrote:
>
> Hi,
>
> Since at least Emacs 21, overlays between two buffer positions, when
> these
> two positions are on different lines, extend to the right border of
> the
> window. In Emacs 28.0.50 this is not the case anymore, overlays
> extend
> only one character position after the last character of the line.
> Sample
> code (put the cursor on, say, 'lambda' and press C-t):
>
> (global-set-key
> (kbd "C-t")
> (function
> (lambda ()
> (interactive)
> (let* ((start (point))
> (end (progn (save-excursion (forward-line 5) (point))))
> (o (make-overlay start end)))
> (overlay-put o 'face '(:background "green"))))))
>
> Is this change intentional? It does not seem to be documented in the
> NEWS, and I did not find it in the ChangeLogs either (but perhaps I
> did
> not look carefully enough). How can one get the previous default
> behavior?
Yes, this is an intentional change: faces are no longer by default extended to end of line. If you really need that, use the ':extend' attribute of the face.
This is in NEWS for Emacs 27, I guess you just didn't know which keyword to look for.
next prev parent reply other threads:[~2020-07-08 8:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 8:14 Overlay behavior change Gregory Heytings via Emacs development discussions.
2020-07-08 8:48 ` Eli Zaretskii [this message]
2020-07-08 9:14 ` Gregory Heytings via Emacs development discussions.
2020-07-08 14:26 ` Eli Zaretskii
2020-07-08 15:12 ` Gregory Heytings via Emacs development discussions.
2020-07-08 16:25 ` 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
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=B0D4C85A-294D-42C2-AF53-0E9616EB6AC1@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=ghe@sdf.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 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).