From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 25 12:07:19 2012 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-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 26 06:55:44 2012 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. */ From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 26 08:10:17 2012 Received: (at 11341-done) by debbugs.gnu.org; 26 Apr 2012 12:10:17 +0000 Received: from localhost ([127.0.0.1]:53795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNNWa-0005W0-Ed for submit@debbugs.gnu.org; Thu, 26 Apr 2012 08:10:16 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]:49882) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SNNWY-0005Vm-BG for 11341-done@debbugs.gnu.org; Thu, 26 Apr 2012 08:10:14 -0400 Received: by iazz13 with SMTP id z13so1496153iaz.3 for <11341-done@debbugs.gnu.org>; Thu, 26 Apr 2012 05:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :cc:content-type; bh=pNApsuIcAModX9lfeMDhNYbEAmJjHSL8j/oWzFolxgQ=; b=qcv3K15rUh1AJJgNKJcHWSNP5LUrl9ym/7/rJyIh16vJu3yzuMhBSVDUg+Xg6Qpron tnMSpFfmeHo8OwNbE3ezqDmvSBtWW9dO/TxSUGbLjCTtZ13O2U9d27ys3/N8waXbsyV7 Wno4Z59n2ook9w0LX0/X+rNdyqMnvQvpEYBH1/bclarL9xUHfBvHTY1RjZoyHN1t9xwO zzn6dto3T9r1gAKv+soAojkYkE0I9T7bcmqQa2ssu4Alpz9j0/+LP7QyYtyy7VpK1ax0 qWLaq+l0Q7l4gEV9PbQFe9O9spNi/tlewvnvtIF8yLi2vyQ+9SLmA7TYxCRxBjrgjVNq BWow== Received: by 10.50.6.161 with SMTP id c1mr6242128iga.73.1335442150398; Thu, 26 Apr 2012 05:09:10 -0700 (PDT) References: <83pqauix15.fsf@gnu.org> From: Matt McClure In-Reply-To: <83pqauix15.fsf@gnu.org> Mime-Version: 1.0 (1.0) Date: Thu, 26 Apr 2012 08:09:07 -0400 Message-ID: <3265650850821658777@unknownmsgid> Subject: Re: bug#11341: Feature request: make whitespace visible and keep lines wrapped at word boundaries simultaneously To: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 11341-done Cc: "11341-done@debbugs.gnu.org" <11341-done@debbugs.gnu.org> 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: -1.6 (-) On Apr 26, 2012, at 6:55 AM, Eli Zaretskii wrote: >> 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). Thanks, Eli! Matt From unknown Sun Jun 15 08:40:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 25 May 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator