From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#52441: 28.0.50; ffap-file-at-point reports a keyword symbol as the current directory Date: Sun, 12 Dec 2021 06:24:13 +0100 Message-ID: <87r1aiflaa.fsf@gnus.org> References: <87v8zupw3e.fsf@matem.unam.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27723"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52441@debbugs.gnu.org To: Omar =?UTF-8?Q?Antol=C3=ADn?= Camarena Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 12 06:25:30 2021 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 1mwHMY-00070x-3x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 06:25:30 +0100 Original-Received: from localhost ([::1]:42864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwHMW-0001Vl-VP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 00:25:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwHM7-0001N1-LX for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 00:25:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwHM5-0000c5-Sj for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 00:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwHM5-0005RK-MS for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 00:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Dec 2021 05:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52441 X-GNU-PR-Package: emacs Original-Received: via spool by 52441-submit@debbugs.gnu.org id=B52441.163928666620849 (code B ref 52441); Sun, 12 Dec 2021 05:25:01 +0000 Original-Received: (at 52441) by debbugs.gnu.org; 12 Dec 2021 05:24:26 +0000 Original-Received: from localhost ([127.0.0.1]:50456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwHLW-0005QD-00 for submit@debbugs.gnu.org; Sun, 12 Dec 2021 00:24:26 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:44814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwHLU-0005Py-1W for 52441@debbugs.gnu.org; Sun, 12 Dec 2021 00:24:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=d6gIu3gX2aGolnRQZWP6H9hNYd4NLGKIAhkeBgOC8wY=; b=WuEA7aDupWGgOvct+Msq1gFYTF yf7A1UtOdS44Fh3HOgYZ3Ug1V0nDO22LfSIxbwwZsif62sSdInjvsAh5gSmqsk9NzErVL5pQN/ksa aR1GPvwJCdRsMZubutx5PIcEUDCg8byHaefk8usFuqFNN8W5x6uWbetCNU74/8brRN38=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwHLK-0002AM-HB; Sun, 12 Dec 2021 06:24:17 +0100 X-Now-Playing: Snapped Ankles's _Come Play The Trees_: "True Ecology" In-Reply-To: <87v8zupw3e.fsf@matem.unam.mx> ("Omar =?UTF-8?Q?Antol=C3=ADn?= Camarena"'s message of "Sat, 11 Dec 2021 17:20:37 -0600") 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:222168 Archived-At: "Omar Antol=C3=ADn Camarena" writes: > If you place point on the colon of any symbol, such as :foo and evaluate > the expression (ffap-file-at-point) the result is the value of > default-directory. This seems wrong, probably nil would be a better > answer. If you put point on any other character of the symbol, > (ffap-file-at-point) does indeed return nil. It's interpreted as a path. I.e., with /usr/bin:/bin and point over the first bit, it returns "/usr/bin". And empty strings are valid directories in paths, and means "the current directory". So what it's doing is consistent, but perhaps surprising. We could change it to disregard the path interpretation if the string starts with ":", because that will be correct in the vast majority of the cases. It more DWIM, but the ffap functions are already pretty DWIM, so I'm in favour. Anybody else got an opinion? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no