GNU bug report logs -
#44021
delete-non-matching-lines optional arg REND not really optional
Previous Next
Reported by: Boruch Baum <boruch_baum <at> gmx.com>
Date: Thu, 15 Oct 2020 18:58:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 44021 <at> debbugs.gnu.org (full text, mbox):
On 2020-10-16 07:36, Lars Ingebrigtsen wrote:
> I've now mentioned this in the doc string.
Not the solution I was expecting. I was expecting the ARG to really
become optional, to be consistent with similar END arguments in other
emacs functions. Something like:
(setq rend (or rend (point-max)))
Also, as a quibble, for consistency the args should be renamed START and
END, instead of RSTART and REND. See, for instance,
(delete-trailing-whitespace &optional START END)
(narrow-to-region START END)
This is true even in the same elisp file replace.el:
(replace-regexp regexp to-string &optional delimited start end backward)
(replace-string from-string to-string &optional delimited start end backward)
and many other functions in the same file, so it seems to have been an
oversight in integrating the function. The standard seems to be that the
args are named START and END and really are optional.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
This bug report was last modified 4 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.