From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Overlay behavior change Date: Wed, 08 Jul 2020 11:48:36 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android To: emacs-devel@gnu.org, Gregory Heytings , "Gregory Heytings via Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 08 10:49:13 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jt5lQ-0005k1-Ry for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jul 2020 10:49:12 +0200 Original-Received: from localhost ([::1]:48112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jt5lP-0005RB-U6 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jul 2020 04:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jt5kw-00050o-49 for emacs-devel@gnu.org; Wed, 08 Jul 2020 04:48:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33057) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jt5kv-0001SY-IN; Wed, 08 Jul 2020 04:48:41 -0400 Original-Received: from [176.12.234.243] (port=64537 helo=[10.152.225.12]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1jt5kt-0005pc-P0; Wed, 08 Jul 2020 04:48:40 -0400 In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252771 Archived-At: On July 8, 2020 11:14:25 AM GMT+03:00, "Gregory Heytings via Emacs developm= ent discussions=2E" wrote: >=20 > Hi, >=20 > Since at least Emacs 21, overlays between two buffer positions, when > these=20 > two positions are on different lines, extend to the right border of > the=20 > window=2E In Emacs 28=2E0=2E50 this is not the case anymore, overlays > extend=20 > only one character position after the last character of the line=2E=20 > Sample=20 > code (put the cursor on, say, 'lambda' and press C-t): >=20 > (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")))))) >=20 > Is this change intentional? It does not seem to be documented in the=20 > NEWS, and I did not find it in the ChangeLogs either (but perhaps I > did=20 > not look carefully enough)=2E How can one get the previous default=20 > behavior? Yes, this is an intentional change: faces are no longer by default extende= d to end of line=2E If you really need that, use the ':extend' attribute o= f the face=2E This is in NEWS for Emacs 27, I guess you just didn't know which keyword t= o look for=2E