From unknown Sun Jun 15 08:48:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11341: Feature request: make whitespace visible and keep lines wrapped at word boundaries simultaneously Resent-From: Matt McClure Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Apr 2012 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11341 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11341@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133537003915857 (code B ref -1); Wed, 25 Apr 2012 16:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Apr 2012 16:07:19 +0000 Received: from localhost ([127.0.0.1]:52911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SN4kQ-00047h-DN for submit@debbugs.gnu.org; Wed, 25 Apr 2012 12:07:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SN2yA-0000Rm-W3 for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN2wm-00089U-Hl for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:12:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN2wm-00088X-Bc for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:11:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN2wT-0003Op-Mn for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:11:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN2op-0004ZM-TD for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:03:49 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:45574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN2op-0004YW-Jl for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:03:43 -0400 Received: by iajr24 with SMTP id r24so178951iaj.0 for ; Wed, 25 Apr 2012 07:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=pJNWZ3qXYewxOfPUiPKzOJOu2is1iOSUQTzceZqwcr8=; b=y2XspZn64+DgW0NbFoqXpDtivWnPJQSeeDW+cqD6scSn666MjQUAHe3V8Fcz766Gpi /W99H6jpZKUqIsqlTeZTuyGV1gjhF3wDLSyo27NnZu8LmlKhMDFL3p8T8fGErh9qhmHS g56k4pboV+a/qqXbR2/eO/yOUlcUaHeJru9MnmwUex0cvs0OZ/WxtUXUx9AS+AYI4Cxr H/Eyx92vPNm7OGxQlnrGfYt+0SmLmveiM+ESZDQtITyZevgQyLgwtg1nX1/a9b3kkeyp uGsB558Gg5MkxE1wzdwmbCuriAjMEWB6rvl//iFP1xiYx0tCMdJJmPBHbYGDxpkAVlYi /deQ== MIME-Version: 1.0 Received: by 10.42.19.72 with SMTP id a8mr2016210icb.39.1335361063648; Wed, 25 Apr 2012 06:37:43 -0700 (PDT) Received: by 10.50.237.2 with HTTP; Wed, 25 Apr 2012 06:37:43 -0700 (PDT) Date: Wed, 25 Apr 2012 09:37:43 -0400 Message-ID: From: Matt McClure Content-Type: multipart/alternative; boundary=20cf3040ee52d87be504be80f95e X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.1 (-----) X-Mailman-Approved-At: Wed, 25 Apr 2012 12:07:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) --20cf3040ee52d87be504be80f95e Content-Type: text/plain; charset=ISO-8859-1 ---------- Forwarded message ---------- From: Eli Zaretskii Date: Wed, Apr 25, 2012 at 5:57 AM Subject: Re: whitespace-mode and visual-line-mode To: help-gnu-emacs@gnu.org > Date: Sun, 22 Apr 2012 20:29:44 -0400 > From: Matt McClure > > When I turn on whitespace-mode in a buffer with word-wrap on, e.g., in > visual-line-mode, lines become wrapped at the right edge of the window > instead of word boundaries. > > 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.) For a better solution, please file a feature-request bug report, this would require changes in the display engine. -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure --20cf3040ee52d87be504be80f95e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
---------- Forwarded = message ----------
From: Eli Zaretskii= <eliz@gnu.org>=
Date: Wed, Apr 25, 2012 at 5:57 AM
Subject: Re: whitespace-mode and visu= al-line-mode
To: help-gnu-emac= s@gnu.org


> Date: Sun, 22 Apr 2012 20:29:44 -0400
> From: Matt McClure <ma= tthewlmcclure@gmail.com>
>
> When I turn on whitespace-mode in a buffer with word-wrap on, e.g., in=
> visual-line-mode, lines become wrapped at the right edge of the window=
> instead of word boundaries.
>
> How can I make whitespace visible and keep lines wrapped at word bound= aries
> 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.)

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

--
Matt McClu= re
http://w= ww.matthewlmcclure.com
http://www.mapmyfitness.com/profile/ma= tthewlmcclure

