From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#43961: read carefully: dired-file-name-at-point vs dired-filename-at-point Date: Tue, 13 Oct 2020 07:27:46 -0400 Message-ID: <20201013112746.o5rc3rloylt33tbe@E15-2016.optimum.net> References: <20201012142522.m24zmrzzuiiao4ck@E15-2016.optimum.net> <20201013040807.xk2q54jnquthda7y@E15-2016.optimum.net> <87blh667zs.fsf@gnus.org> <20201013102511.5nuu3p3dcyr6poft@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23579"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: 43961@debbugs.gnu.org, Lars Ingebrigtsen , Richard Stallman To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 13 13:28:33 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kSITo-0005yT-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 13:28:32 +0200 Original-Received: from localhost ([::1]:49932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSITn-00015r-3z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Oct 2020 07:28:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSITL-00015S-8j for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 07:28:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSITK-0001xh-Np for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 07:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSITK-0006yV-Jx for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2020 07:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2020 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43961-submit@debbugs.gnu.org id=B43961.160258848126797 (code B ref 43961); Tue, 13 Oct 2020 11:28:02 +0000 Original-Received: (at 43961) by debbugs.gnu.org; 13 Oct 2020 11:28:01 +0000 Original-Received: from localhost ([127.0.0.1]:45391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSITJ-0006y3-3M for submit@debbugs.gnu.org; Tue, 13 Oct 2020 07:28:01 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:55239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSITH-0006xi-Bp for 43961@debbugs.gnu.org; Tue, 13 Oct 2020 07:28:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602588472; bh=n7RObjC6QejjmSF3zNg/ToSo3RBWLE1Spur2GGk0kh4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=X31QOxblK3KmyqygTc5TduVedFBojtdTQ0WhetDHGi4Cs98VpW3PCl/K6V95ckSj5 mJfqncT/20Mquyz0dLnZt0/0Weg3Oh7s+uaN8jke0FdZWWXr5vSSLbj5d3W7Yr/ZRH o6xFU1Wtlz3Bvjg/27BIdMbnKRnoldzsdPw6EAOI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Ma20q-1kw6wl35Uq-00Vxe2; Tue, 13 Oct 2020 13:27:52 +0200 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:gVH6CRKQhOV/VNpijb3uij2PqAGy3cehKfpa2jRH3uOm58aKuE9 Y+N1Gh6QNDNXMh1mXhSEQ/ixmmhflcQr8xYR1W3QtfN1LkPJ60TntkyGrJb4+xlEgRTyQQ8 Z08pBorZAy+jD8LaiXK5nI4N+avUl2x+qPlNVU04RagYxPhuB2npBovKfeveF48I6E4Zn8k fsL0+TLudrYqOG+2c5ywg== X-UI-Out-Filterresults: notjunk:1;V03:K0:/z8WT4lfaR8=:icb2jXrZgVT32XeDKB1/tn XHdAaDzRnQ4BL7HfGzeRZG+02SuT0xXmMGeN+lTSsMsebHzwDQH9nCPl/0OkxEOjWgEIBh3Pv 6An43+0JLnCQe36W6lczd+Sk1Sxb4zqRT8GxfKR8ld052Wu+I1lURjvk0aHvtuJOGUQqQBJGL L99wxr6LW4IuPzVMBxLO2t3xUkayBlqq9ADhEEuOGCu1CdaxmuW3W2d994ZSd5061hTPKN+im mK9eMmYxZgnR7+SFa9wqpKDYsw5IxqPL5uJXoQUOIDfqHu3pubOZT21OfE6zZlMKfbPTlW+mn cqPRlHw1gh388KKMKWd+lJSAll0AUKZjSa0VtZ4+SjQTTwDEgwlvwo7tfSRTfmo1PMrxnTbcA hAIbP2FwZvhzowB8/4aczNdf6pED2tFJq9ncMFhTUJtFNaPLEW8wQWjtFkdteHs12HIn5NmQI /dtVCZVD+pYAWHHYnOv3Ido0fYAQEcYfICLaP2t1xj4OzjKABDQty3sS7hnk5TID9o/w5v2O8 znP6b+TPNgTVlE2jTiETvgaPfr9nz9UnCH19g/kqCyXt/hFGWaS46toVhvUe68PfgN84s5Tmi +mEw8ZUTC/R8mSIdM0BNqubxTL708/fA91fZK38LRN2tNSr2SRi9cHdw8Rp74BAEo/sxzT7lu +xq8C7JRH1+Rxv90Jqw4Bg2MxdqO1WBod/n0ixiqA913feaHh5aiAZOPskJD3FL5oIuc9Lb3E WYVvYUCLa1E2+35ycnjhbP+NzIXgwSDKfnAh6iaH1vqCITXIKoK1lN1nVvdXTYz53s3fKQ4Y X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190414 Archived-At: On 2020-10-13 12:58, Arthur Miller wrote: > ... > + file-name-directory and directory-file-name, Another excellent example that I always find confusing, even after much dired programming. > dired-filename-at-point is supposed to return a filename closest to the > point, according to docs. For me it didn't work at all. I seems to not have been as well-maintained as its sister function, possibly because they've been in separate files and the maintainer forgot about one. One of its bugs is that it truncates file names at the first embedded space. > But I mostly disliked the name. Why are there two almost identical name > for different functionality? So annoying, and not limited to dired. I recently posted another in bug report 43294 [1]. It's been languishing for ~6 weeks without a decision for action, so your vote might be helpful there. > I have seen also discussion about string-replace and replace-string, can > we plase not? For the reason above. And for the new APIs added, please > don't use naming patterns like word1-word2 and word2-word1 or similar > where same words are used just with some slight variation. +1 Also, match-string and string-match. IMO, match-string should be aliased and to something like 'match-result' and deprecate the original name with a long-horizon EOL to account for its ubiquity. @Lars: Should I open a bug report separately for this? [1] https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-09/msg00872.html =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0