From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: isearch region or thing at point. Date: Fri, 03 May 2019 17:27:58 +0100 Message-ID: <87o94jbj01.fsf@tcd.ie> References: <20190427001453.isjx247kc3lu5fe4@Ergus> <87a7gcp51i.fsf@tcd.ie> <20190429004135.rn5tp2gnmbjovrxj@Ergus> <87h8agy4yf.fsf@mail.linkov.net> <20190430162501.xmqh5r5h57sjjlq5@Ergus> <87h8af15kg.fsf@tcd.ie> <20190430231614.l423x6eqta5fbhor@Ergus> <874l6f132f.fsf@tcd.ie> <20190501001310.xvneubg4rl7c5dit@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1516"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Juri Linkov , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 03 23:16:24 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMfXU-0017On-9G for ged-emacs-devel@m.gmane.org; Fri, 03 May 2019 23:16:16 +0200 Original-Received: from localhost ([127.0.0.1]:43870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMb9a-0007rG-JQ for ged-emacs-devel@m.gmane.org; Fri, 03 May 2019 12:35:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMb2Z-0000nT-4V for emacs-devel@gnu.org; Fri, 03 May 2019 12:28:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMb2Y-0002qS-5z for emacs-devel@gnu.org; Fri, 03 May 2019 12:28:03 -0400 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMb2X-0002oF-L5 for emacs-devel@gnu.org; Fri, 03 May 2019 12:28:02 -0400 Original-Received: by mail-ed1-x530.google.com with SMTP id g57so6645392edc.12 for ; Fri, 03 May 2019 09:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=I774If1Z9LFkdFmD2ZyWTEVnuyr44Z/XvXhCA37iOyc=; b=poglodz6L6sIahpBR0fBzWjcp5uSI5uP8hNdhOuasVM/OnBVhgPliglfWCAF4RtjiF bMyFW3+vBKEJRBZy5xNhScFP623/NOfxzJ17fheDp5MQp/xSHXLgwzxPvjSEy5idiZ6k tuxgV4nFBO3wkjuaNjPWTTmv6VQaqimvFKnOMPumu01PxiKACj3kSV2fnlJ8F81FYPRc DAVsCpd71FkBvLVtyUNpt0kyi7EvZVD2F0+XdRJppfTEVtr9cAlEgm2PRUA/PHavAaQT hIKS3bX75UxgMC25MhRaP0xTrB193acT5eyUUXNt0oRdnURpCsFBxZRFQcKFNpExGdt7 jrhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=I774If1Z9LFkdFmD2ZyWTEVnuyr44Z/XvXhCA37iOyc=; b=p/uds0V3PkhvvR2quecUGCQgYFMEVzStqRVGnlxO2xKhxjG2G8mRaqhdrMLfc1rUFS o+gb6R9tY9oBMrk9exAnhpCcepiTD8ycL+7tvUnlqxM6Pfj0gpe/gMh4eBJqpMEERfh6 eJKIMzhrC1bL4fasx50EJR5JQ0zCXLV6czh24Sev8J4G0fJzL1HL4x7BLgs8X2MbSHfu qfkKgxhNQdrWjegF3sqRMlnyuDn4v7JI3jhvHHSJP5aTNHGmrRWxDbtzaNEFNHnwhpzD Fn8KG3U03GCpSkQdtHMTwNgxsMGfRbKi2NyIhqgvrDUAxWsP58SEHSa0k3uYuQsdcX79 q+yQ== X-Gm-Message-State: APjAAAVUU6+s2PIqRzP5VL9jnugkykDwxOCCu0ZLuD3zBnfccVmflYxl IsYQZwL/qCLBH6zasGLeTajfxQ== X-Google-Smtp-Source: APXvYqyeMY/v7sZJBUXvCZV8iP64XDDEzBSUlCuziliLFNcRvgEF9YU1ZT6Uf8wmiKlkdZoHc+2Oaw== X-Received: by 2002:a17:906:1903:: with SMTP id a3mr6988193eje.37.1556900880193; Fri, 03 May 2019 09:28:00 -0700 (PDT) Original-Received: from localhost ([89.101.223.218]) by smtp.gmail.com with ESMTPSA id b4sm677399edf.7.2019.05.03.09.27.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 03 May 2019 09:27:59 -0700 (PDT) In-Reply-To: <20190501001310.xvneubg4rl7c5dit@Ergus> (Ergus's message of "Wed, 1 May 2019 02:13:10 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::530 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236117 Archived-At: Ergus writes: > Why the region-extract-function is not a normal function? AIUI, so that it can be set by different modes, etc., similarly to e.g. indent-line-function. > Why {when|if|and|...}-let macros are in such a special file and most of > the code don't use them? What's the problem with them? Apart from some instability in their API across the last couple of Emacs releases, there's no problem with them. They are relatively recent additions to Emacs, and were added to subr-x as "experimental" utilities that needn't be preloaded. Existing code definitely shouldn't be changed purely for the sake of using them (this is a general convention not specific to subr-x), and new code can often be written without them. It's mostly a matter of taste, etc. Note, however, that the usual macro caveats also apply to these utilities, e.g. w.r.t. stale macroexpansions that need recompilation. Thanks, -- Basil