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