GNU bug report logs -
#39980
[PATCH] gnus-shorten-url: Improve and avoid args-out-of-range error
Previous Next
Reported by: Štěpán Němec <stepnem <at> gmail.com>
Date: Sun, 8 Mar 2020 09:07:02 UTC
Severity: normal
Tags: patch
Done: Štěpán Němec <stepnem <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #47 received at 39980 <at> debbugs.gnu.org (full text, mbox):
On Sun, 12 Apr 2020 16:38:57 +0300
Eli Zaretskii wrote:
>> You mean instead of reusing an existing function, fix `gnus-shorten-url'
>> without using it?
>
> Almost: the "existing function" doesn't really exist, you introduced
> it with the same changeset, right?
No, it's the (hopefully) tried and true `ediff-truncate-string-left',
only renamed and moved to subr-x to be generally available. The changes
are cosmetic. It would even be possible (in emacs-27, to avoid moving
anything), to use `ediff-truncate-string-left' unchanged, but that would
require gnus-sum to (require 'ediff-init), which would be crazy. Or make
`ediff-truncate-string-left' a defsubst instead of defun and
(eval-when-compile (require 'ediff-init)) in gnus-sum. That should
actually work :-P
> Both variants of the log message are fine.
Thanks.
--
Štěpán
This bug report was last modified 5 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.