all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt McClure <matthewlmcclure@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: whitespace-mode and visual-line-mode
Date: Wed, 25 Apr 2012 10:17:07 -0400	[thread overview]
Message-ID: <CAJELnLH51eHXvmqvffp03+MNC_uWRW8Xc+05nUhf9Z9_dN-uaA@mail.gmail.com> (raw)
In-Reply-To: <838vhkf81b.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2295 bytes --]

On Wed, Apr 25, 2012 at 5:57 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sun, 22 Apr 2012 20:29:44 -0400
> > From: Matt McClure <matthewlmcclure@gmail.com>
> >
> > How can I make whitespace visible and keep lines wrapped at word
> boundaries
> > simultaneously?
>
> Customize whitespace-display-mappings so that the whitespace
> characters are displayed as themselves, instead of as fancy non-ASCII
> glyphs.  (You will still have the faces to show the whitespace.)
>

Hm. I tried, but Emacs still didn't wrap at word boundaries.

Here's my custom value after copy/paste/editing the value from
whitespace.el to my emacs.el:

 '(whitespace-display-mappings (quote (
    (space-mark   ?\     [?.]     [?.]) ; space - centered dot
    (space-mark   ?\xA0  [?_]     [?_]) ; hard space - currency
    (space-mark   ?\x8A0 [?_]      [?_]) ; hard space - currency
    (space-mark   ?\x920 [?_]      [?_]) ; hard space - currency
    (space-mark   ?\xE20 [?_]      [?_]) ; hard space - currency
    (space-mark   ?\xF20 [?_]      [?_]) ; hard space - currency
    ;; NEWLINE is displayed using the face `whitespace-newline'
    (newline-mark ?\n    [?$ ?\n]) ; eol - dollar sign
    ;; (newline-mark ?\n    [?\u21B5 ?\n] [?$ ?\n]) ; eol - downwards arrow
    ;; (newline-mark ?\n    [?\u00B6 ?\n] [?$ ?\n]) ; eol - pilcrow
    ;; (newline-mark ?\n    [?\x8AF ?\n]  [?$ ?\n]) ; eol - overscore
    ;; (newline-mark ?\n    [?\x8AC ?\n]  [?$ ?\n]) ; eol - negation
    ;; (newline-mark ?\n    [?\x8B0 ?\n]  [?$ ?\n]) ; eol - grade
    ;;
    ;; WARNING: the mapping below has a problem.
    ;; When a TAB occupies exactly one column, it will display the
    ;; character ?\xBB at that column followed by a TAB which goes to
    ;; the next TAB column.
    ;; If this is a problem for you, please, comment the line below.
    (tab-mark     ?\t    [?\\ ?\t] [?\\ ?\t]) ; tab - left quote mark
    )))

Incidentally, `M-x customize-variable RET whitespace-display-mappings`
complains when I try to set a value in any fashion: "This field should
contain a single character".

For a better solution, please file a feature-request bug report, this
> would require changes in the display engine.
>

Done.

-- 
Matt McClure
http://www.matthewlmcclure.com
http://www.mapmyfitness.com/profile/matthewlmcclure

[-- Attachment #2: Type: text/html, Size: 4138 bytes --]

  reply	other threads:[~2012-04-25 14:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23  0:29 whitespace-mode and visual-line-mode Matt McClure
2012-04-25  9:57 ` Eli Zaretskii
2012-04-25 14:17   ` Matt McClure [this message]
2012-04-25 14:31     ` Eli Zaretskii
     [not found]       ` <CAJELnLGRG9XPtqnwWNErZwfzsku=4iCD_Pxq5BXh6UeSLOPz+Q@mail.gmail.com>
     [not found]         ` <83397rg7e2.fsf@gnu.org>
2012-04-25 15:41           ` Matt McClure
2012-04-25 15:45             ` Eli Zaretskii
     [not found] <mailman.452.1335141019.751.help-gnu-emacs@gnu.org>
2012-04-25  8:16 ` Xah Lee

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=CAJELnLH51eHXvmqvffp03+MNC_uWRW8Xc+05nUhf9Z9_dN-uaA@mail.gmail.com \
    --to=matthewlmcclure@gmail.com \
    --cc=eliz@gnu.org \
    --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.