--20cf3040ee52d87be504be80f95e-- From unknown Sun Jun 15 08:48:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Matt McClure Subject: bug#11341: closed (Re: bug#11341: Feature request: make whitespace visible and keep lines wrapped at word boundaries simultaneously) Message-ID: References: <83pqauix15.fsf@gnu.org> X-Gnu-PR-Message: they-closed 11341 X-Gnu-PR-Package: emacs Reply-To: 11341@debbugs.gnu.org Date: Thu, 26 Apr 2012 10:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1335437762-11556-1" This is a multi-part message in MIME format... ------------=_1335437762-11556-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11341: Feature request: make whitespace visible and keep lines wrapped at = word boundaries simultaneously which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11341@debbugs.gnu.org. --=20 11341: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11341 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1335437762-11556-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11341-done) by debbugs.gnu.org; 26 Apr 2012 10:55:44 +0000 Received: from localhost ([127.0.0.1]:53637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNMMS-0002zw-3x for submit@debbugs.gnu.org; Thu, 26 Apr 2012 06:55:44 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:41612) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNMMP-0002zf-HU for 11341-done@debbugs.gnu.org; Thu, 26 Apr 2012 06:55:43 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M3300C0028FOJ00@a-mtaout21.012.net.il> for 11341-done@debbugs.gnu.org; Thu, 26 Apr 2012 13:53:58 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.249.186]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3300CSN29XL080@a-mtaout21.012.net.il>; Thu, 26 Apr 2012 13:53:58 +0300 (IDT) Date: Thu, 26 Apr 2012 13:53:58 +0300 From: Eli Zaretskii Subject: Re: bug#11341: Feature request: make whitespace visible and keep lines wrapped at word boundaries simultaneously In-reply-to: X-012-Sender: halo1@inter.net.il To: Matt McClure Message-id: <83pqauix15.fsf@gnu.org> References: X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11341-done Cc: 11341-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Wed, 25 Apr 2012 09:37:43 -0400 > From: Matt McClure > > > Date: Sun, 22 Apr 2012 20:29:44 -0400 > > From: Matt McClure > > > > When I turn on whitespace-mode in a buffer with word-wrap on, e.g., in > > visual-line-mode, lines become wrapped at the right edge of the window > > instead of word boundaries. > > > > 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.) > > For a better solution, please file a feature-request bug report, this > would require changes in the display engine. Fixed in revision 108046 on the trunk (for Emacs 24.2). The diffs are below, if you don't want to wait. === modified file 'src/ChangeLog' --- src/ChangeLog 2012-04-26 10:07:35 +0000 +++ src/ChangeLog 2012-04-26 10:49:29 +0000 @@ -1,5 +1,9 @@ 2012-04-26 Eli Zaretskii + * xdisp.c (IT_DISPLAYING_WHITESPACE): In addition to the loaded + display element, check also the underlying string or buffer + character. (Bug#11341) + * w32menu.c: Include w32heap.h. (add_menu_item): If the call to AppendMenuW (via unicode_append_menu) fails, disable Unicode menus only if we are === modified file 'src/xdisp.c' --- src/xdisp.c 2012-04-20 08:48:50 +0000 +++ src/xdisp.c 2012-04-26 10:49:29 +0000 @@ -383,11 +383,21 @@ static Lisp_Object Qline_height; #define IT_OVERFLOW_NEWLINE_INTO_FRINGE(it) 0 #endif /* HAVE_WINDOW_SYSTEM */ -/* Test if the display element loaded in IT is a space or tab - character. This is used to determine word wrapping. */ - -#define IT_DISPLAYING_WHITESPACE(it) \ - (it->what == IT_CHARACTER && (it->c == ' ' || it->c == '\t')) +/* Test if the display element loaded in IT, or the underlying buffer + or string character, is a space or a TAB character. This is used + to determine where word wrapping can occur. */ + +#define IT_DISPLAYING_WHITESPACE(it) \ + ((it->what == IT_CHARACTER && (it->c == ' ' || it->c == '\t')) \ + || ((STRINGP (it->string) \ + && (SREF (it->string, IT_STRING_BYTEPOS (*it)) == ' ' \ + || SREF (it->string, IT_STRING_BYTEPOS (*it)) == '\t')) \ + || (it->s \ + && (it->s[IT_BYTEPOS (*it)] == ' ' \ + || it->s[IT_BYTEPOS (*it)] == '\t')) \ + || (IT_BYTEPOS (*it) < ZV_BYTE \ + && (*BYTE_POS_ADDR (IT_BYTEPOS (*it)) == ' ' \ + || *BYTE_POS_ADDR (IT_BYTEPOS (*it)) == '\t')))) \ /* Name of the face used to highlight trailing whitespace. */ ------------=_1335437762-11556-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Apr 2012 16:07:19 +0000 Received: from localhost ([127.0.0.1]:52911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SN4kQ-00047h-DN for submit@debbugs.gnu.org; Wed, 25 Apr 2012 12:07:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SN2yA-0000Rm-W3 for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN2wm-00089U-Hl for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:12:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN2wm-00088X-Bc for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:11:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN2wT-0003Op-Mn for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:11:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN2op-0004ZM-TD for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:03:49 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:45574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN2op-0004YW-Jl for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:03:43 -0400 Received: by iajr24 with SMTP id r24so178951iaj.0 for ; Wed, 25 Apr 2012 07:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=pJNWZ3qXYewxOfPUiPKzOJOu2is1iOSUQTzceZqwcr8=; b=y2XspZn64+DgW0NbFoqXpDtivWnPJQSeeDW+cqD6scSn666MjQUAHe3V8Fcz766Gpi /W99H6jpZKUqIsqlTeZTuyGV1gjhF3wDLSyo27NnZu8LmlKhMDFL3p8T8fGErh9qhmHS g56k4pboV+a/qqXbR2/eO/yOUlcUaHeJru9MnmwUex0cvs0OZ/WxtUXUx9AS+AYI4Cxr H/Eyx92vPNm7OGxQlnrGfYt+0SmLmveiM+ESZDQtITyZevgQyLgwtg1nX1/a9b3kkeyp uGsB558Gg5MkxE1wzdwmbCuriAjMEWB6rvl//iFP1xiYx0tCMdJJmPBHbYGDxpkAVlYi /deQ== MIME-Version: 1.0 Received: by 10.42.19.72 with SMTP id a8mr2016210icb.39.1335361063648; Wed, 25 Apr 2012 06:37:43 -0700 (PDT) Received: by 10.50.237.2 with HTTP; Wed, 25 Apr 2012 06:37:43 -0700 (PDT) Date: Wed, 25 Apr 2012 09:37:43 -0400 Message-ID: Subject: Feature request: make whitespace visible and keep lines wrapped at word boundaries simultaneously From: Matt McClure To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=20cf3040ee52d87be504be80f95e X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 25 Apr 2012 12:07:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) --20cf3040ee52d87be504be80f95e Content-Type: text/plain; charset=ISO-8859-1 ---------- Forwarded message ---------- From: Eli Zaretskii Date: Wed, Apr 25, 2012 at 5:57 AM Subject: Re: whitespace-mode and visual-line-mode To: help-gnu-emacs@gnu.org > Date: Sun, 22 Apr 2012 20:29:44 -0400 > From: Matt McClure > > When I turn on whitespace-mode in a buffer with word-wrap on, e.g., in > visual-line-mode, lines become wrapped at the right edge of the window > instead of word boundaries. > > 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.) For a better solution, please file a feature-request bug report, this would require changes in the display engine. -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure --20cf3040ee52d87be504be80f95e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
---------- Forwarded = message ----------
From: Eli Zaretskii= <eliz@gnu.org>=
Date: Wed, Apr 25, 2012 at 5:57 AM
Subject: Re: whitespace-mode and visu= al-line-mode
To: help-gnu-emac= s@gnu.org


> Date: Sun, 22 Apr 2012 20:29:44 -0400
> From: Matt McClure <ma= tthewlmcclure@gmail.com>
>
> When I turn on whitespace-mode in a buffer with word-wrap on, e.g., in=
> visual-line-mode, lines become wrapped at the right edge of the window=
> instead of word boundaries.
>
> How can I make whitespace visible and keep lines wrapped at word bound= aries
> 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.)

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

--
Matt McClu= re
http://w= ww.matthewlmcclure.com
http://www.mapmyfitness.com/profile/ma= tthewlmcclure

--20cf3040ee52d87be504be80f95e-- ------------=_1335437762-11556-1--