From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add some aliases for re-related functions Date: Sun, 03 May 2020 17:16:06 +0300 Message-ID: <837dxtqf2x.fsf@gnu.org> References: <7976B8C1-AFC7-4662-B750-6492EB70C0D5@gmail.com> <20200502192908.GD6832@ACM> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="62897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, casouri@gmail.com, emacs-devel@gnu.org To: Philippe Vaucher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 16:16:57 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 1jVFQL-000GC9-TM for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 16:16:53 +0200 Original-Received: from localhost ([::1]:52222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVFQL-00064H-0G for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 10:16:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVFPi-0005dl-9j for emacs-devel@gnu.org; Sun, 03 May 2020 10:16:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53343) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVFPh-0000RP-MC; Sun, 03 May 2020 10:16:13 -0400 Original-Received: from [176.228.60.248] (port=4056 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jVFPh-00087a-0g; Sun, 03 May 2020 10:16:13 -0400 In-Reply-To: (message from Philippe Vaucher on Sat, 2 May 2020 22:10:29 +0200) 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:248686 Archived-At: > From: Philippe Vaucher > Date: Sat, 2 May 2020 22:10:29 +0200 > Cc: Yuan Fu , Emacs developers > > Just wanted to explicit that this assume we know both function already. If I don't know `posix-search-forward > ` but know one exists, but cannot remember if it's regexp-search-posix-forward or posix-regexp-forward or > forward-search-posix, in Yuan's proposal I could "C-h f re- TAB posix TAB and select > "re-posix-search-forward" quickly. > > Without that I have to C-h d "regexp posix" and curse because it returns no result (Eli <--- please fix this), > then search for C-h d posix and only then find it. I did fix this, but please note that you are using the wrong tool for the job. If you expect the _name_ of the function to include "posix", then the right tool is "C-u C-h a posix RET", which gives you exactly what you want. "C-h d" is for when you are NOT sure the keyword will appear in the name, and therefore widen your search to the doc string and the list of the arguments.