From unknown Sun Jun 22 11:39:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42811 <42811@debbugs.gnu.org> To: bug#42811 <42811@debbugs.gnu.org> Subject: Status: 26.1; visual-line-mode wraps at no-break space Reply-To: bug#42811 <42811@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:39:40 +0000 retitle 42811 26.1; visual-line-mode wraps at no-break space reassign 42811 emacs submitter 42811 Marvin =E2=80=98quintus=E2=80=99 G=C3=BClker severity 42811 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 10:04:21 2020 Received: (at submit) by debbugs.gnu.org; 11 Aug 2020 14:04:22 +0000 Received: from localhost ([127.0.0.1]:41285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Ut3-0004qI-Hw for submit@debbugs.gnu.org; Tue, 11 Aug 2020 10:04:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:52732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Ut0-0004q7-NT for submit@debbugs.gnu.org; Tue, 11 Aug 2020 10:04:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Ut0-0007X0-BT for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 10:04:18 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]:61288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1k5Usx-0008Jr-C7 for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 10:04:17 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4BQvh83wkDzQlWq for ; Tue, 11 Aug 2020 16:03:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1597154630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=crCQ2sX+JiJTPy5GBiP7vV5e/H1OWhdtXdjPnWj0nWY=; b=WBcFLgIOgETCbSFq7caVF64NEbmDhZiIi/gDvFqyoW2dpbB3u34f3FX+uTVqWA1ZMrFtO2 cRqQDIdK309JFyMbegimS4SnIWNjEIS3tZxtprtJsVEbb/kSdByvQvQ6fl0UPjAkXUu/+f QcvIp54P5mYMyOtf8R0qPXIgnSB/klhiSdt35+cAnTdQLOlTWspRWaIpsjdkoR3R/rJ+qS gk+eLzGW5Q3yDJPubUyxONVT8QFng+JunWPp7jpsh6HSiLk7/2ywVQ1l8OAwH+hbHLuvCO CDkUTSEJKsFIb8O7BT6VCqS1ZxuqpXkD50GcC55JOeShp5SPt7vKAdUP+gmU6Q== Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id RIceky1WvLEl for ; Tue, 11 Aug 2020 16:03:48 +0200 (CEST) From: =?utf-8?Q?Marvin_=E2=80=98quintus=E2=80=99_G=C3=BClker?= To: bug-gnu-emacs@gnu.org Subject: 26.1; visual-line-mode wraps at no-break space Date: Tue, 11 Aug 2020 16:03:44 +0200 Message-ID: <878selb7pb.fsf@guelker.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-SPAM-Probability: X-Rspamd-Score: -6.51 / 15.00 / 15.00 X-Rspamd-Queue-Id: 1EBDC17B3 X-Rspamd-UID: 9947ac Received-SPF: pass client-ip=2001:67c:2050::465:201; envelope-from=post+ebugs@guelker.eu; helo=mout-p-201.mailbox.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Dear maintainer, the visual-line-mode minor mode wraps lines at non-breaking spaces (U+000A0 No-Break Space, NBSP: '=C2=A0'). It should not do that and instead treat the sequence of characters before and after the NBSP as one word. That is, if you have: Lorem ipsum dolor=C2=A0sit amet ^ NBSP Then visual-line-mode will consider the no-break space between 'dolor' and 'sit' as a possible wrap point, which is contrary to what a no-break space is meant to achieve. To reproduce: enable visual-line-mode, write a document that contains a NBSP, and shrink the window so that its edge hits the NBSP. visual-line-mode will break the line at the NBSP, albeit it shouldn't. -quintus In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-23, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-StqULU/emacs-26.1+1=3D. -fstack-protecto= r-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95477 8514) (symbols 48 20406 1) (miscs 40 44 143) (strings 32 28378 1537) (string-bytes 1 743439) (vectors 16 14637) (vector-slots 8 496344 10838) (floats 8 49 68) (intervals 56 261 0) (buffers 992 11)) --=20 Dipl.-Jur. M. G=C3=BClker | https://mg.guelker.eu | For security: Unna, Germany | kontakt@guelker.eu | () Avoid HTML e-mail European Union | PGP: see homepage | /\ http://asciiribbon.org From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 11:03:04 2020 Received: (at 42811) by debbugs.gnu.org; 11 Aug 2020 15:03:04 +0000 Received: from localhost ([127.0.0.1]:41394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Vnr-0006iS-Ow for submit@debbugs.gnu.org; Tue, 11 Aug 2020 11:03:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Vnq-0006hz-Fz for 42811@debbugs.gnu.org; Tue, 11 Aug 2020 11:03:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43755) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5Vnk-0007La-PI; Tue, 11 Aug 2020 11:02:56 -0400 Received: from [176.228.60.248] (port=2658 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k5Vnk-0000um-3G; Tue, 11 Aug 2020 11:02:56 -0400 Date: Tue, 11 Aug 2020 18:02:43 +0300 Message-Id: <83imdp444s.fsf@gnu.org> From: Eli Zaretskii To: Marvin =?utf-8?B?4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= In-Reply-To: <878selb7pb.fsf@guelker.eu> (post+ebugs@guelker.eu) Subject: Re: bug#42811: 26.1; visual-line-mode wraps at no-break space References: <878selb7pb.fsf@guelker.eu> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42811 Cc: 42811@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Marvin ‘quintus’ Gülker > > Date: Tue, 11 Aug 2020 16:03:44 +0200 > > To reproduce: enable visual-line-mode, write a document that contains a > NBSP, and shrink the window so that its edge hits the NBSP. > visual-line-mode will break the line at the NBSP, albeit it shouldn't. If you set nobreak-char-display to nil, you get the behavior you want. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 01:59:25 2020 Received: (at 42811) by debbugs.gnu.org; 12 Aug 2020 05:59:26 +0000 Received: from localhost ([127.0.0.1]:42681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5jnJ-0003eo-Nv for submit@debbugs.gnu.org; Wed, 12 Aug 2020 01:59:25 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:36984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5jnG-0003eZ-6o for 42811@debbugs.gnu.org; Wed, 12 Aug 2020 01:59:24 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4BRJtX0H8TzKmQc; Wed, 12 Aug 2020 07:59:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1597211953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8FQvg+WifK9cXj24tcpB0c5cJ2KJUGMpqL//CjQdtxA=; b=pTo+6YwdbZHshefj4xwmCF485O3Wm8r7vHM6TqPq4ksIXNJh78BA9dtRTyGPpZJZM0d+J/ SBfh1E0Flr2ATauR9Eu9al15NG5DQ5vkdKojkSv/Liq9bYkzkTUuozutJ+c+NkMHm/65Yw ZNsqT8AQ/LImxf9fcE6vXJHKyNKxeOPBTkuuhsk+B+G0jl/EqpRC3PyDdkeakjo3kp7upv rKCiSx2S//sDMJHmfuP8p9bAqSuHBRIqUigtZd+a6H4QTC9oe/NVJdKizSCGHzAYnT18g6 xBQ5VcCbeRBoUbQSuo5n8hs5IvWESdLPNYz/E6ArAGa5m5GlB0Sti0vZxZ/xmg== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id XQMS2A546IhK; Wed, 12 Aug 2020 07:59:09 +0200 (CEST) From: =?utf-8?Q?Marvin_=E2=80=98quintus=E2=80=99_G=C3=BClker?= To: Eli Zaretskii Subject: Re: bug#42811: 26.1; visual-line-mode wraps at no-break space References: <878selb7pb.fsf@guelker.eu> <83imdp444s.fsf@gnu.org> Date: Wed, 12 Aug 2020 07:59:06 +0200 In-Reply-To: <83imdp444s.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Aug 2020 18:02:43 +0300") Message-ID: <87v9ho4d79.fsf@guelker.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-SPAM-Probability: X-Rspamd-Score: -4.82 / 15.00 / 15.00 X-Rspamd-Queue-Id: AF70E1790 X-Rspamd-UID: 03f787 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42811 Cc: 42811@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Dienstag, dem 11. August 2020 schrieb Eli Zaretskii: > If you set nobreak-char-display to nil, you get the behavior you want. Indeed, this works. But now the NBSP is not highlighted anymore as a special character and I won't notice it is in there. Is there a way to have both the highlighted display and the no-break behaviour? -quintus --=20 Dipl.-Jur. M. G=C3=BClker | https://mg.guelker.eu | For security: Unna, Germany | kontakt@guelker.eu | () Avoid HTML e-mail European Union | PGP: see homepage | /\ http://asciiribbon.org From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 15 06:34:10 2020 Received: (at 42811-done) by debbugs.gnu.org; 15 Aug 2020 10:34:10 +0000 Received: from localhost ([127.0.0.1]:54307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6tVq-0004uH-5D for submit@debbugs.gnu.org; Sat, 15 Aug 2020 06:34:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6tVn-0004tx-Os for 42811-done@debbugs.gnu.org; Sat, 15 Aug 2020 06:34:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47618) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6tVg-0007wL-K8; Sat, 15 Aug 2020 06:34:00 -0400 Received: from [176.228.60.248] (port=1749 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k6tVf-0001AS-ET; Sat, 15 Aug 2020 06:34:00 -0400 Date: Sat, 15 Aug 2020 13:33:52 +0300 Message-Id: <83pn7sjizz.fsf@gnu.org> From: Eli Zaretskii To: Marvin =?utf-8?B?4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= In-Reply-To: <87v9ho4d79.fsf@guelker.eu> (post+ebugs@guelker.eu) Subject: Re: bug#42811: 26.1; visual-line-mode wraps at no-break space References: <878selb7pb.fsf@guelker.eu> <83imdp444s.fsf@gnu.org> <87v9ho4d79.fsf@guelker.eu> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42811-done Cc: 42811-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Marvin ‘quintus’ Gülker > > Cc: 42811@debbugs.gnu.org > Date: Wed, 12 Aug 2020 07:59:06 +0200 > > Am Dienstag, dem 11. August 2020 schrieb Eli Zaretskii: > > If you set nobreak-char-display to nil, you get the behavior you want. > > Indeed, this works. But now the NBSP is not highlighted anymore as a > special character and I won't notice it is in there. Is there a way to > have both the highlighted display and the no-break behaviour? I made such a change (on the master branch), not without some trepidation, as the current behavior is very old (15 years), so I wonder whether some feature relies on that. We shall see, I guess. Note that when nobreak-char-display is non-nil and non-t, we still produce an ASCII space after the backslash-escape, so the display engine will still wrap at that spot. But here, I cannot make the same change, because the Emacs manual clearly documents this behavior. Thanks. From unknown Sun Jun 22 11:39:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 Sep 2020 11:24:05 +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