GNU bug report logs - #11068
24.0.94; Face-remapped background does not extend to end of window

Previous Next

Package: emacs;

Reported by: Ivan Andrus <darthandrus <at> gmail.com>

Date: Thu, 22 Mar 2012 21:21:02 UTC

Severity: wishlist

Found in version 24.0.94

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: darthandrus <at> gmail.com, cyd <at> stupidchicken.com, 11068 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: bug#11068: 24.0.94;	Face-remapped background does not extend to end of window
Date: Fri, 30 Mar 2012 12:47:28 +0200
Amendment: I see now why specifying a number for the cursor property
_is_ useful.  It seems that I can get what I initially mentioned (color
just the selected window) by doing


(defvar my-end-overlay nil)
(defvar my-start-overlay nil)
(defvar my-string nil)
(defvar my-window (selected-window))

(progn
  (when (overlayp my-end-overlay)
    (delete-overlay my-end-overlay))
  (when (overlayp my-start-overlay)
    (delete-overlay my-start-overlay))
  (setq my-end-overlay (make-overlay 0 0))
  (setq my-start-overlay (make-overlay 0 0))
  (overlay-put my-start-overlay 'face 'lazy-highlight)
  (overlay-put my-start-overlay 'window my-window)
  (move-overlay my-start-overlay (point-min) (point-max))

  (setq my-string (propertize (make-string 100 10) 'face 'lazy-highlight))
  (put-text-property 0 1 'cursor 100 my-string)
  (overlay-put my-end-overlay 'after-string my-string)
  (overlay-put my-end-overlay 'window my-window)
  (move-overlay my-end-overlay (point-max) (point-max)))


(ignoring stickyness, insertion, and change of selected window) just
that moving to the end of the buffer doesn't yet seem quite correct.

martin




This bug report was last modified 13 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.