From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: isearch region or thing at point. Date: Tue, 30 Apr 2019 16:38:14 -0400 Message-ID: References: <20190427001453.isjx247kc3lu5fe4@Ergus> <87a7gcp51i.fsf@tcd.ie> <20190429004135.rn5tp2gnmbjovrxj@Ergus> <87h8agy4yf.fsf@mail.linkov.net> <20190430162501.xmqh5r5h57sjjlq5@Ergus> <20190430190339.yy6ddr5k37lr722c@Ergus> <20190430200536.vjs3nfi7hmzb457x@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80103"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "Basil L. Contovounesios" , Juri Linkov , Emacs developers To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 30 22:52:53 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 1hLZkB-000KfE-9M for ged-emacs-devel@m.gmane.org; Tue, 30 Apr 2019 22:52:51 +0200 Original-Received: from localhost ([127.0.0.1]:53234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLZkA-0005hp-76 for ged-emacs-devel@m.gmane.org; Tue, 30 Apr 2019 16:52:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLZWH-0003Gw-9Q for emacs-devel@gnu.org; Tue, 30 Apr 2019 16:38:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLZWF-0004UY-DJ for emacs-devel@gnu.org; Tue, 30 Apr 2019 16:38:29 -0400 Original-Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]:45219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLZWE-0004Tn-Fu for emacs-devel@gnu.org; Tue, 30 Apr 2019 16:38:27 -0400 Original-Received: by mail-ot1-x32e.google.com with SMTP id a10so4381003otl.12 for ; Tue, 30 Apr 2019 13:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zJUeVMLL13b5jKq0B72RvYtLsjfhmspgi7hBzrZ2y3g=; b=n1d+gjpsQmtXZOgrTkm3ofY7jOtMdS+athHo0irW2+s15olR7V7PV08BGYNZE5RWYA yYJXBd45O9J9IDAdMVCkViGq0F0E/ytA/Pq/dFj15dChyFFNdR+/sPOeiklvIBmd5Ln5 Z8sV4dD4Skur1vDGjSIT4vAc9xiuMyhYFOLdJavri47rMorg+/0tfRkK6diyzbJEkvfV MXgGiErfFIIe1Nr/U/DYLnLEmGcxJ4zBc1spoeSa0iu4jeNGeOrfpZOvWg0FvCuXTZMP rd2hUvGqI9MZbP7KdoqbFUD05t3ddv0VaHXAYNe7dlzpO7UU2iLT0H4lmbYubQjJgRSO rq3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zJUeVMLL13b5jKq0B72RvYtLsjfhmspgi7hBzrZ2y3g=; b=RJ7H12RuXeVMbwwDu/YKlGk6BxVbil9OIOJqhRw5CpW5oPz171T1n7z5Fxbg+HfBEl hB3iqM9RdDIAvnTOYpz5BklhSXSPeXzqnjDO6XWVcaBVtyrvRghgAPLBjiPWQu0kra0s wrHomwrA4y1SlVU75EKTcfzHziuIJ/HCEwI5/4ucCPwwDF/0219BsmELZBvtDtgPlCue tVu+OXau40Ik1D5DW+MO6STzFVLXCU634jIy/FTx6hH77auMISwvptExdLYfojZpBM5q 3C3Qu94OINyyZ1ehnU4zRVnBeDi/nK9YWF3MgC3Esn0o4PUgT6PLX2trjHoQe3z8U2Td lqlQ== X-Gm-Message-State: APjAAAWbV16LaCnpcgo6T0k8PQmIePIbs+E1Qiax8+z9wlydUf79Yz/R mT7RcAZu7DT67+zDhYqGHtDYse33qKmpFL6MDNg= X-Google-Smtp-Source: APXvYqz+xRmVedpBT5rEa2npZWP+liXhA+83TY+fSZ1wBOix+QVQEDLfUl0POSOqwGvLR/Eag8HX/MLXnvDkj2vMKsE= X-Received: by 2002:a9d:4e97:: with SMTP id v23mr8599559otk.148.1556656705116; Tue, 30 Apr 2019 13:38:25 -0700 (PDT) In-Reply-To: <20190430200536.vjs3nfi7hmzb457x@Ergus> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32e 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:236074 Archived-At: On Tue, 30 Apr 2019 at 16:05, Ergus wrote: > >If you meant the elisp manual, I seem to remember there was a decision > >to leave subr-x functions out of the manual (can't find the message in > >the archives right now though). > > > Ohh sorry. I didn't know that. I haven't read the header of the subr-x.el > file. (there is also the eval-when-compile indication) Sorry again. Oh, I didn't read it either: there is the link to the message I was looking for. > So I may ask then if it is fine to use these if-let in a function I want > to add to isearch.el or if these functions are expected to become > obsolete or are problematic in any sense; so I must use alternative > implementations?? I can't tell the future, but there's no reason to avoid them at the moment. Perhaps you are over-using them a bit though. For example, (when-let (count (and arg (prefix-numeric-value arg))) (isearch-repeat-forward count)) can be simply (when arg (isearch-repeat-forward (prefix-numeric-value arg)))