From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: about showing all characters including non-printable, control etc Date: Mon, 5 Oct 2009 21:25:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3c5b5fe7-02f3-4a7a-99f3-0c6585c8fbc7@z3g2000prd.googlegroups.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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254805217 1803 80.91.229.12 (6 Oct 2009 05:00:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2009 05:00:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 06 07:00:08 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 1Mv29c-0005Bo-UH for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Oct 2009 07:00:05 +0200 Original-Received: from localhost ([127.0.0.1]:43086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv29c-0001Qn-FC for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Oct 2009 01:00:04 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!z3g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 92 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1254803102 25135 127.0.0.1 (6 Oct 2009 04:25:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 6 Oct 2009 04:25:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z3g2000prd.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.24 Safari/532.0, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu comp.emacs:99259 gnu.emacs.help:173597 X-Mailman-Approved-At: Tue, 06 Oct 2009 00:58:36 -0400 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:68693 Archived-At: if you are using emacs 23, whitespace-mode is bundled. See: =E2=80=A2 How To Use And Setup Emacs's whitespace-mode http://xahlee.org/emacs/whitespace-mode.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84 On Oct 5, 8:34 am, Harry Putnam wrote: > 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 applicatio= n? > > 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....@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 r= outine > > 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.