From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#44021: delete-non-matching-lines optional arg REND not really optional Date: Fri, 16 Oct 2020 02:42:51 -0400 Message-ID: <20201016064251.i67dn7sjily5jyds@E15-2016.optimum.net> References: <20201015185748.awytl7bzm5x33mam@E15-2016.optimum.net> <87sgaeraud.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11451"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: 44021@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 08:44:54 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTJTy-0002sL-Ea for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 08:44:54 +0200 Original-Received: from localhost ([::1]:45006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTJTx-00026w-Aa for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 02:44:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTJT9-00026n-3s for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 02:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTJT7-0005HE-TI for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 02:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTJT7-0004pS-RW for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 02:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2020 06:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44021 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 44021-submit@debbugs.gnu.org id=B44021.160283058318476 (code B ref 44021); Fri, 16 Oct 2020 06:44:01 +0000 Original-Received: (at 44021) by debbugs.gnu.org; 16 Oct 2020 06:43:03 +0000 Original-Received: from localhost ([127.0.0.1]:57391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTJSA-0004np-LQ for submit@debbugs.gnu.org; Fri, 16 Oct 2020 02:43:02 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:50059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTJS9-0004nM-NM for 44021@debbugs.gnu.org; Fri, 16 Oct 2020 02:43:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602830575; bh=UvhYzv/VmmFLayfIFSYBz+s1Vh5Xi2j2SEtwwGqteo8=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=KonmdxZY6+vOKm7cSI1uBkhUYLfpL2ZOJ79d6F9e7Fev6gtOOGA/bPtoTeNZCVelg Sjqe74TTigTwOmqWodxg1EqFRc5BDoZAOog5Tz9D7ymvBeyNgIBsyZOM9cP+A2Iwvw U6epKYlxsq/SQWnfPEJHBM9LLt3MJHqkBPsc2oAk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M2f9b-1kSVIe0P6t-004Dl5; Fri, 16 Oct 2020 08:42:55 +0200 Content-Disposition: inline In-Reply-To: <87sgaeraud.fsf@gnus.org> X-Provags-ID: V03:K1:PCIYaanuoO2QXEoWlRhxJ8nVGGBGn6m3MRX2ORpPcnwOJLA3RrT WBsZBcJB5ZuWqmRFyF1LRRTg+ORB0+T5KIusFCqTSE4FSV76NxyHo3L68x5lodhgMbp1Aru qe1RltTdM45J2RSZEZnA+284PdJNeRP3SQDQtzGnrDpDS+0+hQTper82/DwKZ7xJTqOK2QR awOK6X2qMOl+GX5dfxqYg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jc0HzHWlVks=:JVuKwLQygqZGJAcYSxouGx 8LN05xU7vdLsBYg0oiHe8prHqEyMlMaH4BOGP3DpUDM2mZKrqRln/EJBv1w6+RzZq1R3b+JgH VcU65VRPcv8anpMigos3LkAY/ryN4MRDj9r6xCahrCQdQdStWvMrx0Uu7auvqKIUZV+rf/zfm F7Rra7IBJCW231HhEjbHyLjTU4Qj0pdvIHLjOnhVbqXLtWGXoEm4FNIXedvh38bf/ULSj/A/E yn8uxvK0mlEdDhMT0TuWQTtyXxsjXJ+WOSPZBMVKDrx9HhpUMPC2k/SREK1IMIwBIdxrvhhrg s4pgbQ1abGMM1ScerDAmrlXu7NVeTcd7vqLTlsIas95tppwmje1aTslTeJ3vRYyZSVMRq6GLD qUP3coyWwLPQKHs/y+asVKb7Nz05py8RLiwodwKWHEAvje7bdJhl7yFxfWjTB4YPmnMGqlY9Q A79F5g/Lqkh94FWEkO5VJngvpb+C/MB/WVhiYSj6WuPSRJeL8CjOlcpdKNj7Tni8LSXhIkrJj MzCFwmGJXVyrsUFnYMm/oO7EVJm1fynwlKDbtjAunh2IRpZ375awosdKBvw5XLiYJM+mVAJ0T W/6Y37cR/kPH9V5K1zqr+M45EKm8aQeV/GK3jKwVKNSfTcHFemhE53Du/7RuazJMUhVpDp5gO uHi1kqi4Jo4iNfHLnWacZ71LAKnLCKXOBJ++n6HGCJBFznNOolWP4TaqT4BmqkWEeA5zS6L3O 6fZNcg/hDUnOGQgVd8dXea3714PhtaFWjHja8CqqWznnsqMT8fYLDrRdo1fu2qfkXkrL5VPJ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190653 Archived-At: 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 back= ward) 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. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0