From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: about showing all characters including non-printable, control etc Date: Mon, 05 Oct 2009 11:03:48 +1100 Organization: Rapt Technologies Message-ID: <87y6nqogez.fsf@lion.rapttech.com.au> References: <82eipkw9pd.fsf@alum.mit.edu> <87y6nrvq78.fsf@galatea.local> <87ws3bwzy2.fsf@newsguy.com> <4AC81E68.2080307@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254703250 6159 80.91.229.12 (5 Oct 2009 00:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2009 00:40:50 +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 02:40:44 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 1Mubd4-0006HI-6D for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2009 02:40:42 +0200 Original-Received: from localhost ([127.0.0.1]:36568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mubd4-0001kv-3e for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Oct 2009 20:40:42 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!newsfeed.news2me.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:/elunP0wPuKWsbZD9RaCLGNbfgE= Original-Lines: 80 Original-NNTP-Posting-Host: 83cda6bd.news.astraweb.com Original-X-Trace: DXC=1@c_Ulh`=1E; VG4UeGdWSPbCfW_YO_a[HFBB\7ZM1::aGOb^f?C Original-Xref: news.stanford.edu gnu.emacs.help:173575 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:68670 Archived-At: Harry Putnam writes: > Bernardo writes: > >>> Apparently something has to be loaded to use whitespace-global-mode. >>> My emacs knows nothing about it. >>> >>> C-h i m i whitespace-global-mode >>> >>> Info doesn't know about it either. >>> >>> Finally: >>> grep -r whitespace-global-mode /usr/share/emacs/23.1.50 >>> Shows the name has been aliased to: >>> usr/share/emacs/23.1.50/etc/NEWS.22:*** `global-whitespace-mode' >>> is a new alias for `whitespace-global-mode'. >>> >>> M-x load-library global-whitespace-mode >>> >>> Loads the source file... but still setting the check call fails here: >>> >>> M-x whitespace-toggle-s fails to find anything >>> >>> Maybe more names are changed? >>> What version of emacs are you running. >> 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? > > When I go to one of the messages with the tab in it... I still don't > see them. > No one ever said what this mode is supposed to do... > > I mentioned in my OP the vim command :l that shows tabs and lots of > other stuff... in a line. > > Is there a command in emacs that does that?... or is it an endless > bunch of jerking around to see tabs....sorry don't mean to be a wise > ass. But this is getting to be a lot of jumping through hoops and no > results. > > I think I'll just stick to my home made defuns... but can you tell me > how to make this a toggle? And how to make it apply to just the > current line. The toggle would be the most important... in fact > showing the whole buffer would probably be more useful than not. > > (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") > ) > > What would be really useful would be to set things up so that after > pressing M-x vi-list The first scroll kind of motion would > automatically call vi-nolist. > > That's pretty much how it works in vim.. I don't know the mechanics but > if you press :l The current line is shown but soon as you move it > goes off. nice. > > For emacs 23 > -- tcross (at) rapttech dot com dot au