From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 17 17:17:21 2017 Received: (at submit) by debbugs.gnu.org; 17 Jul 2017 21:17:21 +0000 Received: from localhost ([127.0.0.1]:44937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXDOL-0007lN-GG for submit@debbugs.gnu.org; Mon, 17 Jul 2017 17:17:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXDOJ-0007lA-Jx for submit@debbugs.gnu.org; Mon, 17 Jul 2017 17:17:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXDOD-0005sA-07 for submit@debbugs.gnu.org; Mon, 17 Jul 2017 17:17:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXDOC-0005s5-TZ for submit@debbugs.gnu.org; Mon, 17 Jul 2017 17:17:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXDOB-0005At-Du for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXDO7-0005p7-Pg for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:17:11 -0400 Received: from smtprelay01.ispgateway.de ([80.67.31.28]:44980) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXDO7-0005oV-Jj for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:17:07 -0400 Received: from [46.183.97.119] (helo=jim.voodoo.lan) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dXD4d-0003qL-51 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 22:56:59 +0200 Received: by jim.voodoo.lan (Postfix, from userid 1000) id A6442FE6D0; Mon, 17 Jul 2017 22:56:46 +0200 (CEST) From: Frank Terbeck To: bug-gnu-emacs@gnu.org Subject: 26.0.50; Native Line Numbers seem to reset Tab Width Date: Mon, 17 Jul 2017 22:56:46 +0200 Message-ID: <87a842wzn5.fsf@spock> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: NDMwNDQ0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) At work we're using a tab-width of 4 (yeah, I know). I tried the new native line number code with that and saw that the tab-width reverted to eight characters. As soon as you disable line number display, tab-width is back to whatever it is actually configured to. This can in fact be reproduced from "emacs -Q". Just open a file that uses tabs for indentation. Then set tabulator width: (setq tab-width 4) The display of the tabulator width should now visibly be four characters. Now enable line number display: (setq display-line-numbers 'relative) Now the tabulator display returns to eight characters. This is the bug that I'm reporting. Disabling line number display: (setq display-line-numbers nil) ...returns the tabulator width to four characters. Regards, Frank In GNU Emacs 26.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.22.16) of 2017-07-15 built on spock Repository revision: 89c5d59280edaf89b959597a39d848b54c36975a Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Debian GNU/Linux unstable (sid) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. irtt.c has auto save data; consider M-x recover-this-file Making completion list... [3 times] 4 (#o4, #x4, ?\C-d) Making completion list... relative user-error: Beginning of history; no preceding item Configured using: 'configure --prefix=/opt/emacs --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LIBSYSTEMD Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: diff-auto-refine-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 abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml 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 vc-git diff-mode easy-mmode cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 120767 9161) (symbols 48 22938 1) (miscs 40 55 190) (strings 32 35982 939) (string-bytes 1 1080868) (vectors 16 17064) (vector-slots 8 522375 8842) (floats 8 53 383) (intervals 56 958 9) (buffers 976 13)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 18 10:28:00 2017 Received: (at 27743-done) by debbugs.gnu.org; 18 Jul 2017 14:28:00 +0000 Received: from localhost ([127.0.0.1]:46699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXTTj-0005c0-Ph for submit@debbugs.gnu.org; Tue, 18 Jul 2017 10:27:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXTTh-0005bn-RK for 27743-done@debbugs.gnu.org; Tue, 18 Jul 2017 10:27:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXTTa-0006A7-4t for 27743-done@debbugs.gnu.org; Tue, 18 Jul 2017 10:27:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXTTa-0006A1-1P; Tue, 18 Jul 2017 10:27:50 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1207 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dXTTY-0000XD-QN; Tue, 18 Jul 2017 10:27:49 -0400 Date: Tue, 18 Jul 2017 17:27:54 +0300 Message-Id: <83inipddlh.fsf@gnu.org> From: Eli Zaretskii To: Frank Terbeck In-reply-to: <87a842wzn5.fsf@spock> (message from Frank Terbeck on Mon, 17 Jul 2017 22:56:46 +0200) Subject: Re: bug#27743: 26.0.50; Native Line Numbers seem to reset Tab Width References: <87a842wzn5.fsf@spock> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27743-done Cc: 27743-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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Frank Terbeck > Date: Mon, 17 Jul 2017 22:56:46 +0200 > > > This can in fact be reproduced from "emacs -Q". Just open a file that > uses tabs for indentation. Then set tabulator width: > > (setq tab-width 4) > > The display of the tabulator width should now visibly be four > characters. Now enable line number display: > > (setq display-line-numbers 'relative) > > Now the tabulator display returns to eight characters. This is the bug > that I'm reporting. Disabling line number display: > > (setq display-line-numbers nil) > > ...returns the tabulator width to four characters. Thanks, fixed. (A stupid mistake which is exposed only when using tab-width of 4 or less, whereas I, believe it or not, did all my testing with tab-width = 5 and more.) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 18 16:55:15 2017 Received: (at 27743) by debbugs.gnu.org; 18 Jul 2017 20:55:15 +0000 Received: from localhost ([127.0.0.1]:46966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXZWV-00088I-0l for submit@debbugs.gnu.org; Tue, 18 Jul 2017 16:55:15 -0400 Received: from smtprelay01.ispgateway.de ([80.67.31.24]:26942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXZWU-000888-13 for 27743@debbugs.gnu.org; Tue, 18 Jul 2017 16:55:14 -0400 Received: from [46.183.97.119] (helo=jim.voodoo.lan) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dXZWP-0005kj-Ef; Tue, 18 Jul 2017 22:55:09 +0200 Received: by jim.voodoo.lan (Postfix, from userid 1000) id 3B85FFE6D0; Tue, 18 Jul 2017 22:55:04 +0200 (CEST) From: Frank Terbeck To: Eli Zaretskii Subject: Re: bug#27743: 26.0.50; Native Line Numbers seem to reset Tab Width In-Reply-To: <83inipddlh.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 Jul 2017 17:27:54 +0300") References: <87a842wzn5.fsf@spock> <83inipddlh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Date: Tue, 18 Jul 2017 22:55:04 +0200 Message-ID: <87pocxsbx3.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: NDMwNDQ0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27743 Cc: 27743@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: -0.7 (/) Eli Zaretskii wrote: [...] > Thanks, fixed. (A stupid mistake which is exposed only when using > tab-width of 4 or less, whereas I, believe it or not, did all my > testing with tab-width = 5 and more.) Yes, I can confirm that this issue is indeed fixed in current master. Thanks a lot Eli! And thanks for implementing this in the first place! Regards, Frank From unknown Sat Sep 06 02:32:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Aug 2017 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