Mercurial > emacs
changeset 106527:3d526a040a6b
Asure buffer-display-table is unique when two or more windows are visible.
author | Vinicius Jose Latorre <viniciusjl@ig.com.br> |
---|---|
date | Fri, 11 Dec 2009 01:00:52 +0000 |
parents | 9a6c9ef9321f |
children | a339f4d04628 |
files | lisp/ChangeLog lisp/whitespace.el |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Thu Dec 10 22:58:40 2009 +0000 +++ b/lisp/ChangeLog Fri Dec 11 01:00:52 2009 +0000 @@ -1,3 +1,9 @@ +2009-12-10 Vinicius Jose Latorre <viniciusjl@ig.com.br> + + * whitespace.el (whitespace-display-char-on): Asure + `buffer-display-table' is unique when two or more windows are + visible. Reported by Martin Pohlack <mp26@os.inf.tu-dresden.de>. + 2009-12-10 Eli Zaretskii <eliz@gnu.org> * arc-mode.el (archive-rar-summarize): Allow between 6 and 7
--- a/lisp/whitespace.el Thu Dec 10 22:58:40 2009 +0000 +++ b/lisp/whitespace.el Fri Dec 11 01:00:52 2009 +0000 @@ -6,7 +6,7 @@ ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> ;; 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 @@ (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)