From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Frank Terbeck Newsgroups: gmane.emacs.bugs Subject: bug#27743: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500326292 24758 195.159.176.226 (17 Jul 2017 21:18:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 21:18:12 +0000 (UTC) To: 27743@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 17 23:18:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXDP4-0006B5-Tb for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 23:18:07 +0200 Original-Received: from localhost ([::1]:52610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXDPA-0005E0-CW for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 17:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXDP4-0005Di-N5 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXDP1-0006Jw-1g for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:18:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42260) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXDP0-0006Jn-TS for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dXDP0-0007mL-LT for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Frank Terbeck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jul 2017 21:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150032624129850 (code B ref -1); Mon, 17 Jul 2017 21:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jul 2017 21:17:21 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: by jim.voodoo.lan (Postfix, from userid 1000) id A6442FE6D0; Mon, 17 Jul 2017 22:56:46 +0200 (CEST) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134690 Archived-At: 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))