Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 27926) by debbugs.gnu.org; 15 Mar 2025 12:16:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 08:16:18 2025 Received: from localhost ([127.0.0.1]:39560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttQR8-0003JQ-3r for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 08:16:18 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:46530) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1ttQR5-00033l-Ic for 27926 <at> debbugs.gnu.org; Sat, 15 Mar 2025 08:16:16 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5e5b6f3025dso4276005a12.1 for <27926 <at> debbugs.gnu.org>; Sat, 15 Mar 2025 05:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742040969; x=1742645769; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=3/JV5zZVhrrxDwxU1AgVGLkN69xUQSmlAvFYmo2e1Ug=; b=CW63uPY3gSAx5AM+z3IU0s/cN2/moVZDzrw4H5P+htwkuo0/eVKf86A8MPBwBP0z5V USIgchLLKwLTtLpGLHXLJteHyf5e35Cx1fqQn8Ub7PZL36Cgkc3L43o7LpRWP/xUhjZt V5Ch07ZbECKwrsiYdaYe8L6bOizVwPgg+BFKxYwYb2R1/7b+sNkLxLZq4Od0+mJim/iD wZkPPN4XFqGuEfTOjU8FYypL43eyITFatsw6FgXu5McBMWo9L8fVT1yKQUAJJMUb/Udc xak7kV5EhIV5YelAaZHEcc9VW+ghIuu7pUjv/a/d6rP51eXr6/mMs1jv+cXzgC07rYba 0aKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742040969; x=1742645769; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3/JV5zZVhrrxDwxU1AgVGLkN69xUQSmlAvFYmo2e1Ug=; b=QmXc/YdHHh3dAXresyMnBeoATZ2H4snoA9mBkX+QOR6WIL/iAYWyE3ioWONxUfz9wk YiWe5MM7W7X9bf5F0NXgoEZ1BhAc9OqTgsEYN3s1KW4J1PoTEc50KUTToD813KJsyumK ledOSdC4Bckaz7a3DMy7v0LMXXIjndNcE5niv68JGpGuW8mNMy11CT8a34nzSUfnoQW9 S4po7QsyFIrfbc17r5gZeJiK00xramQiWs0PtqiO+zU675+67mtbQGT9tMA21Svowgu/ C+t405JV7AoRfU4EzpysiwnzFF6E01pRFDDNnr5zAHN8sfQSIp2E4QfXZGg0a5LOWluW XDLA== X-Gm-Message-State: AOJu0YyOPRX+mCCFz8IAnTaViVv5r+mOxAUcB8mlZARxTyaDm0tgHmpm DsIL+OQkvhvHDHUtox76Xw3nUWtAgMm30sQo+tgpemhL4ByU1gGbRF5yzZi12ng6B0owqWqnwcH Avz3WplpPam6kLy8tukLMWB4Vxfg= X-Gm-Gg: ASbGnctUowNjTlrK7qu6B2YK0NLDPdB8vjuXQ4ViyEu4LvW36d2pohysCAOT0XYVdCP E71Du68f/In7QnxyjFpQmJ5yirKHCLjN/dvSg5CX575PiYUZ5DuObArUkr5A96Tr2raYbSM5PH5 Od/7sQA18ps8NvjoamV1+316qItyDn X-Google-Smtp-Source: AGHT+IF0FX0a5AuCfLUqeLESl8JH8ELbLtvE9FmFYsQMDOGOTGzd0HWpbTlHEEfWEEFdwDj50J+pNXOZdu0d/wmei94= X-Received: by 2002:a05:6402:268d:b0:5e6:4ee9:f043 with SMTP id 4fb4d7f45d1cf-5e8a09fac6bmr5247468a12.26.1742040968628; Sat, 15 Mar 2025 05:16:08 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 15 Mar 2025 05:16:08 -0700 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <3a47bf01-7fcc-4eff-897f-b3ec66976887@default> References: <3a47bf01-7fcc-4eff-897f-b3ec66976887@default> MIME-Version: 1.0 Date: Sat, 15 Mar 2025 05:16:08 -0700 X-Gm-Features: AQ5f1Jo20Khp1f1gFkLa2Fl2QRLN5h8gr9ZB-W5ESluQC6_FQL01hS6kdYhR9nU Message-ID: <CADwFkm=ZSU9PN-hUPTgtx8K32ve7O1fLWbKik67t1b3gYXqcww@HIDDEN> Subject: Re: bug#27926: 25.2; Let arg REGION-NONCONTIGUOUS-P do more To: Drew Adams <drew.adams@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27926 Cc: 27926 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Drew Adams <drew.adams@HIDDEN> writes: > In `replace.el', some replacment commands now accept optional arg > REGION-NONCONTIGUOUS-P, to allow replacement over the rectangular region > (really, over any list of dotted position pairs (START . END)). > > Currently the arg is just a Boolean. Please consider changing > the behavior of the commands in this way: > > Let non-nil continue to mean the same thing: respect limits such as > those that are returned by the value of `region-extract-function'. > But allow two particular non-nil values to control that behavior in > different ways, instead of requiring that code use > `region-extract-function': > > * A function as arg value would mean use what that function returns > instead of applying the function that is the value of > `region-extract-function' to `bounds' and using what that returns. > This can be handy in some contexts, just as binding > `region-extract-function' can be handy in other contexts. > > * A non-function (i.e., non-lambda) list as arg value would be > expected to have the form of a value that `region-extract-function' > applied to `bounds' returns, and it would be used directly, instead > of invoking `region-extract-function' to get the list of zone limits. > This can be handy in still other contexts, where the limits might > already be available - no need to bind `region-extract-function' to > a function like (lambda (_ignore) THE-KNOWN-LIMITS). What is the use case here? Please show some example code before and after making this change, and explain (as briefly as humanly possibly) what are the benefits of making the above change. It is hard to consider this in its current form. Thanks.
bug-gnu-emacs@HIDDEN
:bug#27926
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 2 Aug 2017 22:41:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 02 18:41:21 2017 Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1dd2KO-0007If-TH for submit <at> debbugs.gnu.org; Wed, 02 Aug 2017 18:41:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1dd2KM-0007IS-Lt for submit <at> debbugs.gnu.org; Wed, 02 Aug 2017 18:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <drew.adams@HIDDEN>) id 1dd2KG-00056o-KS for submit <at> debbugs.gnu.org; Wed, 02 Aug 2017 18:41:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <drew.adams@HIDDEN>) id 1dd2KG-00056e-Hl for submit <at> debbugs.gnu.org; Wed, 02 Aug 2017 18:41:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <drew.adams@HIDDEN>) id 1dd2KF-0000WU-5q for bug-gnu-emacs@HIDDEN; Wed, 02 Aug 2017 18:41:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <drew.adams@HIDDEN>) id 1dd2KB-00053K-Ul for bug-gnu-emacs@HIDDEN; Wed, 02 Aug 2017 18:41:11 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:18715) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <drew.adams@HIDDEN>) id 1dd2KB-00051U-Kp for bug-gnu-emacs@HIDDEN; Wed, 02 Aug 2017 18:41:07 -0400 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v72Mf3eM022262 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <bug-gnu-emacs@HIDDEN>; Wed, 2 Aug 2017 22:41:04 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v72Mf2Jr021176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <bug-gnu-emacs@HIDDEN>; Wed, 2 Aug 2017 22:41:03 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v72Mf2Hr031164 for <bug-gnu-emacs@HIDDEN>; Wed, 2 Aug 2017 22:41:02 GMT MIME-Version: 1.0 Message-ID: <3a47bf01-7fcc-4eff-897f-b3ec66976887@default> Date: Wed, 2 Aug 2017 15:41:01 -0700 (PDT) From: Drew Adams <drew.adams@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 25.2; Let arg REGION-NONCONTIGUOUS-P do more X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6770.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.5 (----) In `replace.el', some replacment commands now accept optional arg REGION-NONCONTIGUOUS-P, to allow replacement over the rectangular region (really, over any list of dotted position pairs (START . END)). Currently the arg is just a Boolean. Please consider changing the behavior of the commands in this way: Let non-nil continue to mean the same thing: respect limits such as those that are returned by the value of `region-extract-function'. But allow two particular non-nil values to control that behavior in different ways, instead of requiring that code use `region-extract-function': * A function as arg value would mean use what that function returns instead of applying the function that is the value of `region-extract-function' to `bounds' and using what that returns. This can be handy in some contexts, just as binding `region-extract-function' can be handy in other contexts. * A non-function (i.e., non-lambda) list as arg value would be expected to have the form of a value that `region-extract-function' applied to `bounds' returns, and it would be used directly, instead of invoking `region-extract-function' to get the list of zone limits. This can be handy in still other contexts, where the limits might already be available - no need to bind `region-extract-function' to a function like (lambda (_ignore) THE-KNOWN-LIMITS). In GNU Emacs 25.2.1 (x86_64-w64-mingw32) of 2017-04-24 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=3D-O2 -static -g3''
Drew Adams <drew.adams@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#27926
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.