From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: about showing all characters including non-printable, control etc
Date: Mon, 5 Oct 2009 21:25:02 -0700 (PDT) [thread overview]
Message-ID: <3c5b5fe7-02f3-4a7a-99f3-0c6585c8fbc7@z3g2000prd.googlegroups.com> (raw)
In-Reply-To: mailman.8080.1254756945.2239.help-gnu-emacs@gnu.org
if you are using emacs 23, whitespace-mode is bundled.
See:
• How To Use And Setup Emacs's whitespace-mode
http://xahlee.org/emacs/whitespace-mode.html
Xah
∑ http://xahlee.org/
☄
On Oct 5, 8:34 am, Harry Putnam <rea...@newsguy.com> wrote:
> Bernardo <bernardo.ba...@pobox.com> 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....@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.
next prev parent reply other threads:[~2009-10-06 4:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7947.1254592734.2239.help-gnu-emacs@gnu.org>
2009-10-03 19:37 ` about showing all characters including non-printable, control etc John A Pershing Jr
2009-10-04 2:21 ` Harry Putnam
[not found] ` <mailman.7980.1254622935.2239.help-gnu-emacs@gnu.org>
2009-10-04 2:38 ` Pascal J. Bourguignon
2009-10-04 4:22 ` Harry Putnam
2009-10-04 4:02 ` Bernardo
2009-10-04 5:41 ` Harry Putnam
2009-10-04 22:39 ` Bernardo
2009-10-05 15:34 ` Harry Putnam
[not found] ` <mailman.8080.1254756945.2239.help-gnu-emacs@gnu.org>
2009-10-06 4:25 ` Xah Lee [this message]
2009-10-06 14:23 ` Harry Putnam
[not found] ` <mailman.7984.1254634925.2239.help-gnu-emacs@gnu.org>
2009-10-05 0:03 ` Tim X
2009-10-05 15:36 ` Harry Putnam
[not found] ` <mailman.8081.1254757216.2239.help-gnu-emacs@gnu.org>
2009-10-06 6:43 ` Tim X
2009-10-06 14:19 ` Harry Putnam
2009-10-03 17:58 Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c5b5fe7-02f3-4a7a-99f3-0c6585c8fbc7@z3g2000prd.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.