From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#35693: The prompt for find-file becomes a ~ instead of ~/ Date: Fri, 17 May 2019 10:35:22 +0900 Organization: Emacsen advocacy group Message-ID: References: <87pnoo8l1m.2.fsf@jidanni.org> <87mujp8j9k.8.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44822"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cc: 35693-done@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 17 03:36:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRRnD-000BQ6-5V for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 May 2019 03:36:15 +0200 Original-Received: from localhost ([127.0.0.1]:39499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRRnC-0004AE-1h for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 May 2019 21:36:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRRn1-00049F-K9 for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 21:36:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRRn0-0008Qv-Ln for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 21:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRRn0-0008Qe-Hd for bug-gnu-emacs@gnu.org; Thu, 16 May 2019 21:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hRRn0-0007ta-Cq; Thu, 16 May 2019 21:36:02 -0400 In-Reply-To: <87pnoo8l1m.2.fsf@jidanni.org> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 17 May 2019 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 35693 X-GNU-PR-Package: emacs,gnus Mail-Followup-To: 35693@debbugs.gnu.org, yamaoka@jpl.org, jidanni@jidanni.org Original-Received: via spool by 35693-done@debbugs.gnu.org id=D35693.155805693330304 (code D ref 35693); Fri, 17 May 2019 01:36:02 +0000 Original-Received: (at 35693-done) by debbugs.gnu.org; 17 May 2019 01:35:33 +0000 Original-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 Original-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 Original-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) Original-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 Original-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 Original-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 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&( Cancel-Lock: sha1:9we4ErEoj+J5jTBxXJ0XjT7YOIc= X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159431 Archived-At: --=-=-= 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))))))))) --=-=-=--