From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Kaseorg Newsgroups: gmane.emacs.bugs Subject: bug#7208: 23.2; global-whitespace-mode does not survive in buffers changing major mode Date: Wed, 13 Oct 2010 15:15:57 -0400 Message-ID: <87aamh52fm.fsf@balanced-tree.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287001154 8394 80.91.229.12 (13 Oct 2010 20:19:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 20:19:14 +0000 (UTC) To: 7208@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 13 22:19:03 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P67ms-0002SR-3L for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Oct 2010 22:18:59 +0200 Original-Received: from localhost ([127.0.0.1]:56229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P67mp-0000Fs-SG for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Oct 2010 16:18:55 -0400 Original-Received: from [140.186.70.92] (port=59319 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P67mg-0006ZE-Jl for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 16:18:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P67gL-0001wY-TZ for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 16:12:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P67gL-0001wP-Rs for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 16:12:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P67CA-0006Eh-3k; Wed, 13 Oct 2010 15:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Kaseorg Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Oct 2010 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7208 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128699885823963 (code B ref -1); Wed, 13 Oct 2010 19:41:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2010 19:40:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P67C5-0006ES-1f for submit@debbugs.gnu.org; Wed, 13 Oct 2010 15:40:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P66kf-00062r-Hq for submit@debbugs.gnu.org; Wed, 13 Oct 2010 15:12:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P66o2-0001b3-PE for submit@debbugs.gnu.org; Wed, 13 Oct 2010 15:16:08 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:60759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P66o2-0001ay-Ka for submit@debbugs.gnu.org; Wed, 13 Oct 2010 15:16:06 -0400 Original-Received: from [140.186.70.92] (port=36792 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P66o1-0003dD-4u for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 15:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P66nz-0001a1-Jx for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 15:16:04 -0400 Original-Received: from dmz-mailsec-scanner-4.mit.edu ([18.9.25.15]:49814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P66nz-0001Zc-Gv for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2010 15:16:03 -0400 X-AuditID: 1209190f-b7c1dae000000a2b-db-4cb605753458 Original-Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-4.mit.edu (Symantec Brightmail Gateway) with SMTP id 40.C9.02603.57506BC4; Wed, 13 Oct 2010 15:16:05 -0400 (EDT) Original-Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id o9DJG2G8018795 for ; Wed, 13 Oct 2010 15:16:02 -0400 Original-Received: from localhost (c-71-192-162-193.hsd1.nh.comcast.net [71.192.162.193]) (authenticated bits=0) (User authenticated as andersk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o9DJFxuw020866 for ; Wed, 13 Oct 2010 15:16:01 -0400 (EDT) X-Brightmail-Tracker: AAAAAhZVpPgWVllQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 13 Oct 2010 15:40:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 13 Oct 2010 15:41:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40861 Archived-At: When global-whitespace-mode is enabled, all existing and new buffers get whitespace highlighting, but the highlighting goes away in any buffer whose major mode is later changed. You can see this, for example, with SPC SPC M-x global-whitespace-mode M-x c-mode I think the fix is to define global-whitespace-mode with define-globalized-minor-mode, instead of trying to simulate it with find-file-hook. In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.21.6) of 2010-09-01 on americium, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10900000 configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: C/l Minor modes in effect: global-whitespace-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: SPC SPC M-x g l o b a l - w h i t e s p a c e - m o d e M-x c - m o d e M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Global-Whitespace mode enabled Load-path shadows: /usr/share/emacs/23.2/site-lisp/debathena-discuss-emacs/discuss-acl hides /usr/share/emacs/site-lisp/discuss-acl /usr/share/emacs/23.2/site-lisp/debathena-discuss-emacs/discuss hides /usr/share/emacs/site-lisp/discuss /usr/share/emacs/23.2/site-lisp/debathena-discuss-emacs/discuss-misc hides /usr/share/emacs/site-lisp/discuss-misc /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/23.2/site-lisp/debathena-discuss-emacs/discuss-enter hides /usr/share/emacs/site-lisp/discuss-enter /usr/share/emacs/23.2/site-lisp/magit hides /usr/share/emacs/site-lisp/magit /usr/share/emacs/23.2/site-lisp/debathena-discuss-emacs/discuss-ls hides /usr/share/emacs/site-lisp/discuss-ls /usr/share/emacs/23.2/site-lisp/speedbar/speedbar hides /usr/share/emacs/23.2/lisp/speedbar /usr/share/emacs/23.2/site-lisp/cedet-common/ezimage hides /usr/share/emacs/23.2/lisp/ezimage /usr/share/emacs/23.2/site-lisp/speedbar/sb-image hides /usr/share/emacs/23.2/lisp/sb-image /usr/share/emacs/23.2/site-lisp/speedbar/dframe hides /usr/share/emacs/23.2/lisp/dframe /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/23.2/lisp/textmodes/rst /usr/share/emacs/23.2/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell /usr/share/emacs/23.2/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs/23.2/site-lisp/eieio/eieio-opt hides /usr/share/emacs/23.2/lisp/emacs-lisp/eieio-opt /usr/share/emacs/23.2/site-lisp/eieio/eieio-comp hides /usr/share/emacs/23.2/lisp/emacs-lisp/eieio-comp /usr/share/emacs/23.2/site-lisp/eieio/eieio-base hides /usr/share/emacs/23.2/lisp/emacs-lisp/eieio-base /usr/share/emacs/23.2/site-lisp/eieio/eieio-speedbar hides /usr/share/emacs/23.2/lisp/emacs-lisp/eieio-speedbar /usr/share/emacs/23.2/site-lisp/eieio/eieio hides /usr/share/emacs/23.2/lisp/emacs-lisp/eieio /usr/share/emacs/23.2/site-lisp/eieio/eieio-custom hides /usr/share/emacs/23.2/lisp/emacs-lisp/eieio-custom /usr/share/emacs/23.2/site-lisp/eieio/chart hides /usr/share/emacs/23.2/lisp/emacs-lisp/chart /usr/share/emacs/23.2/site-lisp/cedet-common/inversion hides /usr/share/emacs/23.2/lisp/cedet/inversion /usr/share/emacs/23.2/site-lisp/cedet-common/cedet hides /usr/share/emacs/23.2/lisp/cedet/cedet /usr/share/emacs/23.2/site-lisp/semantic/semantic hides /usr/share/emacs/23.2/lisp/cedet/semantic /usr/share/emacs/23.2/site-lisp/ede/ede hides /usr/share/emacs/23.2/lisp/cedet/ede /usr/share/emacs/23.2/site-lisp/cedet-common/cedet-files hides /usr/share/emacs/23.2/lisp/cedet/cedet-files /usr/share/emacs/23.2/site-lisp/cedet-common/mode-local hides /usr/share/emacs/23.2/lisp/cedet/mode-local Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug cc-mode cc-fonts easymenu cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt cus-start cus-load disp-table whitespace tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)