diff options
| author | Richard M. Stallman | 2005-04-11 18:39:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-11 18:39:13 +0000 |
| commit | 7dbe67a41259108693fa6fc4149bbdd9ebf236b3 (patch) | |
| tree | 2e22daaf8e34d5c83a802f52838fbbffd9948551 | |
| parent | 713c90208683184a6cc919c028629fa8237a3ffa (diff) | |
| download | emacs-7dbe67a41259108693fa6fc4149bbdd9ebf236b3.tar.gz emacs-7dbe67a41259108693fa6fc4149bbdd9ebf236b3.zip | |
(whitespace-highlight-the-space):
Don't call whitespace-unhighlight-the-space here.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/whitespace.el | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5d2efa559c..0d861923260 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2005-04-11 Richard M. Stallman <rms@gnu.org> | 1 | 2005-04-11 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * whitespace.el (whitespace-highlight-the-space): | ||
| 4 | Don't call whitespace-unhighlight-the-space here. | ||
| 5 | |||
| 3 | * simple.el (undo): Record t in undo-equiv-table | 6 | * simple.el (undo): Record t in undo-equiv-table |
| 4 | for the redo record made by an undo-in-region. | 7 | for the redo record made by an undo-in-region. |
| 5 | 8 | ||
diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 4406a0615ee..1ac518091b8 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el | |||
| @@ -733,12 +733,11 @@ Also with whitespaces whose testing has been turned off." | |||
| 733 | "Highlight the current line, unhighlighting a previously jumped to line." | 733 | "Highlight the current line, unhighlighting a previously jumped to line." |
| 734 | (if whitespace-display-spaces-in-color | 734 | (if whitespace-display-spaces-in-color |
| 735 | (let ((ol (whitespace-make-overlay b e))) | 735 | (let ((ol (whitespace-make-overlay b e))) |
| 736 | (whitespace-unhighlight-the-space) | ||
| 737 | (push ol whitespace-highlighted-space) | 736 | (push ol whitespace-highlighted-space) |
| 738 | (whitespace-overlay-put ol 'face 'whitespace-highlight-face)))) | 737 | (whitespace-overlay-put ol 'face 'whitespace-highlight-face)))) |
| 739 | ;; (add-hook 'pre-command-hook 'whitespace-unhighlight-the-space)) | 738 | ;; (add-hook 'pre-command-hook 'whitespace-unhighlight-the-space)) |
| 740 | 739 | ||
| 741 | (defun whitespace-unhighlight-the-space () | 740 | (defun whitespace-unhighlight-the-space() |
| 742 | "Unhighlight the currently highlight line." | 741 | "Unhighlight the currently highlight line." |
| 743 | (if (and whitespace-display-spaces-in-color whitespace-highlighted-space) | 742 | (if (and whitespace-display-spaces-in-color whitespace-highlighted-space) |
| 744 | (progn | 743 | (progn |