From unknown Sat Jun 21 05:17:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35693: The prompt for find-file becomes a ~ instead of ~/ Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 12 May 2019 02:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35693 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: 35693@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Received: via spool by submit@debbugs.gnu.org id=B.155762803127491 (code B ref -1); Sun, 12 May 2019 02:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 May 2019 02:27:11 +0000 Received: from localhost ([127.0.0.1]:41518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPeCl-00079L-9P for submit@debbugs.gnu.org; Sat, 11 May 2019 22:27:11 -0400 Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]:5657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPeCi-00079B-Dy for submit@debbugs.gnu.org; Sat, 11 May 2019 22:27:09 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 11EBF125BC5 for ; Sun, 12 May 2019 02:27:07 +0000 (UTC) Received: from pdx1-sub0-mail-a72.g.dreamhost.com (unknown [100.96.28.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CD86D125BDB for ; Sun, 12 May 2019 02:27:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a72.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 12 May 2019 02:27:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Robust-Chemical: 0e90464177fe0dab_1557628026901_401483417 X-MC-Loop-Signature: 1557628026901:871800883 X-MC-Ingress-Time: 1557628026900 Received: from pdx1-sub0-mail-a72.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTP id 96E5182F80 for ; Sat, 11 May 2019 19:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=x/XeuNkI2pHeB4Azxc52YT6HUio=; b=ks5l3ZWHyH45KKlI vFhfMKyUSFZ505ARrpIXwHbVrs+wVOPoyexcFM4PNpER0DbexywaclhbXKsdLQqw wCKu68CiJOcSrLkRCKBiSzTrZcCtYD6pu1D7HyeI1oDc04Pf/nDAqWRd2pxdLmrp P3BeNSKDCXhtDuzF9IY/SYDnSEU= Received: from jidanni.org (36-234-69-231.dynamic-ip.hinet.net [36.234.69.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTPSA id 0F5C882F7D for ; Sat, 11 May 2019 19:27:05 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a72 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Sun, 12 May 2019 10:27:01 +0800 Message-ID: <87pnoo8l1m.2.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrledugdehlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecuffhomhgrihhnpehjihgurghnnhhirdhorhhgnecukfhppeefiedrvdefgedrieelrddvfedunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdeiledrvdefuddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopehsuhgsmhhithesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: M-x gnus C-x C-f The prompt for find-file becomes a ~ instead of ~/ It turns out because since one uses ffap-bindings and the cursor is now resting after a ":", the find-file prompt is affected. OK it [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: jidanni.org] 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [36.234.69.231 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.214.18 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.6 (/) M-x gnus C-x C-f The prompt for find-file becomes a ~ instead of ~/ It turns out because since one uses ffap-bindings and the cursor is now resting after a ":", the find-file prompt is affected. OK it is not a gnus bug, but most commonly seen when using gnus... My conf files are in jidanni.org/comp/configuration/ Gnus v5.13 GNU Emacs 26.1 (build 2, i686-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-04, modified by Debian From unknown Sat Jun 21 05:17:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35693: The prompt for find-file becomes a ~ instead of ~/ In-Reply-To: <87pnoo8l1m.2.fsf@jidanni.org> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 14 May 2019 05:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35693 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 35693@debbugs.gnu.org Received: via spool by 35693-submit@debbugs.gnu.org id=B35693.155781340020461 (code B ref 35693); Tue, 14 May 2019 05:57:01 +0000 Received: (at 35693) by debbugs.gnu.org; 14 May 2019 05:56:40 +0000 Received: from localhost ([127.0.0.1]:46928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQQQX-0005Jv-P5 for submit@debbugs.gnu.org; Tue, 14 May 2019 01:56:39 -0400 Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]:49156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQQQV-0005Jk-BU for 35693@debbugs.gnu.org; Tue, 14 May 2019 01:56:36 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CD56221C80; Tue, 14 May 2019 05:56:33 +0000 (UTC) Received: from hampton.hostforweb.net (100-96-14-60.trex.outbound.svc.cluster.local [100.96.14.60]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 2ABC021D70; Tue, 14 May 2019 05:56:25 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 14 May 2019 05:56:33 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Bitter-Cure: 4dd8257c3bc143c8_1557813393624_245857237 X-MC-Loop-Signature: 1557813393624:2483940292 X-MC-Ingress-Time: 1557813393624 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hQQQB-006zMf-Mp; Tue, 14 May 2019 00:56:17 -0500 Date: Tue, 14 May 2019 14:56:12 +0900 Message-ID: From: Katsumi Yamaoka References: <87pnoo8l1m.2.fsf@jidanni.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:vKWtJcunkTbzV4+oYROQLuXlYKk= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, 12 May 2019 10:27:01 +0800, =E7=A9=8D=E4=B8=B9=E5=B0=BC wrote: > M-x gnus > C-x C-f > The prompt for find-file becomes a ~ instead of ~/ `C-x C-f' invokes `find-file-at-point' because of `ffap-bindings'. > It turns out because since one uses ffap-bindings > and the cursor is now resting after a ":", the find-file prompt is > affected. > OK it is not a gnus bug, but most commonly seen when using gnus... Yes, it's not a Gnus bug. That happens when performing `C-x C-f' just after the colon in the group line like this: 123: nnfoo:bar There ffap grabs a string "123:", recognizes it as a colon separated paths list, and extracts a path where the cursor is, that is "". That *path* string is used to create a prompt string by way of: (abbreviate-file-name (expand-file-name "")) It returns "~" because you are in the home directory. That is why you are prompted with "~" instead of "~/". There would be many ways to solve it, though I'm not sure what is the best. Here are two of them (based on ffap.el in the trunk): 1. (ffap-file-at-point): Don't recognize "" as a path name. --- ffap.el~ 2019-05-12 21:20:25.967974700 +0000 +++ ffap.el 2019-05-14 05:51:47.038159300 +0000 @@ -1326,6 +1326,7 @@ ;; If it contains a colon, get rid of it (and return if exists) ((and (string-match path-separator name) (setq name (ffap-string-at-point 'nocolon)) + (> (length name) 0) (ffap-file-exists-string name))) ;; File does not exist, try the alist: ((let ((alist ffap-alist) tem try case-fold-search) 2. (ffap-file-exists-string): Don't recognize "" as a file name. --- ffap.el~ 2019-05-12 21:20:25.967974700 +0000 +++ ffap.el 2019-05-14 05:51:47.038159300 +0000 @@ -513,7 +513,7 @@ name may have a suffix added from `ffap-compression-suffixes'. The optional NOMODIFY argument suppresses the extra search." (cond - ((not file) nil) ; quietly reject nil + ((zerop (length file)) nil) ; quietly reject nil and "" ((file-exists-p file) file) ; try unmodified first ;; three reasons to suppress search: (nomodify nil) Regards, From unknown Sat Jun 21 05:17:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35693: The prompt for find-file becomes a ~ instead of ~/ In-Reply-To: <87pnoo8l1m.2.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 14 May 2019 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35693 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: To: Katsumi Yamaoka Cc: 35693@debbugs.gnu.org Received: via spool by 35693-submit@debbugs.gnu.org id=B35693.155782694918676 (code B ref 35693); Tue, 14 May 2019 09:43:01 +0000 Received: (at 35693) by debbugs.gnu.org; 14 May 2019 09:42:29 +0000 Received: from localhost ([127.0.0.1]:47355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQTx7-0004rA-7l for submit@debbugs.gnu.org; Tue, 14 May 2019 05:42:29 -0400 Received: from bonobo.maple.relay.mailchannels.net ([23.83.214.22]:36806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQTx4-0004qx-Fh for 35693@debbugs.gnu.org; Tue, 14 May 2019 05:42:27 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1591550106F; Tue, 14 May 2019 09:42:25 +0000 (UTC) Received: from pdx1-sub0-mail-a22.g.dreamhost.com (100-96-30-28.trex.outbound.svc.cluster.local [100.96.30.28]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 76206501716; Tue, 14 May 2019 09:42:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a22.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Tue, 14 May 2019 09:42:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Cold-Ruddy: 15f452c45d396a93_1557826944904_2884125120 X-MC-Loop-Signature: 1557826944904:1285713971 X-MC-Ingress-Time: 1557826944904 Received: from pdx1-sub0-mail-a22.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a22.g.dreamhost.com (Postfix) with ESMTP id 3D5AA7FDFB; Tue, 14 May 2019 02:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=/+8le4hhIoNQsVqxBxv0ne6+CQ4=; b=TKCHioJCW1bDm dkj8+UqIj+rWQGCJGCvpKgXr/yknZ4AaQRfnb2tSqXLMWUMSRQasF8lDa1xCJ88p PPVETSAotC0cVyVOsN5KZaL2LRScS6eIU0wwc3XjKe6z6uqEMSJYTZxn6RQHVPio 19ZRCYkMoXInZCb5DPJ1ubBShIjn7U= Received: from jidanni.org (36-234-98-107.dynamic-ip.hinet.net [36.234.98.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a22.g.dreamhost.com (Postfix) with ESMTPSA id 9F20F7FDFD; Tue, 14 May 2019 02:42:18 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a22 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87pnoo8l1m.2.fsf@jidanni.org> Date: Tue, 14 May 2019 17:42:15 +0800 Message-ID: <87mujp8j9k.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrleeigddukecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeefiedrvdefgedrleekrddutdejnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdelkedruddtjedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefheeileefseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) >>>>> "KY" == Katsumi Yamaoka writes: KY> It returns "~" because you are in the home directory. That is why KY> you are prompted with "~" instead of "~/". How terrible. Glad you found the cause. Hope it will get fixed soon. From unknown Sat Jun 21 05:17:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Subject: bug#35693: closed (Re: bug#35693: The prompt for find-file becomes a ~ instead of ~/) Message-ID: References: <87pnoo8l1m.2.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 35693 X-Gnu-PR-Package: emacs,gnus Reply-To: 35693@debbugs.gnu.org Date: Fri, 17 May 2019 01:36:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1558056962-30346-1" This is a multi-part message in MIME format... ------------=_1558056962-30346-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #35693: The prompt for find-file becomes a ~ instead of ~/ which was filed against the emacs,gnus package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 35693@debbugs.gnu.org. --=20 35693: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35693 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1558056962-30346-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 35693-done) by debbugs.gnu.org; 17 May 2019 01:35:33 +0000 Received: from localhost ([127.0.0.1]:56898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRRmX-0007sh-1u for submit@debbugs.gnu.org; Thu, 16 May 2019 21:35:33 -0400 Received: from purple.birch.relay.mailchannels.net ([23.83.209.150]:14542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRRmU-0007sP-9D for 35693-done@debbugs.gnu.org; Thu, 16 May 2019 21:35:31 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0CE4D5C457D; Fri, 17 May 2019 01:35:29 +0000 (UTC) Received: from hampton.hostforweb.net (unknown [100.96.11.48]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 51FD55C2A53; Fri, 17 May 2019 01:35:28 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Received: from hampton.hostforweb.net (hampton.hostforweb.net [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Fri, 17 May 2019 01:35:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Fearful-Trouble: 395d0f94363d539d_1558056928620_1561988745 X-MC-Loop-Signature: 1558056928620:1738359074 X-MC-Ingress-Time: 1558056928619 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hRRmO-006sdp-P7; Thu, 16 May 2019 20:35:25 -0500 Date: Fri, 17 May 2019 10:35:22 +0900 Message-ID: From: Katsumi Yamaoka To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#35693: The prompt for find-file becomes a ~ instead of ~/ References: <87pnoo8l1m.2.fsf@jidanni.org> <87mujp8j9k.8.fsf@jidanni.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cancel-Lock: sha1:9we4ErEoj+J5jTBxXJ0XjT7YOIc= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35693-done Cc: 35693-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, 14 May 2019 17:42:15 +0800, =E7=A9=8D=E4=B8=B9=E5=B0=BC wrote: >>>>>> "KY" =3D=3D Katsumi Yamaoka writes: KY> It returns "~" because you are in the home directory. That is why KY> you are prompted with "~" instead of "~/". > How terrible. Glad you found the cause. Hope it will get fixed soon. BTW, I can't imagine the ffap bindings to be useful in the Gnus group mode. An exapmle to get rid of the ffap bindings in only the Gnus group mode is below. Anyway I've installed both of the following two changes in the trunk, and am closing this bug. > 1. (ffap-file-at-point): Don't recognize "" as a path name. > 2. (ffap-file-exists-string): Don't recognize "" as a file name. Regards, --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline Content-Transfer-Encoding: quoted-printable (add-hook 'gnus-group-mode-hook (lambda () "Don't use the ffap bindings in the Gnus group mode." (when (memq 'ffap-gnus-hook gnus-summary-mode-hook) (let (key cmd) (dolist (def ffap-bindings) (setq key (nth 1 def)) (cond ((and (vectorp key) (eq (aref key 0) 'remap)) ;; Emacs 27 (local-set-key key (aref key 1))) ((stringp key) ;; Emacs <=3D26 (setq cmd (eval (nth 2 def))) (local-set-key key (or (cdr (assq cmd '((find-file-at-point . find-file) (ffap-read-only . find-file-read-only) (ffap-alternate-file . find-alternate-file) (ffap-other-window . find-file-other-window) (ffap-other-frame . find-file-other-frame) (ffap-read-only-other-window . find-file-read-only-other-window) (ffap-read-only-other-frame . find-file-read-only-other-frame) (dired-at-point . dired) (ffap-dired-other-window . dired-other-window) (ffap-dired-other-frame . dired-other-frame) (ffap-list-directory . list-directory)))) cmd))))))))) --=-=-=-- ------------=_1558056962-30346-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 May 2019 02:27:11 +0000 Received: from localhost ([127.0.0.1]:41518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPeCl-00079L-9P for submit@debbugs.gnu.org; Sat, 11 May 2019 22:27:11 -0400 Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]:5657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPeCi-00079B-Dy for submit@debbugs.gnu.org; Sat, 11 May 2019 22:27:09 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 11EBF125BC5 for ; Sun, 12 May 2019 02:27:07 +0000 (UTC) Received: from pdx1-sub0-mail-a72.g.dreamhost.com (unknown [100.96.28.64]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id CD86D125BDB for ; Sun, 12 May 2019 02:27:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a72.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 12 May 2019 02:27:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Robust-Chemical: 0e90464177fe0dab_1557628026901_401483417 X-MC-Loop-Signature: 1557628026901:871800883 X-MC-Ingress-Time: 1557628026900 Received: from pdx1-sub0-mail-a72.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTP id 96E5182F80 for ; Sat, 11 May 2019 19:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=x/XeuNkI2pHeB4Azxc52YT6HUio=; b=ks5l3ZWHyH45KKlI vFhfMKyUSFZ505ARrpIXwHbVrs+wVOPoyexcFM4PNpER0DbexywaclhbXKsdLQqw wCKu68CiJOcSrLkRCKBiSzTrZcCtYD6pu1D7HyeI1oDc04Pf/nDAqWRd2pxdLmrp P3BeNSKDCXhtDuzF9IY/SYDnSEU= Received: from jidanni.org (36-234-69-231.dynamic-ip.hinet.net [36.234.69.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTPSA id 0F5C882F7D for ; Sat, 11 May 2019 19:27:05 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a72 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Subject: The prompt for find-file becomes a ~ instead of ~/ X-Debbugs-Version: 5.13 X-Debbugs-Package: emacs,gnus Date: Sun, 12 May 2019 10:27:01 +0800 Message-ID: <87pnoo8l1m.2.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrledugdehlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecuffhomhgrihhnpehjihgurghnnhhirdhorhhgnecukfhppeefiedrvdefgedrieelrddvfedunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepfeeirddvfeegrdeiledrvdefuddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopehsuhgsmhhithesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: M-x gnus C-x C-f The prompt for find-file becomes a ~ instead of ~/ It turns out because since one uses ffap-bindings and the cursor is now resting after a ":", the find-file prompt is affected. OK it [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: jidanni.org] 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [36.234.69.231 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.214.18 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.6 (/) M-x gnus C-x C-f The prompt for find-file becomes a ~ instead of ~/ It turns out because since one uses ffap-bindings and the cursor is now resting after a ":", the find-file prompt is affected. OK it is not a gnus bug, but most commonly seen when using gnus... My conf files are in jidanni.org/comp/configuration/ Gnus v5.13 GNU Emacs 26.1 (build 2, i686-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-04, modified by Debian ------------=_1558056962-30346-1--