From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: about showing all characters including non-printable, control etc Date: Mon, 05 Oct 2009 10:34:54 -0500 Organization: Still searching... Message-ID: <87ocolx3a9.fsf@newsguy.com> References: <82eipkw9pd.fsf@alum.mit.edu> <87y6nrvq78.fsf@galatea.local> <87ws3bwzy2.fsf@newsguy.com> <4AC81E68.2080307@pobox.com> <87skdzwwah.fsf@newsguy.com> <4AC9240C.2000907@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254757038 23888 80.91.229.12 (5 Oct 2009 15:37:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2009 15:37:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 17:37:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mupce-0004Ca-J2 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2009 17:37:13 +0200 Original-Received: from localhost ([127.0.0.1]:34129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mupce-0000CJ-9C for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2009 11:37:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MupbE-00006h-4Y for help-gnu-emacs@gnu.org; Mon, 05 Oct 2009 11:35:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mupb9-0008SG-7q for help-gnu-emacs@gnu.org; Mon, 05 Oct 2009 11:35:43 -0400 Original-Received: from [199.232.76.173] (port=35786 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mupb7-0008Ra-LD for help-gnu-emacs@gnu.org; Mon, 05 Oct 2009 11:35:37 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52862) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mupb6-00059f-W2 for help-gnu-emacs@gnu.org; Mon, 05 Oct 2009 11:35:37 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mupas-000396-0o for help-gnu-emacs@gnu.org; Mon, 05 Oct 2009 17:35:22 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Oct 2009 17:35:22 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Oct 2009 17:35:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 78 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:E/d17ZQw2SfzjsgOryMbV+t0jI8= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68686 Archived-At: Bernardo writes: >>> does M-x apropos RET whitespace RET >>> list whitespace-mode? >> >> yes... (thanks) under global-whitespace-mode >>>>From what it says apparently if you have global-whitespace-mode on you >> should have a WS on mode line that toggles `visualization' on/off. >> >> I have that. `WS' with it on... what am I supposed to see? > if you > * start Emacs with -Q command line option > * switch to *scratch* buffer > * type global-whitespace-mode RET > * type C-q TAB > do you see anything different? > > BTW are you running Emacs in a terminal or as an (X) windows application? emacs in X As I've mentioned ... I already have the mode on as evidenced by the WS in the mode line... and sure enough I see cool syntax highlight on tabs in scratch buffer... however I don't normally read News and Mail in the scratch buffer. I was testing on the snippet from a rc file in this thread If you go to one of the replies in this thread that has the snippet from a rc file...(This one does): Message-ID: <87y6nrvq78.fsf@galatea.local> And paste it here below. Do you see tabs there... I don't. Yet if you run over the uncommented lines with arrow keys you will see they are there. > # All snapshots will be stored under this root directory. > snapshot_root /bk/rsnap/home > cmd_cp /bin/cp > # uncomment this to use the rm program instead of the built-in perl routine > cmd_rm /bin/rm That was my error... I should have opened one of the rc files instead of checking the snippet in a News message. When I do open the actual rc file... I see the tabs marked. But going back to my original comments... comparing to the :l command in vim... that would show the tabs regardless of type of buffer. I guess that's what I expected global-whitespace-mode to do too, but it doesn't. for example... using my home made vi-list functions (That someone on this list.. wrote yrs ago)... shows them in this message (or anywhere else... I think) no trick modes that might or might not do the job involved. (defun vi-list () "Simulate a :set list in Vi." (interactive) (standard-display-ascii ?\t "^I") (standard-display-ascii ?\n "$\n") ) (defun vi-nolist () "Simulate a :set nolist in Vi." (interactive) (standard-display-ascii ?\t "\t") (standard-display-ascii ?\n "\n") ) Apparently global-whitespace-mode is disabled in message mode some how. Maybe others too. How can I turn those two defuns (vi-list, vi-nolist) into a toggle? So I can turn it on off with one key combo.