After updating less recently, I noticed that it suddenly started syntax highlighting certain files I would open. Sometimes this is nice, but I've found it can misidentify files, and pygmentize sometimes makes really unreadable color choices, but I couldn't easily figure out how to disable it. After quite a bit of searching, I eventually learned about lesspipe, and discovered that a change to the default value of LESSCOLOR appears to be the main difference between this and less-633. I *think* turning this off would be enough to get back the old behavior, but I'm not too sure on that. This bug report is specifically about the fact that this seems like a big change to make to the functionality of less without any warning. I would prefer the old default of "no syntax highlighting" to be restored (arguing that the "bug workaround", after being around for 16 years, has established itself as the normal behavior), but as long as it's easy to change it's not that big of a deal. At the very least I would suggest an elog message informing users of the new feature, and how to revert to the old behavior. The lack of documentation anywhere was the one thing that truly bothered me about this issue. Reproducible: Always
Fair point, and I apologise for not considering that.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6404dafdf171eec9933510a160a4506776127e9 commit d6404dafdf171eec9933510a160a4506776127e9 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-08-13 02:56:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-08-13 03:01:02 +0000 sys-apps/less: add 643 Closes: https://bugs.gentoo.org/910700 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/less/Manifest | 1 + .../less/files/less-643-lesstest-pkg-config.patch | 34 ++++++++ sys-apps/less/less-643.ebuild | 93 ++++++++++++++++++++++ sys-apps/less/less-9999.ebuild | 46 ++++++----- 4 files changed, 156 insertions(+), 18 deletions(-)