From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: about showing all characters including non-printable, control etc
Date: Mon, 05 Oct 2009 10:34:54 -0500 [thread overview]
Message-ID: <87ocolx3a9.fsf@newsguy.com> (raw)
In-Reply-To: 4AC9240C.2000907@pobox.com
Bernardo <bernardo.bacic@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.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.
next prev parent reply other threads:[~2009-10-05 15:34 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 [this message]
[not found] ` <mailman.8080.1254756945.2239.help-gnu-emacs@gnu.org>
2009-10-06 4:25 ` Xah Lee
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=87ocolx3a9.fsf@newsguy.com \
--to=reader@newsguy.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.