From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: transient Date: Sat, 2 May 2020 18:42:13 +0200 Message-ID: References: <87368npxw4.fsf@bernoul.li> <87v9ljo5d0.fsf@bernoul.li> <87ftcnxu5m.fsf@bernoul.li> <83y2qezlpd.fsf@gnu.org> <83tv12zjx1.fsf@gnu.org> <20200429101755.GF24737@tuxteam.de> <838sicw4do.fsf@gnu.org> <83zhaqu89z.fsf@gnu.org> <83sggiu2p9.fsf@gnu.org> <83r1w2s9wi.fsf@gnu.org> <83lfmas6cu.fsf@gnu.org> <837dxus4ot.fsf@gnu.org> <83zhaqqp5n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006ef91b05a4acfc23" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="65590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomas@tuxteam.de, Emacs developers , Stefan Monnier , Richard Stallman To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 18:43:18 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jUvET-000GxT-CH for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 18:43:17 +0200 Original-Received: from localhost ([::1]:44400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUvES-0005WI-F6 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 12:43:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUvDy-000520-K4 for emacs-devel@gnu.org; Sat, 02 May 2020 12:42:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUvDx-0005SW-ST for emacs-devel@gnu.org; Sat, 02 May 2020 12:42:46 -0400 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:43316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUvDu-0004bU-IO; Sat, 02 May 2020 12:42:42 -0400 Original-Received: by mail-lf1-x12a.google.com with SMTP id 188so6171182lfa.10; Sat, 02 May 2020 09:42:41 -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=qRlcNn+q3xL5GtW5M+pcfMqLo5mNzfYJOJ3Yxf5tFgc=; b=vOoEy395s3EKYv/F0lMo7e8ZJ+pQPtOCnpsWtVxo4qTYHDY+eBQWCH5cF4sCXkltpx aCMQxKzztp/ZoXAfNs2xXAHRmmgHgwJk49Vg7lVOJCEFJ9w20tw1Qpq0HVJBR7vvYrDw c4bUvtOpdEYJrIRhj9S/0ZL+xuWv2MLR1op9g8BVAKpUTBvzbNN2gGIYN0PK0IAl8IO2 31eUEDhnoQslb1v298dp3pBP5WOYK3V1FQEFe72nDUk7DSEpLr024da+inGtcFrZS88Y pCpkgJKSrLm3v9YMma+btfTMN25aR6zVBmFqX952IGlia/gLFPbD6VAE76lJyc+Zqoo+ cIvQ== 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=qRlcNn+q3xL5GtW5M+pcfMqLo5mNzfYJOJ3Yxf5tFgc=; b=iqdfoEK9C/zC/By6i3/bnI4zcfMv8Asf2PB7SBPNURV3HTeVDvv1GP3eEn+PY43L6q sBz0fZmcJnFLzxbrt7zwGfBCoj+LwNgpB3QDi3Vy+M0S8M6gMgKeG1IVgGPKpf6BTGW5 GDUJgJqbyWPqIS9xtdJEZsOEZnu6TiE/g3ihVjmr9RtCMg2eGInl11KBWALa6voqtsjx WXWy109dAnhEUNQytEjIRysSAzPSVV6/q9NWCBF7ubg7PZj9hSvB0ustzlyXZI5GgqPo ttH0/21L6xhYwIdOmaAkW9vAvtMO/7ch1O2eYBZgxXC8ByBEI4Fh8F7H53suG4+LMpeX ZgpQ== X-Gm-Message-State: AGi0PuYSObxyctTrW50erxHyl7zYRcX1dG38l/braKfE4uk6AA2dX2W2 OByNC9xAq0J7SnNrU1Gt0XC6p9X4g4VyN2Irr79S9a5A4jC/Jg== X-Google-Smtp-Source: APiQypIhL3X4XZIMR8hKnWTgFeWtv19sGu988N/8CX4vcCQfvIWW/CpC1l9d2V4V7vwhyOy60QiV4jcz8h05VFI1faw= X-Received: by 2002:a05:6512:53a:: with SMTP id o26mr6046250lfc.111.1588437760012; Sat, 02 May 2020 09:42:40 -0700 (PDT) In-Reply-To: <83zhaqqp5n.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=philippe.vaucher@gmail.com; helo=mail-lf1-x12a.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::12a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248493 Archived-At: --0000000000006ef91b05a4acfc23 Content-Type: text/plain; charset="UTF-8" > You are missing the fact that it's impossible to make all functions > > related to regexps begin with "regexp-", because some of them are also > > related to lists or strings or buffers or email or projects. Or are > > you suggesting to have dozens of different aliases for each function, > > one each for every class to which it could possibly belong? > > > > How big is this "some of them" you are talking about? Are they really > about regexp, or another topic? > > "C-u C-h a regexp RET" and see for yourself. > I see very few candidates where it's unclear... and almost all the results is already properly namespaced (under dired when it concern dired, etc). Remember the proposal is to unify what is the building blocks of regexps under the regexp- namespace. NOT to put everything that contains "regexp" under that namespace. That means how to create regexps, how to apply them to strings, how to get the match results. There might be things where it's hard to decide which is the main topic but that is more related to generic functions, which can remain generic for now until we figure it out. The proposal is to start where it's obvious, not to sort it all out for all cases. > > The above are _commands_ not functions. The equivalent would be > > > "C-h a regexp search RET", which does do what you want, I think. > > > > > > This again gives me a giant list where a majority of what is listed > is not what I'd like. > > > > "Giant"? I see 11 hits (in "emacs -Q"). > > > > In "Emacs -Q" you are correct. Without "-Q" the list is here > https://www.ideone.com/35kbNi. On that list only > > line 116-127 are relevant to what I search. > > You didn't type "C-h a", because that only shows commands. > Okay my bad, on my setup that binding runs `counsel-apropos` and not `apropos-command`. This is why you thought the list was reasonable and I thought it wasn't. Sorry. Philippe --0000000000006ef91b05a4acfc23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
>=C2=A0 You are missin= g the fact that it's impossible to make all functions
>=C2=A0 related to regexps begin with "regexp-", because some = of them are also
>=C2=A0 related to lists or strings or buffers or email or projects.=C2= =A0 Or are
>=C2=A0 you suggesting to have dozens of different aliases for each func= tion,
>=C2=A0 one each for every class to which it could possibly belong?
>
> How big is this "some of them" you are talking about? Are th= ey really about regexp, or another topic?

"C-u C-h a regexp RET" and see for yourself.

I see very few candidates where it's unclear... and alm= ost all the results is already properly namespaced (under dired when it con= cern dired, etc).

Remember the proposal is to unify what is t= he building blocks of regexps under the regexp- namespace. NOT to put every= thing that contains "regexp" under that namespace. That means how= to create regexps, how to apply them to strings, how to get the match resu= lts. There might be things where it's hard to decide which is the main = topic but that is more related to generic functions, which can remain gener= ic for now until we figure it out.

The proposal is to sta= rt where it's obvious, not to sort it all out for all cases.
=
>=C2=A0 >= =C2=A0 The above are _commands_ not functions.=C2=A0 The equivalent would b= e
>=C2=A0 >=C2=A0 "C-h a regexp search RET", which does do wh= at you want, I think.
>=C2=A0 >
>=C2=A0 > This again gives me a giant list where a majority of what i= s listed is not what I'd like.
>
>=C2=A0 "Giant"?=C2=A0 I see 11 hits (in "emacs -Q")= .
>
> In "Emacs -Q" you are correct. Without "-Q" the li= st is here https://www.ideone.com/35kbNi. On that list only
> line 116-127 are relevant to what I search.

You didn't type "C-h a", because that only shows commands.

Okay my bad, on my setup that binding run= s `counsel-apropos` and not `apropos-command`. This is why you thought the = list was reasonable and I thought it wasn't. Sorry.

Philippe
--0000000000006ef91b05a4acfc23--