GNU bug report logs - #55075
29.0.50; vtable: Option to not draw the header line at all

Previous Next

Package: emacs;

Reported by: Visuwesh <visuweshm <at> gmail.com>

Date: Sat, 23 Apr 2022 08:38:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55075 in the body.
You can then email your comments to 55075 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#55075; Package emacs. (Sat, 23 Apr 2022 08:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Visuwesh <visuweshm <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 23 Apr 2022 08:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Visuwesh <visuweshm <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; vtable: Option to not draw the header line at all
Date: Sat, 23 Apr 2022 14:07:18 +0530
Hello Lars,

Thanks for the vtable library.  It is really handy.  I have one minor
feature request that would apply when using this library to insert
aligned rows of text without any specific column names i.e.,

    (with-current-buffer (get-buffer-create "*vtable*")
      (erase-buffer)
      (make-vtable
       :objects '(("Foo" "Bar")
                  ("Bar" "What"))
       :use-header-line nil)
      (view-buffer (current-buffer)))    

In this example, it would be nice if vtable did not draw an empty column
line when :use-header-line and :columns are nil, which would let the
library users to draw rows of aligned texts without resorting to a
workaround that sets header-line-format to nil afterwards.

P.S. shouldn't the default :face be variable-pitch-text instead?

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
Repository revision: ca3858563c7ba8ee3caa82fbd2b7c386ea60c0d3
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
System Description: NixOS 21.11 (Porcupine)

Configured using:
 'configure
 --prefix=/nix/store/iqqk7iqfwmfc6r78xg2knyq7hww2mhs4-emacs-git-20220225.0
 --disable-build-details --with-modules --with-x-toolkit=lucid
 --with-xft --with-cairo --with-native-compilation'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $EMACSLOADPATH: 
  value of $EMACSNATIVELOADPATH: /nix/store/5gh4w50dhchhcyjm6ysh17h7y4i5vasf-emacs-packages-deps/share/emacs/native-lisp::
  value of $LC_MONETARY: ta_IN.UTF-8
  value of $LC_NUMERIC: ta_IN.UTF-8
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  vtable-header-mode: t
  semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode)  S)))
  shell-dirtrack-mode: t
  recentf-mode: t
  paredit-mode: t
  eros-mode: t
  flymake-mode: t
  hl-todo-mode: t
  pdf-occur-global-minor-mode: t
  minibuffer-depth-indicate-mode: t
  repeat-mode: t
  display-time-mode: t
  display-battery-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tab-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  undelete-frame-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/viz/.nix-profile/share/emacs/site-lisp/site-start hides /nix/store/5gh4w50dhchhcyjm6ysh17h7y4i5vasf-emacs-packages-deps/share/emacs/site-lisp/site-start
/home/viz/lib/emacs/straight/build/map/map hides /nix/store/iqqk7iqfwmfc6r78xg2knyq7hww2mhs4-emacs-git-20220225.0/share/emacs/29.0.50/lisp/emacs-lisp/map
/home/viz/lib/emacs/straight/build/let-alist/let-alist hides /nix/store/iqqk7iqfwmfc6r78xg2knyq7hww2mhs4-emacs-git-20220225.0/share/emacs/29.0.50/lisp/emacs-lisp/let-alist

