unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: whitespace.el does not seem to delete its overlays
Date: Fri, 08 Apr 2005 23:38:47 -0400	[thread overview]
Message-ID: <E1DK6o3-0007VC-6q@fencepost.gnu.org> (raw)
In-Reply-To: <61435.217.194.34.123.1112967791.squirrel@wwws.franken.de> (stahl@eos.franken.de)

Does this make it work right?

*** whitespace.el	01 Oct 2004 13:57:03 -0400	1.30
--- whitespace.el	08 Apr 2005 21:54:36 -0400	
***************
*** 736,747 ****
  (defun whitespace-highlight-the-space (b e)
    "Highlight the current line, unhighlighting a previously jumped to line."
    (if whitespace-display-spaces-in-color
!       (progn
  	(whitespace-unhighlight-the-space)
! 	(add-to-list 'whitespace-highlighted-space
! 		     (whitespace-make-overlay b e))
! 	(whitespace-overlay-put (whitespace-make-overlay b e) 'face
! 				'whitespace-highlight-face))))
  ;;  (add-hook 'pre-command-hook 'whitespace-unhighlight-the-space))
  
  (defun whitespace-unhighlight-the-space ()
--- 736,746 ----
  (defun whitespace-highlight-the-space (b e)
    "Highlight the current line, unhighlighting a previously jumped to line."
    (if whitespace-display-spaces-in-color
!       (let (overlay)
  	(whitespace-unhighlight-the-space)
! 	(setq overlay (whitespace-make-overlay b e))
! 	(add-to-list 'whitespace-highlighted-space overlay)
! 	(whitespace-overlay-put overlay 'face 'whitespace-highlight-face))))
  ;;  (add-hook 'pre-command-hook 'whitespace-unhighlight-the-space))
  
  (defun whitespace-unhighlight-the-space ()

  parent reply	other threads:[~2005-04-09  3:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-08 13:43 whitespace.el does not seem to delete its overlays Stephan Stahl
2005-04-08 14:46 ` Stefan Monnier
2005-04-08 22:57   ` Stephan Stahl
2005-04-09  3:38 ` Richard Stallman [this message]
2005-04-09  8:05   ` Stephan Stahl
2005-04-10  1:55     ` Richard Stallman
2005-04-10 12:04       ` Stephan Stahl
2005-04-11  1:56         ` Richard Stallman
2005-04-11  6:13           ` Stephan Stahl

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=E1DK6o3-0007VC-6q@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 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).