From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Baldit Newsgroups: gmane.emacs.bugs Subject: bug#46590: 27.1.91; abnormal whitespace-mode behavior Date: Wed, 17 Feb 2021 15:06:14 +0100 Message-ID: <20210217150614.1eaecfdd@Cornafion.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17216"; mail-complaints-to="usenet@ciao.gmane.io" To: 46590@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 17 16:25:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCOhZ-0004Md-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 16:25:17 +0100 Original-Received: from localhost ([::1]:42240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCOhY-0006lu-LN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 10:25:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCOhK-0006jD-5c for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 10:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCOhJ-0002vK-T6 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 10:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCOhJ-0004ga-Pv for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 10:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Baldit Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2021 15:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46590 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161357546217944 (code B ref -1); Wed, 17 Feb 2021 15:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Feb 2021 15:24:22 +0000 Original-Received: from localhost ([127.0.0.1]:44688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCOgg-0004fL-5w for submit@debbugs.gnu.org; Wed, 17 Feb 2021 10:24:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCNTL-0002Lz-9U for submit@debbugs.gnu.org; Wed, 17 Feb 2021 09:06:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCNTK-0005hs-U4 for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 09:06:30 -0500 Original-Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]:48156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCNTI-0005ao-4P for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 09:06:30 -0500 Original-Received: from Cornafion.lan (unknown [IPv6:2a01:cb14:4d4:ee00:756f:da9e:3d15:b87e]) (Authenticated sender: frederic.baldit@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPA id 8C06C780344 for ; Wed, 17 Feb 2021 15:06:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1613570783; bh=GxT3RLz7PDjiEadlKwh6k4fjHpxBHyowC/2GYPvPsiI=; h=Date:From:To:Subject:From; b=M6197aFqDBnqCSFd+PM2BvK506Pycg0VaGG4fIazWThJQjk8yshB0jfHpp/Em7mfC e7i1mZPhdK12bSd6a+gHIT0ZnFEqyYHHgFvt6ANQbnjbobD1LxeGz14CUbgNBTr2Xy aBQfXkNKq7xe9IIrIoXjfwGqVWVKFQUHAuRHsHR0tayLXyzfrg3sgeGPXDcdd/2smB OcRcTpU9c/Lcnn/qBCiVUUr9BP2EatkXzcHu+CALil9ZJ7XaSrEO3YImu2mtOOPu71 dGEPe5YU/8+/fu6edurHXCHEitMvQZ86VIg8RFXMKpMSURqkiNDO4C1QD2gFwW5kiw vAWGUFCy5YnGA== X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Received-SPF: none client-ip=2a01:e0c:1:1599::15; envelope-from=frederic.baldit@free.fr; helo=smtp6-g21.free.fr 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 17 Feb 2021 10:24:20 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200199 Archived-At: --text follows this line-- Recipe to reproduce the bug: 1) I'm using emacs version 27.1.91 built from git sources in my /home directory (same bug is experimented with emacs version 26.1 installed from debian stable package). Command used to run emacs: emacs -Q test.txt & 2) M-x whitespace-mode RET 3) type the following text (=C2=AB.=C2=BB for spacebar key): =C2=AB....First line of text in emacs=C2=BB, then type RET 4) DEL DEL to suppress backward two spaces on line 2, then type text =C2=ABSecond one=C2=BB 5) M-2 M-b 6) TAB TAB TAB TAB: point should be at line 2, column 18, vertically aligned with fourth word of line 1 (=C2=ABtext=C2=BB), but it is at column = 26: that's the bug. Rq1: what is curious (to me) is that deactivating whitespace-mode removes abnormally inserted tab character (8 spaces) and everything is OK. Rq2: I noted that with a different text, this behavior of whitespace-mode disappears. For example, if one uses the following first line of text: =C2=AB....This.is.a.first.line.of.text.with.a.few.words=C2=BB, then the result of typing TAB multiple times is as expected, with or without whitespace-mode activated! Rq3: as I'm not an emacs expert, I first posted on help-gnu-emacs list in order to see if someone could explain me what I was missing: https://lists.gnu.org/archive/html/help-gnu-emacs/2021-02/msg00321.html Nobody explained me why I see this behavior (of whitespace-mode), thus I came to the conclusion it might be a bug (both answers are from persons using emacs 28.0.50). I must say that I followed as precisely as I could the advices found to submit a bug, in particular I read and followed =C2=AB52-Reporting bugs=C2=BB of emacs manual. --end of bug description-- In GNU Emacs 27.1.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2021-02-04 built on Cornafion Repository revision: 89f1634afcca318def07151424a21b81c70acd76 Repository branch: emacs-27 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. Whitespace mode enabled in current buffer You can run the command =E2=80=98whitespace-mode=E2=80=99 with M-x whit-m R= ET Whitespace mode enabled in current buffer Auto-saving...done Auto-saving...done Making completion list... Configured using: 'configure --prefix=3D/home/fred/emacs-03022021/' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Text Minor modes in effect: whitespace-mode: t tooltip-mode: t global-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 dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs cl-lib disp-table whitespace 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 threads 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 49999 5008) (symbols 48 6166 1) (strings 32 16282 1605) (string-bytes 1 538103) (vectors 16 10378) (vector-slots 8 138289 8918) (floats 8 20 41) (intervals 56 535 0) (buffers 1000 14)) -- Fr=C3=A9d=C3=A9ric Baldit