From 345427f02a683ae09ebf1f9d4f0794da9c5a0299 Mon Sep 17 00:00:00 2001 From: Vinicius Jose Latorre Date: Fri, 11 Dec 2009 01:04:55 +0000 Subject: [PATCH] Asure buffer-display-table is unique when two or more windows are visible. --- lisp/ChangeLog | 7 +++++++ lisp/whitespace.el | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e932476fbf..8ce630f30b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2009-12-10 Vinicius Jose Latorre + + * whitespace.el (whitespace-display-char-on): Asure + `buffer-display-table' is unique when two or more windows are + visible. Reported by Martin Pohlack . + New version 12.1. + 2009-12-10 Eli Zaretskii * arc-mode.el (archive-rar-summarize): Allow between 6 and 7 diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 56eebd7f47e..3af0afb8b26 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el @@ -6,7 +6,7 @@ ;; Author: Vinicius Jose Latorre ;; Maintainer: Vinicius Jose Latorre ;; Keywords: data, wp -;; Version: 12.0 +;; Version: 12.1 ;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre ;; This file is part of GNU Emacs. @@ -2388,6 +2388,10 @@ Also refontify when necessary." (setq whitespace-display-table-was-local t whitespace-display-table (copy-sequence buffer-display-table))) + ;; asure `buffer-display-table' is unique + ;; when two or more windows are visible. + (set (make-local-variable 'buffer-display-table) + (copy-sequence buffer-display-table)) (unless buffer-display-table (setq buffer-display-table (make-display-table))) (dolist (entry whitespace-display-mappings) -- 2.39.5