all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Overlay behavior change
@ 2020-07-08  8:14 Gregory Heytings via Emacs development discussions.
  2020-07-08  8:48 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory Heytings via Emacs development discussions. @ 2020-07-08  8:14 UTC (permalink / raw)
  To: emacs-devel


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?

Gregory



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-08 16:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-08  8:14 Overlay behavior change Gregory Heytings via Emacs development discussions.
2020-07-08  8:48 ` Eli Zaretskii
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

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.