From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.bugs Subject: bug#55387: 28.1.50; csv-mode: header does not align when line numbers are displayed Date: Thu, 12 May 2022 17:33:37 +0200 Message-ID: <87wneq7oeb.fsf@fastmail.fm> 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="16101"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 28.1.50 To: 55387@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 12 17:41:19 2022 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 1npAwH-0003xu-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 17:41:18 +0200 Original-Received: from localhost ([::1]:34786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npAwG-0001cW-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 May 2022 11:41:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npAt9-0005ch-4a for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npAt8-00048T-QU for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npAt8-0006Vm-L5 for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joost Kremers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2022 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55387 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.165236986925006 (code B ref -1); Thu, 12 May 2022 15:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2022 15:37:49 +0000 Original-Received: from localhost ([127.0.0.1]:41987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npAsr-0006V9-7n for submit@debbugs.gnu.org; Thu, 12 May 2022 11:37:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npAsp-0006V2-Ug for submit@debbugs.gnu.org; Thu, 12 May 2022 11:37:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npAsp-0004X9-E3 for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:37:43 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npAsm-00044x-BL for bug-gnu-emacs@gnu.org; Thu, 12 May 2022 11:37:43 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 140C93200302 for ; Thu, 12 May 2022 11:37:36 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 12 May 2022 11:37:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1652369856; x=1652456256; bh=pokpC0bhfA i7NzyNETzAvSgW1qTcz5tTgBAwIkH7jx8=; b=tRXFJjaHyywI95+WEScMzTV96W 9Wn3Kiu5LjYgv/ENFX2nFHQH6IyfXua1kbV0zgwS8fSTHLETHwjxR9rGs/K+BSI1 k5HhpjThjorZRziir+JwUH1e53OqcX14WrQK0gn4uWjSc3kHYoPQUayxWCAwYMn0 ItKGZ7VN6B/x9VJ2hvCkNvmBvKBspRJWristX0hUhOl3PeT8gqSsTOQ5pomjAvfk HGa2oOVO+acV3R1sUWmVFBrVkyN9CbeaVJYwMnX0vLvaYDw8JHJ9jV4AABYO0s2Z ETDWMBo6HAHj8aCvkELZHyzZrktgLfocI8PceXmjjqno331yIxoLNwtrjqkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1652369856; x= 1652456256; bh=pokpC0bhfAi7NzyNETzAvSgW1qTcz5tTgBAwIkH7jx8=; b=o GZgSKzoJM6ymSfMb7bsT9+1QgDRwS23fg0HMwKSGkOKAOCGy3ygYfKtwNyxihVFM VUz3lSQadTSuX6ZWHhm4CbAAmj76cmQTM/6r+t2pI7hcAuQdbrx8EZ+awGb37Jdq +mKxrfKEUPlGnQNJZ8x0+VTLlpmB0glgUmHEjcZg8Ki4duYjp9BoOOa5xhLBL0vC R9VeFwOkSR8/TUvwqrRyGmlgPnbPVj5fZYDomF0lxi6Q4fGHAFn8KiCPlqV+Gwx0 bc5Pv9OT6BSEbYTX0zxXof9r/NoITQmKcny22pWYVQBBXs4Jg5q4gDAm6HXvo2Be e7ryfnjjZscdDXm81FIcw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeejgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtgfesthhqredttd erjeenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepgeetheejheevgeelve evjedvueelheekvdfgvefgveeujeefvdetueekveduheffnecuffhomhgrihhnpehgnhhu rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 12 May 2022 11:37:36 -0400 (EDT) Received-SPF: pass client-ip=64.147.123.25; envelope-from=joostkremers@fastmail.fm; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:232056 Archived-At: `csv-mode` has the option to display a header line so you can make column n= ames=20 permanently visible, which is a very nice option. However, when=20 `display-line-numbers-mode` is active, the column names do not line up with= the=20 actual columns, because the header line does not take into account the spac= e=20 taken up by the line numbers. I posted this on emacs-devel: Eli Zaretskii suggested this can be fixed by doing something similar to what tabulated-list-mode does. I'm not sure I'll find time to dive into that any= time soon, so I'm posting here to make sure the issue isn't forgotten. Joost In GNU Emacs 28.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, c= airo version 1.16.0) of 2022-04-04 built on Lenovo Repository revision: dd3863d8bcc77c43363bbd041da1c1eb37a3ee32 Repository branch: emacs-28 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: elementary OS 6.1 J=C3=B3lnir Configured using: 'configure --with-harfbuzz --with-cairo --with-json --with-libgmp --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOT= IFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11= XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: en_IE.UTF-8 value of $LC_NUMERIC: en_IE.UTF-8 value of $LC_TIME: en_IE.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: VTerm Minor modes in effect: flycheck-indicator-mode: t minions-mode: t doom-modeline-mode: t which-key-mode: t global-atomic-chrome-edit-mode: t marginalia-mode: t all-the-icons-completion-mode: t company-prescient-mode: t selectrum-prescient-mode: t prescient-persist-mode: t projectile-mode: t global-diff-hl-mode: t global-git-commit-mode: t csv-field-index-mode: t shell-dirtrack-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t global-company-mode: t company-mode: t electric-pair-mode: t recentf-mode: t delete-selection-mode: t override-global-mode: t ctrlf-mode: t ctrlf-local-mode: t selectrum-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-save-visited-mode: t Load-path shadows: ~/.emacs.d/lisp/custom hides /usr/local/share/emacs/28.1.50/lisp/custom /home/joost/.emacs.d/elpa/transient-20220509.1943/transient hides /usr/loca= l/share/emacs/28.1.50/lisp/transient Features: (shadow emacsbug gnus-fun shr-color calc-misc calc-arith calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs vc-mtn vc-hg vc-git vc-bzr vc-src vc= -sccs vc-cvs vc-rcs consult-selectrum consult compat-28 mc-edit-lines wdired dire= d-aux pcmpl-unix em-unix em-term em-script em-prompt em-ls em-hist em-pred em-glob em-cmpl em-dirs esh-var em-basic em-banner em-alias esh-mode char-fold display-fill-column-indicator flycheck-indicator org-autolist org-indent ol= -eww eww xdg mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe ol-docview ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi avy gnus-icalendar org-capture org-refile icalendar diary-lib diary-loaddefs qp smiley gnus-cite mail-extr visual-fill-column display-line-numbers mu4e-settings gnus-dired mu4e mu4e-org mu4e-main mu4e-= view mu4e-view-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-sou= rce utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader mu4e-view-common mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-act= ions rfc2368 smtpmail sendmail mu4e-mark mu4e-proc mu4e-utils doc-view jka-compr image-mode exif mu4e-lists mu4e-message flow-fill mu4e-vars mu4e-meta async mm-archive mule-util gnutls url-cache finder-inf jk-input-methods quail wgr= ep-ag wgrep flycheck-ledger vterm bookmark term disp-table ehelp vterm-module term/xterm xterm ielm minions doom-modeline doom-modeline-segments doom-modeline-env doom-modeline-core shrink-path which-key atomic-chrome ii= mage image+ image-file image-converter ctrlf marginalia all-the-icons-completion company-prescient selectrum-prescient selectrum minibuf-eldef prescient dockerfile-mode sh-script smie executable impatient-mode htmlize tide tide-= lv typescript-mode indium indium-list-sources indium-scratch indium-interaction indium-chrome indium-nodejs indium-repl indium-debugger indium-debugger-lit= able js2-refactor js2r-paredit js2r-conveniences js2r-conditionals js2r-wrapping js2r-functions js2r-vars mc-hide-unmatched-lines-mode mc-mark-more mc-cycle-cursors multiple-cursors-core rect js2r-iife js2r-formatting js2r-helpers indium-debugger-locals indium-breakpoint indium-inspector indium-render indium-faces indium-seq-fix indium-client indium-structs json-process-client js2-mode js cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs jupyter python-pytest lsp-pyri= ght dap-python paredit flycheck-clj-kondo sesman clojure-mode align dap-mode dap-launch dap-overlays eldoc-box jsonrpc ert debug backtrace lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideli= ne flycheck-posframe flycheck lsp-mode network-stream markdown-mode inline ime= nu f lsp-ui-util face-remap lsp-protocol ht ag vc-svn find-dired s projectile lisp-mnt grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt diff-hl log-view vc-dir ewoc vc vc-dispatcher diff-mode git-commit magit-git magit-= base magit-section crm compat-27 compat-26 with-editor transient compat log-edit message rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rma= il rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log autorevert filenotify aggressive-indent nswbuff yaml-mode yaml guess-language flyspell ispell dired dired-loaddefs reftex reftex-loaddefs reftex-vars csv-mode sort tab-jump-out yasnippet-snippets yasnippet company-org-block org-element avl-tree org-settings org-clock ob-jupyter jupyter-tramp jupyter-server jupyter-server-ioloop jupyter-ioloop-comm jupyter-ioloop zmq zmq-core jupyter-rest-api url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr u= rl-gw nsm rmc jupyter-org-extensions jupyter-org-client jupyter-repl jupyter-kernel-manager jupyter-channel jupyter-widget-client websocket bind= at simple-httpd jupyter-client jupyter-comm-layer jupyter-messages hmac-def jupyter-mime shr kinsoku text-property-search puny svg dom jupyter-kernelsp= ec jupyter-env jupyter-base eieio-base ob-shell ob-scheme ob-clojure ob-python python tramp-sh org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-bas= ic ol org-keys oc org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color parse-time ls-lisp format-spec biblio biblio-download biblio-dissemin biblio-ieee biblio-hal biblio-dblp biblio-crossref biblio-arxiv timezone biblio-doi biblio-core let-alist url-queue ido hl-line bibtex iso8601 time-= date adaptive-wrap goggles comp comp-cstr warnings pulse posframe bm company-quickhelp pos-tip all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-ipa company-files company-clang company-cmake company-semantic company-template company-css company-capf company pcase solarized-light-theme solarized-theme solarized solarized-faces color paradox paradox-menu paradox-commit-list hydra ring lv cus-edit pp cus-load paradox-execute paradox-github paradox-core spinner da= sh cl-extra help-mode jk-functions advice eshell esh-cmd esh-ext esh-opt esh-p= roc esh-io esh-arg esh-module esh-groups esh-util notifications dbus xml edmacro kmacro server elec-pair recentf tree-widget wid-edit delsel use-package use-package-ensure use-package-delight use-package-diminish use-package-bin= d-key bind-key use-package-core tex-site rx realgud-recursive-autoloads easy-mmode info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache j= son subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomm= ent text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow is= earch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-l= ang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese compo= site emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages = mule custom widget hashtable-print-readable backquote threads dbusbind inotify l= cms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar = gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 2507671 210461) (symbols 48 75183 82) (strings 32 389951 32176) (string-bytes 1 15471027) (vectors 16 134357) (vector-slots 8 2471944 157675) (floats 8 1840 1637) (intervals 56 237674 14841) (buffers 992 29)) --=20 Joost Kremers Life has its moments