Features:
(chemtable vtable debug cal-iso org-duration writegood-mode help-at-pt
dired-aux gnus-dired shadow ecomplete emacsbug sendmail shadowfile tramp
tramp-loaddefs trampver tramp-integration cus-start files-x tramp-compat
ls-lisp xref descr-text ement-taxy svg-lib tabify man shell-command+
timezone texmathp image-file image-converter mule-util shr-color
url-http url-gw url-cache url-auth subword-mode-expansions cap-words
superword subword nix-mode ffap smie nix-repl nix-shell nix-store
nix-instantiate nix-shebang nix-format nix org-capture doct cl-print
edebug backtrace expand-region text-mode-expansions cc-mode-expansions
the-org-mode-expansions er-basic-expansions expand-region-core
expand-region-custom time-stamp view ob-ditaa ob-plantuml org-crypt
org-habit org-agenda org-clock org-colview org-plot elec-pair pulse
reveal shortdoc help-fns flyspell ispell org-pdftools org-noter
org-refile org-element avl-tree generator pdf-sync pdf-annot facemenu
pdf-outline pdf-links ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs ob-shell ob-racket async
ob-async tempo ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc
ol-info ol-gnus nnselect ol-docview doc-view ol-bibtex ol-bbdb ol-w3m
ol-doi org-link-doi 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 org-version ob-emacs-lisp ob-core ob-eval
org-table oc-basic bibtex ol org-keys oc org-compat org-macs
org-loaddefs pdf-history icomplete flow-fill mm-archive sort gnus-cite
mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable
textsec-check qp gnus-async gnus-bcklg gnus-ml gnutls network-stream nsm
nndraft nnmh nnfolder nnmaildir nnagent nnml nnnil gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo
gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 netrc
nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus
nnheader range ement-room-list ement taxy-magit-section taxy
ement-notify notifications ement-room shr pixel-fill kinsoku url-file
url-dired svg dom ewoc color ement-api ement-structs ement-macros plz
magit-section dns ts s dash vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn
vc-cvs vc-rcs hippie-exp goto-addr log-edit message yank-media rmc puny
rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader shell
pcomplete smerge-mode add-log executable recentf tree-widget vc-backup
log-view pcvs-util vc diff face-remap misearch multi-isearch noutline
outline vc-git diff-mode vc-dispatcher cursor-sensor server paredit
edmacro kmacro eros time-date checkdoc flymake-proc flymake project
thingatpt hl-todo wordel-autoloads sokoban-autoloads ement-autoloads
comp comp-cstr warnings autoload radix-tree lisp-mnt ts-autoloads
svg-lib-autoloads taxy-magit-section-autoloads taxy-autoloads
map-autoloads plz-autoloads nov-autoloads esxml-autoloads kv-autoloads
transmission-autoloads lua-mode-autoloads nix-mode-autoloads
magit-section-autoloads dash-autoloads racket-mode-autoloads
eros-autoloads flymake-shellcheck-autoloads writegood-mode-autoloads avy
avy-autoloads siege-mode-autoloads paredit-autoloads puni-autoloads
expand-region-autoloads filladapt-autoloads compose quail
scroll-other-window org-pdftools-autoloads org-noter-autoloads
math-delimiters-autoloads doct-autoloads ob-async-autoloads
async-autoloads emacs-ob-racket-autoloads valign-autoloads
org-starless-autoloads cdlatex-autoloads auctex-autoloads tex-site
easy-mmode pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist advice
tablist-filter semantic/wisent/comp semantic/wisent
semantic/wisent/wisent semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local find-func cedet
pdf-isearch let-alist pdf-misc imenu pdf-tools 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 eieio
eieio-core eieio-loaddefs json map url-vars compile comint ansi-color
ring cus-edit wid-edit pdf-view password-cache jka-compr pdf-cache
pdf-info tq pdf-util pdf-macs image-mode dired-x dired dired-loaddefs
exif pdf-tools-autoloads let-alist-autoloads tablist-autoloads derived
mb-depth cus-load repeat visual-fill-autoloads olivetti-autoloads
hl-todo-autoloads time format-spec battery dbus filenotify xml
disp-table lacarte-autoloads shell-command-plus-autoloads
vc-backup-autoloads icalendar diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs rx filecache flymake-grammarly-autoloads
grammarly-autoloads websocket-autoloads finder-inf request-autoloads
s-autoloads chemtable-autoloads molar-mass-autoloads saveplace-pdf-view
saveplace bookmark text-property-search pp saveplace-pdf-view-autoloads
pcase straight-autoloads info cl-seq cl-extra help-mode straight cl-macs
cl-loaddefs cl-lib vz-nh-theme seq gv subr-x byte-opt bytecomp
byte-compile cconv 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 newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch 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-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite 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 keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
x multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 1656154 637310)
 (symbols 48 61590 132)
 (strings 32 325699 16913)
 (string-bytes 1 301230391)
 (vectors 16 129513)
 (vector-slots 8 3279364 421530)
 (floats 8 31695 5221)
 (intervals 56 114041 17763)
 (buffers 992 122))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55075; Package emacs. (Sat, 23 Apr 2022 12:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 55075 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 55075 <at> debbugs.gnu.org
Subject: Re: bug#55075: 29.0.50; vtable: Option to not draw the header line
 at all
Date: Sat, 23 Apr 2022 14:48:58 +0200
Visuwesh <visuweshm <at> gmail.com> writes:

> In this example, it would be nice if vtable did not draw an empty column
> line when :use-header-line and :columns are nil, which would let the
> library users to draw rows of aligned texts without resorting to a
> workaround that sets header-line-format to nil afterwards.

Yup.  I've now changed it so that it doesn't create the header or header
line if columns aren't specified.

> P.S. shouldn't the default :face be variable-pitch-text instead?

variable-pitch-text is for when you assume that variable-pitch will be
mixed with fixed-width, and that's not usually the case here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 55075 <at> debbugs.gnu.org and Visuwesh <visuweshm <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 23 Apr 2022 12:50:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55075; Package emacs. (Sat, 23 Apr 2022 14:30:02 GMT) Full text and rfc822 format available.

Message #13 received at 55075 <at> debbugs.gnu.org (full text, mbox):

From: Visuwesh <visuweshm <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 55075 <at> debbugs.gnu.org
Subject: Re: bug#55075: 29.0.50; vtable: Option to not draw the header line
 at all
Date: Sat, 23 Apr 2022 19:59:18 +0530
[சனி ஏப்ரல் 23, 2022] Lars Ingebrigtsen wrote:

> Visuwesh <visuweshm <at> gmail.com> writes:
>
>> In this example, it would be nice if vtable did not draw an empty column
>> line when :use-header-line and :columns are nil, which would let the
>> library users to draw rows of aligned texts without resorting to a
>> workaround that sets header-line-format to nil afterwards.
>
> Yup.  I've now changed it so that it doesn't create the header or header
> line if columns aren't specified.
>

Great, thanks.

>> P.S. shouldn't the default :face be variable-pitch-text instead?
>
> variable-pitch-text is for when you assume that variable-pitch will be
> mixed with fixed-width, and that's not usually the case here.

Ah, I thought variable-pitch-text was for used for in-buffer text and
variable-pitch for things like the header-line and the mode-line
(usually things that don't need to be super readable or that important).
But now, I get the idea, thanks.
[ Maybe this should be spelt out in the NEWS file?  ]




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 May 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.