From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#32337: 26.1; display-line-numbers-mode makes cursor ill-aligned when number face is changed Date: Tue, 31 Jul 2018 16:19:39 -0300 Message-ID: <87effjtdpw.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533064696 18469 195.159.176.226 (31 Jul 2018 19:18:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2018 19:18:16 +0000 (UTC) To: 32337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 31 21:18:12 2018 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 1fka9p-0004dr-5L for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2018 21:18:09 +0200 Original-Received: from localhost ([::1]:60370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkaBv-0005vA-Nz for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2018 15:20:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkaBk-0005sF-H8 for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:20:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkaBg-0000q8-BT for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:20:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59883) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkaBg-0000pz-6p for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:20:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkaBe-0003rR-F2 for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jul 2018 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32337 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.153306480014827 (code B ref -1); Tue, 31 Jul 2018 19:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jul 2018 19:20:00 +0000 Original-Received: from localhost ([127.0.0.1]:36668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkaBb-0003r4-LS for submit@debbugs.gnu.org; Tue, 31 Jul 2018 15:20:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkaBZ-0003ql-QV for submit@debbugs.gnu.org; Tue, 31 Jul 2018 15:19:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkaBS-0000i4-Sd for submit@debbugs.gnu.org; Tue, 31 Jul 2018 15:19:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35595) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fkaBS-0000hq-NZ for submit@debbugs.gnu.org; Tue, 31 Jul 2018 15:19:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkaBQ-0005fY-TJ for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:19:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkaBM-0000eI-O7 for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:19:48 -0400 Original-Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:37759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkaBM-0000du-Gp for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2018 15:19:44 -0400 Original-Received: by mail-qt0-x22a.google.com with SMTP id n6-v6so17239146qtl.4 for ; Tue, 31 Jul 2018 12:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=9hhkAjr5bc25wcehQLSPdR/mUm4pdUt+/AUmRMexWGc=; b=uzmapESEJivACNtJiPLF0PxkQ3v2ha7gRGXtfTBrJ+8s8hLYjPHzJ8lUi+HX74F2ZG uf/2tB0+Fdh7AsPvIKNGqeVNr8dq51wEAzdnKZVkdu4Qlqh5x4LGCPvbR7IDsR3sJVM4 yWnFVmh6p/9Tbc9dlOSaNttGGR4Fr2CMeu/HSLrpxoIeA6InKTc0PitX4wjdn6AIusp7 LCllWX/ihrIMt8323TzioZ8Tw4nGegH0dJvKb/F1DM2ap6YJBa1yQn28DbpcXi5t1MyZ +lrp9TmEJAEbNb+drgMGNk50Wcn5ycNshH7rE6jmDRm1ZTF0GOYWdSYDAoXc3u15UpVF AVug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=9hhkAjr5bc25wcehQLSPdR/mUm4pdUt+/AUmRMexWGc=; b=Y5iFoBE4Rl6WS9ZIUnHupK3q2CbGDfozY0YSJfwlA+1po/Ka4SBnkA3wtwfddNgZ9p cR3IH8I1FcaanEx6N3wF+Byj5ewLwlL1tqtg7vBUYbAwiMXBfSWVDx06gXuZkdbuRblZ 8vvN7bGvpromRHcykQ7amlaGV3on6rznoUhDlKszFPOpoQN0f0B6mf+y56Slx9lKI4Oi +Ghg5qWgz3tw0PkDGgJWgP4Wplt/ysU5uTXiqjVgAPjnkcwZtmbIt6bjivg2sHbQKw95 4q+Snu6i9FBxpOu001xwYZELifePbjFOHfvo6dFYnQ0ZCROkD5D85BEVwfvVvnwYzMU4 BMzw== X-Gm-Message-State: AOUpUlF+eAan1fTahZPYg++wAg+CDrHxRJV9X33LIZOmehTkVDaswcdn EWw1BFDauZKIvqmlPNVgPMxoE3Ic X-Google-Smtp-Source: AAOMgpegH/jAmIIUnmMNRj/x77WOk+FtU3P3Dt1wZHI32H4qv5kb+k9QygGWmP0jexr/MI3kmNz7Ew== X-Received: by 2002:ac8:6681:: with SMTP id d1-v6mr21702778qtp.94.1533064783523; Tue, 31 Jul 2018 12:19:43 -0700 (PDT) Original-Received: from archlinux ([190.2.33.33]) by smtp.gmail.com with ESMTPSA id h55-v6sm13936028qta.86.2018.07.31.12.19.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jul 2018 12:19:42 -0700 (PDT) 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.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:149125 Archived-At: With the new display-line-numbers-mode, if you customize faces to something like, say: '(line-number ((t (:height 0.85)))) '(line-number-current-line ((t (:height 0.85)))) Then the cursor will be ill-aligned (a bit shifted to the right) when it's in the last line of the buffer. This line has no number and it seems to be that the spacing is miscalculated using the default face size. --- In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 Recent messages: Whitespace mode disabled in current buffer Auto-saving...done Quit [2 times] C-h C-g is undefined Quit [3 times] apply: Command attempted to use minibuffer while in minibuffer ESC M-x is undefined ESC ESC is undefined ESC ESC M-x is undefined previous-line: Beginning of buffer Quit [4 times] Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t pdf-occur-global-minor-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t xclip-mode: t winner-mode: t show-paren-mode: t ido-ubiquitous-mode: t ido-everywhere: t global-company-mode: t company-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs debug ob-ditaa ob-plantuml org-archive org-bibtex bibtex org-capture org-clock org-colview org-crypt org-habit org-agenda org-indent org-table cl-print completion dabbrev autoload lisp-mnt magit-bookmark magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql ghub url-http tls gnutls url-gw nsm url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils crm magit-popup log-edit message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async dash tabify misearch multi-isearch face-remap vc-git whitespace server display-line-numbers checkdoc pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet dired dired-loaddefs pdf-isearch let-alist pdf-misc imenu pdf-tools pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util image-mode org-protocol org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs cl-extra yasnippet elec-pair highlight-indentation flymake-proc flymake warnings help-fns radix-tree help-mode elpy find-file-in-project ivy delsel colir color ivy-overlay ffap thingatpt windmove diff-mode easy-mmode elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elpy-profile elpy-django elpy-refactor subr-x python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec advice json map grep compile comint ansi-color files-x doom-themes-org doom-tomorrow-night-theme doom-themes doom-themes-common company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb xclip winner ring paren ido-completing-read+ memoize s cus-edit minibuf-eldef ido gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums time-date mail-utils mm-util mail-prsvr wid-edit company edmacro kmacro pcase cus-start cus-load finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 1265435 39917) (symbols 48 52701 1) (miscs 40 4729 1375) (strings 32 163288 1415) (string-bytes 1 4870943) (vectors 16 85036) (vector-slots 8 1342564 39156) (floats 8 612 542) (intervals 56 5026 459) (buffers 992 53))