GNU bug report logs -
#62958
[PATCH] Set PAGER=cat in comint.el
Previous Next
Full log
View this message in rfc822 format
> From: Spencer Baugh <sbaugh <at> janestreet.com>
> Cc: 62958 <at> debbugs.gnu.org
> Date: Thu, 20 Apr 2023 11:47:42 -0400
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Sorry, this default cannot be universally correct. You assume that
> > 'cat' is always available, which is not true on non-Posix platforms.
> > So at the very least the value should be set according to
> > executable-find.
>
> executable-find is not correct in the case of "cat" unfortunately,
> because there are programs (git, for one) which if they see PAGER=cat,
> just don't start a pager at all, for greater efficiency. (which is
> desirable behavior)
Is this about removing the leading directories from the value of
executable-find? If so, that is trivial to do, and is not the main
point of what I wrote.
> > Should this test that comint-pager is a string?
>
> I don't think that's necessary; doing
> (if (stringp comint-pager) (list (format "PAGER=%s" comint-pager)))
> would have unexpected behavior if comint-pager was accidentally set to a
> non-string; doing
> (when comint-pager (progn (assert (stringp comint-pager))
> (list (format "PAGER=%s" comint-pager))))
> is a bit verbose and looks weird and is probably not that important.
So we are okay with the user setting the variable to a symbol or a
list or a vector?
Thanks.
This bug report was last modified 1 year and 361 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.