From unknown Sat Jun 21 05:10:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44021 <44021@debbugs.gnu.org> To: bug#44021 <44021@debbugs.gnu.org> Subject: Status: delete-non-matching-lines optional arg REND not really optional Reply-To: bug#44021 <44021@debbugs.gnu.org> Date: Sat, 21 Jun 2025 12:10:45 +0000 retitle 44021 delete-non-matching-lines optional arg REND not really option= al reassign 44021 emacs submitter 44021 Boruch Baum severity 44021 normal tag 44021 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 15 14:58:01 2020 Received: (at submit) by debbugs.gnu.org; 15 Oct 2020 18:58:01 +0000 Received: from localhost ([127.0.0.1]:56568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT8Rt-00069f-0V for submit@debbugs.gnu.org; Thu, 15 Oct 2020 14:58:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:47334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kT8Rr-00069W-6C for submit@debbugs.gnu.org; Thu, 15 Oct 2020 14:57:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT8Rq-000606-TW for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 14:57:58 -0400 Received: from mout.gmx.net ([212.227.17.22]:56189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT8Rl-0000jo-7C for bug-gnu-emacs@gnu.org; Thu, 15 Oct 2020 14:57:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602788271; bh=BlkYaZ+2aT06CmpNocoK1Wv8IdSbhV9n7UPrldzHqw4=; h=X-UI-Sender-Class:Date:From:To:Subject; b=D+a4ZcDcL231EigcZI0RT7Fp6u7McVAG0AK07qz85xncpzol/kxmcFBhVO7I/BQld PPEwMfeDQ2K37wbKCgsD/Qd+CkphWBJ2n9NLLn3Vs4MoheHEZMOGJmF1HrFR/zsoAt 2d/wCeOf2+VmVC61ZrOrRzngzOgWFL4P3dHD/8Qs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MBlxM-1karfX0fQy-00CEDP for ; Thu, 15 Oct 2020 20:57:51 +0200 Date: Thu, 15 Oct 2020 14:57:49 -0400 From: Boruch Baum To: Emacs Bug Reporting Subject: delete-non-matching-lines optional arg REND not really optional Message-ID: <20201015185748.awytl7bzm5x33mam@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:n8+U/Wn7FwhguohOIiD7ieK5Lv0CRai+P2aa3YQZ3aLrwuMIiug MNr+EAcdHhezbtYhd/BB8pW8jI0HHEdzJMQIxL2xWaTTEzUij0nEcBTqQayl32pgWn7M88W cDqZ/CbsWqQTgaXS+C1J2F16tNzH0Byc6q+YutvM9wbdgMWfD6n1SmA0MBMhLcplyID4Lvc uNRIWsZGC/k0wsu552Rvw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rz2HJ3BilNY=:ZSsAS10uroBt6Ik/NWPyc5 wi7rZU2d2Nbd1P7Eb/H2w5eozw3ENLTOPLWD8+/dinZxv7yKeCUaHkXcABsiP/Yg3RkaQ0SJy aA2q0BQBZ33y3iZT9mGQaGyqnD1P5U7j/GFx0Y6JyTrq23DF8Sncefm6qynzCRWGhN5sSg615 /L7ULMu6FY4JVKulRgjyBzMdTghrKD0SY3m5vnUoabU0WaXg1epYqv+W/SMkdiFf70t0RgzOW NPw9dsRMg4RgzL07T9PMMbLP7TQwH29VmoktR6shIdZMWW6bOerbqDasFVvk6F94g1CZDCyGm U3urs2Ynh+q5P1AvlW7YcKC0fz5dVdnn4nRlJxV2gSSDMHtRZFVcOO7Ymu5xOcTmvoIXwMzIx UCrIMm0+3b1uO9eqkxH/W5lSwdYXpdjkooGpEIt2WceQq9zheG2IHtyKYjg5zjMSBCdHNBnhE OZLA2Dlv5BFb0WUC4PMORz1DpZu0bN9jkYhQlTyk5rHKRrkMz8NsZzE25H9NwsFme7Eng8Oin 5Dzh6Ey8eIuPx31bAVAXUgW5F2aZTNeu6bHXAOavpbV7l1XZ47Cg7R3WPjPTiw0kaXy7Um197 Tl4aMO6YS4BstTleiQwjHKZRrMm5oelTTAYC9Fxtj4uGCDgohRBJksIN8UTnVp6oPHa2pht1U FfE9cop4tawSLc+eHQ4rZgOQz0E0OT2kv/L5kOVAoLvwSFZQ3vJFhXDHfrAhX4b0pEWfJliX0 BzpFslww9gAeorycCtPxqE3ZC3cWVw4FmP7A1NfrFzOObSfk4PuvxlKESxIhbOl97mnVf6CbS OG885U9riXjADNLOhn2K4876lGxGqDiRietTL3EhncDuYA6jOZCz92avy46QkVmJQNhgU5dNA QHZyTvWmJsfWqWPRD3qQ== Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.22; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/15 14:57:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Unlike other functions with optional BEG and END args, where END is presumed to be (point-max) if not supplied, function delete-non-matching-lines returns an error when only RBEG is supplied. Error: (wrong-type-argument number-or-marker-p nil) =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 01:36:38 2020 Received: (at 44021) by debbugs.gnu.org; 16 Oct 2020 05:36:38 +0000 Received: from localhost ([127.0.0.1]:57288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTIPu-000102-1B for submit@debbugs.gnu.org; Fri, 16 Oct 2020 01:36:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTIPs-0000zp-NX for 44021@debbugs.gnu.org; Fri, 16 Oct 2020 01:36:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mZrMlsNHBW6OqPZfDegdabKI3zehByheNKqSjY9T0YU=; b=gVTlIc9KGVi7Ntjn2fhwWLeGFu zvIATeB4VCWZxPcyW4BcK7jgKEHvLNYIbGMXbXh5hBxuyhkuUIkv8kt8DKtrEr+cvdVKw78yq3j+6 jaFrokbpp1RnM3SogZd7PtAD8vkLm2e+JgPotpiF6jEWp8ohA6tYN+JcMjcow/pbEKfo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTIPk-0007QC-Ho; Fri, 16 Oct 2020 07:36:31 +0200 From: Lars Ingebrigtsen To: Boruch Baum Subject: Re: bug#44021: delete-non-matching-lines optional arg REND not really optional References: <20201015185748.awytl7bzm5x33mam@E15-2016.optimum.net> X-Now-Playing: Grace Jones's _Muse_: "Sinning" Date: Fri, 16 Oct 2020 07:36:26 +0200 In-Reply-To: <20201015185748.awytl7bzm5x33mam@E15-2016.optimum.net> (Boruch Baum's message of "Thu, 15 Oct 2020 14:57:49 -0400") Message-ID: <87sgaeraud.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Boruch Baum writes: > Unlike other functions with optional BEG and END args, where END is > presumed to be (point-max) if not supplied, function > delete-non-matching-lines returns an error when only RBEG is supplied. > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44021 Cc: 44021@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Boruch Baum writes: > Unlike other functions with optional BEG and END args, where END is > presumed to be (point-max) if not supplied, function > delete-non-matching-lines returns an error when only RBEG is supplied. > > Error: (wrong-type-argument number-or-marker-p nil) I've now mentioned this in the doc string. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 01:36:47 2020 Received: (at control) by debbugs.gnu.org; 16 Oct 2020 05:36:47 +0000 Received: from localhost ([127.0.0.1]:57291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTIQ3-00010P-9A for submit@debbugs.gnu.org; Fri, 16 Oct 2020 01:36:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTIQ1-00010B-I5 for control@debbugs.gnu.org; Fri, 16 Oct 2020 01:36:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5qleWQ2+2eI3GmrI5LtoLn3lIFfJfLrifKHbXgxZ7n0=; b=NjSmzDffJo4qU1FOAq3LHsrszJ lSUCJWeZxXf07TSWIZcckHOLxDAKI96hOm4jFGwkuuVaoqefz+DKwuoxOI+V7hJlKXohk0srktTpU 18T8lT4D1hIW1iQPykovOSJg2PVVNNAVjYaxvIvjU0etu5Pig2KvORTBmCxb5j69qRT4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTIPt-0007QJ-Ox for control@debbugs.gnu.org; Fri, 16 Oct 2020 07:36:40 +0200 Date: Fri, 16 Oct 2020 07:36:36 +0200 Message-Id: <87r1pyrau3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44021 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 44021 fixed close 44021 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 44021 fixed close 44021 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 02:43:02 2020 Received: (at 44021) by debbugs.gnu.org; 16 Oct 2020 06:43:03 +0000 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 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 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 Date: Fri, 16 Oct 2020 02:42:51 -0400 From: Boruch Baum To: Lars Ingebrigtsen Subject: Re: bug#44021: delete-non-matching-lines optional arg REND not really optional 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-Disposition: inline In-Reply-To: <87sgaeraud.fsf@gnus.org> User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:PCIYaanuoO2QXEoWlRhxJ8nVGGBGn6m3MRX2ORpPcnwOJLA3RrT WBsZBcJB5ZuWqmRFyF1LRRTg+ORB0+T5KIusFCqTSE4FSV76NxyHo3L68x5lodhgMbp1Aru qe1RltTdM45J2RSZEZnA+284PdJNeRP3SQDQtzGnrDpDS+0+hQTper82/DwKZ7xJTqOK2QR awOK6X2qMOl+GX5dfxqYg== X-Spam-Flag: NO 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/hDUnOGQgVd8dXea3714PhtaFWjHja8CqqWznnsqMT8fYLDrRdo1fu2qfkXkrL5VPJG w55e8p++0d23+gquJ/oKi8QoXlMLhWOvpPkcLdB5ttkB/q9CCAEITLxKIjmAcbo9O0C99p5ZC C2KkclJ1LxGANfdFpfKw== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44021 Cc: 44021@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From unknown Sat Jun 21 05:10:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Nov 2020 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator