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: How to show all characters in a specific line Date: Sun, 04 Jan 2015 08:19:32 -0500 Organization: Still searching... Message-ID: <87387q8yzf.fsf@reader.local.lan> References: <87a92334hb.fsf@reader.local.lan> <87wq571de9.fsf@reader.local.lan> <767948ac-03d6-4203-b133-91fb8cb30757@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420403766 2559 80.91.229.3 (4 Jan 2015 20:36:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 20:36:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 04 21:35:56 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y7ru0-0003PH-7n for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Jan 2015 21:35:56 +0100 Original-Received: from localhost ([::1]:58008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7rtz-00081M-9y for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Jan 2015 15:35:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7rto-0007zo-LU for help-gnu-emacs@gnu.org; Sun, 04 Jan 2015 15:35:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7rtj-0003Ut-RE for help-gnu-emacs@gnu.org; Sun, 04 Jan 2015 15:35:44 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7rtj-0003Ud-Kg for help-gnu-emacs@gnu.org; Sun, 04 Jan 2015 15:35:39 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y7rtg-0003Kh-8l for help-gnu-emacs@gnu.org; Sun, 04 Jan 2015 21:35:36 +0100 Original-Received: from c-76-97-127-193.hsd1.ga.comcast.net ([76.97.127.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jan 2015 21:35:36 +0100 Original-Received: from reader by c-76-97-127-193.hsd1.ga.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Jan 2015 21:35:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-76-97-127-193.hsd1.ga.comcast.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:/zQ6JbsOyZ7BC9dnW7kLN6zPyis= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101884 Archived-At: Drew Adams writes: [...] >> But still (And no religious scrap intended) neither of those is >> really as readable and handy as vim's :l Which puts only an icon >> in the place of \t (^I). It collapses the whitespace and puts a >> series of ^I for however many \t were used. > > To get that effect, all you need to do is to tell Emacs to treat > TAB the same way it treats other control characters (except newline): > > (aset (window-display-table) 9 > (vector (make-glyph-code ?^ 'escape-glyph) > (make-glyph-code (+ 9 64) 'escape-glyph))) > Thanks for the helpful input and taking the time to walk me thru a bit. [...] Looking for something else I stumbled upon the code snippet I thought i'd lost: Its pretty week, I guess, since it only covers 2 things: (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") )