From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: mano155@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#26156: 26.0.50; expand-file-name fails to expand ~ if tramp is loaded and "/" is specified Date: Fri, 17 Mar 2017 18:49:28 -0700 Message-ID: <87shmbs6af.fsf@topd0g> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489852335 31741 195.159.176.226 (18 Mar 2017 15:52:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Mar 2017 15:52:15 +0000 (UTC) To: 26156@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 18 16:52:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpGeG-0007SG-60 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Mar 2017 16:52:08 +0100 Original-Received: from localhost ([::1]:53751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpGeM-0000da-9u for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Mar 2017 11:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpGeF-0000dB-Mj for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2017 11:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpGeB-0007OF-Po for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2017 11:52:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cpGeB-0007OB-Ld for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2017 11:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cpGeB-0001hm-Er for bug-gnu-emacs@gnu.org; Sat, 18 Mar 2017 11:52:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: mano155@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Mar 2017 15:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14898522956490 (code B ref -1); Sat, 18 Mar 2017 15:52:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Mar 2017 15:51:35 +0000 Original-Received: from localhost ([127.0.0.1]:34101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpGdj-0001gc-9A for submit@debbugs.gnu.org; Sat, 18 Mar 2017 11:51:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cp3WD-0000Jl-1W for submit@debbugs.gnu.org; Fri, 17 Mar 2017 21:50:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cp3W6-0007ig-PF for submit@debbugs.gnu.org; Fri, 17 Mar 2017 21:50:51 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cp3W6-0007iZ-Ln for submit@debbugs.gnu.org; Fri, 17 Mar 2017 21:50:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cp3W5-0004iu-6L for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 21:50:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cp3W0-0007gK-Ac for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 21:50:49 -0400 Original-Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:34516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cp3W0-0007gC-3m for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2017 21:50:44 -0400 Original-Received: by mail-pf0-x229.google.com with SMTP id p189so21283148pfp.1 for ; Fri, 17 Mar 2017 18:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=Up+JsnbxrcgfTrtKfvoa7BAmC3ub/dq5vctO2yR9LO8=; b=f8rYY2mVXs1GeY1YYKZR0zM8Wv71RjilXbxrTjc1bKBuERsmEPTBka4M4VaGhAne4N ycfSub82QwFNJGNF6x8W7eiJzuuj7ASxsb64poyaIO6neiVkfbcRhawoOakmJXLHudEf QAVyD0AGb0RqSrIJjNuVhYMwatFJnbQDhQTXRSf7ZAazwy8THyZhKqWV1xlAQy6usjnJ 1i3tODgnJRMUZVinBYgcLlgNPOPPEvK9qm1V0LdU/bDH750Rp8hIAlEob83UpgOCadyw +bePwT/IsxjKXSnvCyqWH9v92/YNmFtWuZLVEkvIMzICKjZy2sT75wKS/+DO7ZNbafGh pWig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Up+JsnbxrcgfTrtKfvoa7BAmC3ub/dq5vctO2yR9LO8=; b=bARwldSMEFoqu1gtVkkqL8s2bnZVxmkWkFT+Uh5M/RAt4SW9oDLz1gMtbtUMYYJgOz 4eI7anXCTeToh2O4wpXOqTkX83cA/betmNwXMMZKjQAOdPp/ct3sUhg12AgiBuk6DtUf nWbQJnW62PsFK+vWSLRZw0Y9GAeSN1j2d2Q5xD5dG6QaV3c53MEBqpYVwpxYdcKPLjQm y5dWoleLR0kC5dNuBeVcL6g59ArCfEgb3sJ8njFNPiR0tsiklqdFuAsf7FlR836ZkefS 9e56S242giB4hczT6XRxVAyuIknFavtnXLPMkAPJVgn1vlAvuaChKhO9xNbiPcUjJfcH +pBw== X-Gm-Message-State: AFeK/H2yRSL087TDRjxq7clusIpOaBXx3qyzpf8jE6JlG2gAFA8gyDe/A5861edrSr+xrA== X-Received: by 10.84.179.165 with SMTP id b34mr23579582plc.147.1489801842757; Fri, 17 Mar 2017 18:50:42 -0700 (PDT) Original-Received: from topd0g (c-73-118-158-137.hsd1.wa.comcast.net. [73.118.158.137]) by smtp.gmail.com with ESMTPSA id h25sm19070427pfk.119.2017.03.17.18.50.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Mar 2017 18:50:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sat, 18 Mar 2017 11:51:34 -0400 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: 208.118.235.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:130699 Archived-At: On the most recent version, if tramp is loaded, expand-file-name does not expand ~ properly when the second argument is "/". This breaks breaks magit-clone, though weirdly, that command only fails if the active point is in a dired buffer. To clarify, "~" is absolute (per the docstring for file-name-absolute-p), but it is not canonical (per the docstring for expand-file-name). Bisecting, the breaking change was 19a04b4c32. Starting from "emacs -Q": (expand-file-name "~" "/") "/home/sh0e" (expand-file-name "~/" "/") "/home/sh0e/" (require 'tramp) tramp (expand-file-name "~" "/") "~" (expand-file-name "~/" "/") "~/build/" In GNU Emacs 26.0.50 (build 2, x86_64-unknown-linux-gnu, GTK+ Version 3.22.10) of 2017-03-14 built on topd0g Repository revision: c66aaa61639e72a70a4f2c4bc73645048caebe53 Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Arch Linux Recent messages: Mark set report-emacs-bug-hook: M-x report-emacs-bug was canceled, please read *Bug Help* buffer Mark set [2 times] Sending... message-send: No methods specified to send by Mark set Sending... message-send: No methods specified to send by Mark set Making completion list... [2 times] Configured using: 'configure --with-xwidgets' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS LIBSYSTEMD Important settings: value of $LC_CTYPE: hu_HU.utf8 value of $LANG: hu_HU.utf8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (network-stream nsm starttls tls gnutls mailalias smtpmail cus-edit cus-start cus-load wid-edit pp shadow sort mail-extr emacsbug message puny seq rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thingatpt help-fns radix-tree tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice auth-source cl-seq eieio byte-opt subr-x bytecomp byte-compile cl-extra help-mode easymenu cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs pcase cl-lib password-cache dired dired-loaddefs time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 242235 33519) (symbols 48 23632 17) (miscs 40 98 441) (strings 32 27983 6861) (string-bytes 1 879172) (vectors 16 39469) (vector-slots 8 750802 14512) (floats 8 73 394) (intervals 56 874 430) (buffers 976 16))