From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.help Subject: Re: whitespace-mode and visual-line-mode Date: Wed, 25 Apr 2012 10:17:07 -0400 Message-ID: References: <838vhkf81b.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93410bbc58ae004be81863a X-Trace: dough.gmane.org 1335363466 23413 80.91.229.3 (25 Apr 2012 14:17:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2012 14:17:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 16:17:44 2012 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 1SN32M-0000ed-4Z for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 16:17:42 +0200 Original-Received: from localhost ([::1]:35843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN32L-0002ga-H8 for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 10:17:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN326-0002g7-4M for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:17:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN320-00022l-Vp for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:17:25 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:47067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN31q-00020q-MZ; Wed, 25 Apr 2012 10:17:10 -0400 Original-Received: by yhr47 with SMTP id 47so164779yhr.0 for ; Wed, 25 Apr 2012 07:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Y2yUQl7IsyaGrlC/IeCNe2+IP8WeAPiAIFb8IdzRYUM=; b=D5PoW4pjowcLIRSb4q6FgHYdX1q6gkfefJk0kMomQHE86G9Ha5jO+svGAHKntR0/r/ bx/xyzsIgn4e8QBItw/SLKOGQsn0bja4XLQl3ikUfdJlqTdAdxOJAvwNueGYTNsijCes NtUmcYQClgTZwwo92VotCqtaojS5Brq8U6T6/5qDDjvNkIxNasQHmgqWK2zFAJMA69+t uBlL5FVFi7vWDkJ4+epgqgxILqSurivH2bMBSUbxzxTuGc62ufLmONtTvwiNkWdH87Cr GGwTwidxcysSpvCeOpkuFskQ3Uhi2yMqlSwlIu2QmkQecut1wr1mRlF8KbIosOPOLvrH M8WQ== Original-Received: by 10.50.186.129 with SMTP id fk1mr14478171igc.73.1335363427994; Wed, 25 Apr 2012 07:17:07 -0700 (PDT) Original-Received: by 10.50.237.2 with HTTP; Wed, 25 Apr 2012 07:17:07 -0700 (PDT) In-Reply-To: <838vhkf81b.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 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:84633 Archived-At: --14dae93410bbc58ae004be81863a Content-Type: text/plain; charset=ISO-8859-1 On Wed, Apr 25, 2012 at 5:57 AM, Eli Zaretskii wrote: > > Date: Sun, 22 Apr 2012 20:29:44 -0400 > > From: Matt McClure > > > > 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 --14dae93410bbc58ae004be81863a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 <ma= tthewlmcclure@gmail.com>
>
> How can I make whitespace visible and keep l= ines 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. =A0(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:

=A0'(whitespace-display-mappings (quote (
=A0 =A0 (space-mark =A0 ?\ =A0 =A0 [?.] =A0 =A0 [?.]) ; space - centered dot
=A0 =A0 (space-mark =A0 ?\xA0 =A0[?_] =A0 =A0 [?_]) ; hard space - currency
=A0 =A0 (space-mark =A0 ?\x8A0 [?_] =A0 =A0 =A0[?_]) ; hard space - currency
=A0 =A0 (space-mark =A0 ?\x920 [?_] =A0 =A0 =A0[?_]) ; hard space - currency
=A0 =A0 (space-mark =A0 ?\xE20 [?_] =A0 =A0 =A0[?_]) ; hard space - currency
=A0 =A0 (space-mark =A0 ?\xF20 [?_] =A0 =A0 =A0[?_]) ; hard space - currency
=A0 =A0 ;; NEWLINE is displayed using the face `whitespace-newline'= ;
=A0 =A0 (newline-mark ?\n =A0 =A0[?$ ?\n]) ; eol - dollar sign
=A0 =A0 ;; (newline-mark ?\n =A0 =A0[?\u21B5 ?\n] [?$ ?\n]) ; eol - downwards arrow
=A0 =A0 ;; (newline-mark ?\n =A0 =A0[?\u00B6 ?\n] [?$ ?\n]) ; eol - pilcrow
=
=A0 =A0 ;; (newline-mark ?\n =A0 =A0[?\x8AF ?\n] =A0[?$ ?\n]) ; eol - overscore
=A0 =A0 ;; (newline-mark ?\n =A0 =A0[?\x8AC ?\n] =A0[?$ ?\n]) ; eol - negation
=A0 =A0 ;; (newline-mark ?\n =A0 =A0[?\x8B0 ?\n] =A0[?$ ?\n]) ; eol - grade
=A0 =A0 ;;
=A0 =A0 ;; WARNING: the mapping below has a probl= em.
=A0 =A0 ;; When a TAB occupies exactly one column, it will di= splay the
=A0 =A0 ;; character ?\xBB at that column followed by a= TAB which goes to
=A0 =A0 ;; the next TAB column.
=A0 =A0 ;; If this is a prob= lem for you, please, comment the line below.
=A0 =A0 (tab-mark = =A0 =A0 ?\t =A0 =A0[?\\ ?\t] [?\\ ?\t]) ; tab - left quote mark
=A0 =A0 )))
=A0
Incidentally, `M-x customize= -variable RET whitespace-display-mappings` complains when I try to set a va= lue 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.
=A0
=
Done.=A0

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

--14dae93410bbc58ae004be81863a--