From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: immerrr again Newsgroups: gmane.emacs.bugs Subject: bug#33255: 27.0.50; expand-file-name: default directory expanded twice if relative Date: Sun, 4 Nov 2018 11:54:49 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1541328851 14082 195.159.176.226 (4 Nov 2018 10:54:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2018 10:54:11 +0000 (UTC) To: 33255@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 04 11:54:07 2018 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 1gJG2g-0003Xk-Ni for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2018 11:54:06 +0100 Original-Received: from localhost ([::1]:58381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJG4m-0004vf-UJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2018 05:56:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJG4a-0004va-JT for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:56:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJG4Y-0006JD-S4 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:56:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJG4Y-0006Id-EQ for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJG4Y-0004e1-B8 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: immerrr again Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2018 10:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33255 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.154132891417796 (code B ref -1); Sun, 04 Nov 2018 10:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2018 10:55:14 +0000 Original-Received: from localhost ([127.0.0.1]:33378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJG3m-0004cy-1Y for submit@debbugs.gnu.org; Sun, 04 Nov 2018 05:55:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJG3k-0004ck-Mq for submit@debbugs.gnu.org; Sun, 04 Nov 2018 05:55:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJG3e-0005FP-1Q for submit@debbugs.gnu.org; Sun, 04 Nov 2018 05:55:07 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJG3d-0005FL-UB for submit@debbugs.gnu.org; Sun, 04 Nov 2018 05:55:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJG3c-0004mC-H0 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:55:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJG3a-0005AQ-Rv for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:55:04 -0500 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:36129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJG3a-00056N-Dh for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2018 05:55:02 -0500 Original-Received: by mail-wr1-x431.google.com with SMTP id z13-v6so3919387wrs.3 for ; Sun, 04 Nov 2018 02:55:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0bLVJOSwcV+yBLHBI0ee3LUu+0LC1kwB7VdgSSxoOl4=; b=tYc6692oYFvO+S+HGByjZIUgMapGVi6EUhZJ7DI5Etou78mSohGMPMsZiSwek8eIWK hvDM5YAWWgjkq1g/CoPzE9lLMmHTeb1fcoSm+ziic17b4aRE9RVq8gaZXkgoGoH/idhv qiNJyCaomcPKqU7Xa7MXmt2v2Nue4cxbOKbriLfer7+NztV2kYZfGfWzgX4nkQTj3r0V JsMF7R2QzGMtdlpdJRI6OlEnAIWnyfPMEDGtqys1X8vmrs1aqTLG2LEpwlp3epR6+Fa8 BLBW0FDh06K1oqLsxcfyk4JaMLbSDjQgUMFh6RTnhBNNCA6NVNUXCA4HZymzZZnpBD0R fG/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0bLVJOSwcV+yBLHBI0ee3LUu+0LC1kwB7VdgSSxoOl4=; b=TBVQLN4CLLLAF0K0rdZT8wKzcOMMnd49Tkv2KePUWaVBIpIGYR3Dhb1ok4ZVVOfVtx uuGevPz3DJ2tlRVBdc327PBGBGbvRDpPlOqp7ih96qPoyFj91sksHAv4o3dFVT8WFa72 QtzyDvGp7AY6EqZu93oNUJMynAzSxsymWiaU8No5tENrlAHjaKGMaZExWLjlMkIPD3PX Y1D1V0CXvrzou8P6AA5jEjD9GG/WqTGcIMe9ohDUOPk+OI2Hjqg0TsUH9WRZG307NYKw X9/m/1Xir4IyDKUNB+ZErlmeUFuaWbT/AUW6J3WdiOrKtczk//U6bq4IHPwDtk7Ab1Ua oTGw== X-Gm-Message-State: AGRZ1gK4SRRc+JenwAdNd83G5EMxaZ6zcxI/OPr3+8TAS4su6c52Jd4J VG+VHRZQvAmqcZDW2RpAQiQr6uFgt3uMZ0sHl4dzFTN0 X-Google-Smtp-Source: AJdET5exb/0A96twxBCZ41dGZpZxZkU6L89x1byfGoC9WqExM5LbFp4noHX55CWNl6U/6SRYxPQHYJnArVx3uNGQhC0= X-Received: by 2002:a5d:40cc:: with SMTP id b12-v6mr16958521wrq.133.1541328900434; Sun, 04 Nov 2018 02:55:00 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:152006 Archived-At: I have recently tried to play with a clean .emacs.d directory by setting HOME=clean/home/dir, but faced an error coming from deep inside package-install. The error boils down to the fact that `expand-file-name' for some reason doubles the `default-directory' prefix when it is relative: $ emacs -Q -batch --eval '(let ((default-directory "DEFAULT-DIR/")) (print (expand-file-name "EXPANDED-DIR/")))' "DEFAULT-DIR/DEFAULT-DIR/EXPANDED-DIR/" Interestingly, if you run `expand-file-name' twice you end up with four prefixes: $ emacs -Q -batch --eval '(let ((default-directory "DEFAULT-DIR/")) (print (expand-file-name (expand-file-name "EXPANDED-DIR/"))))' "DEFAULT-DIR/DEFAULT-DIR/DEFAULT-DIR/DEFAULT-DIR/EXPANDED-DIR/" I couldn't find any requirement for DEFAULT-DIRECTORY parameter or `default-directory' variable to be absolute, so I would assume this is a bug in expand-file-name. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-07-09 built on mmrcomp Repository revision: 3307353e13a9226d477c9b1a39baae76584b90b9 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.5 LTS Recent messages: Mark set Saving file /home/immerrr/.cask/cask-cli.el... Wrote /home/immerrr/.cask/cask-cli.el Saving file /home/immerrr/.cask/cask-cli.el... Wrote /home/immerrr/.cask/cask-cli.el Saving file /home/immerrr/.cask/cask-cli.el... Wrote /home/immerrr/.cask/cask-cli.el Saving file /home/immerrr/.cask/cask-cli.el... Wrote /home/immerrr/.cask/cask-cli.el Mark set Configured using: 'configure --prefix=/home/immerrr/.local' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS JSON LCMS2 Important settings: value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: el Minor modes in effect: magit-auto-revert-mode: t auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t global-undo-tree-mode: t undo-tree-mode: t diff-auto-refine-mode: t nameless-mode: t guide-key-mode: t whitespace-mode: t flycheck-mode: t shell-dirtrack-mode: t counsel-projectile-mode: t projectile-mode: t ivy-mode: t global-company-mode: t company-mode: t pyvenv-mode: t paredit-mode: t auto-compile-on-save-mode: t auto-compile-mode: t recentf-mode: t yas-global-mode: t yas-minor-mode: t save-place-mode: t show-paren-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t override-global-mode: t bar-cursor-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/immerrr/.emacs.d/elpa/ample-regexps-20151023.300/init-tryout hides /home/immerrr/.emacs.d/elpa/lua-mode-20180104.626/init-tryout Features: (shadow sort mail-extr emacsbug sendmail macrostep-c cmacexp macrostep cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ielm tar-mode git-rebase rect bug-reference py-isort executable vc vc-dispatcher magit-bookmark magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-collab ghub url-auth magit-files magit-refs magit-status magit dired-x magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils ido crm magit-popup log-edit message rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader pcvs-util add-log with-editor term ehelp esh-var esh-cmd esh-opt esh-io esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode async-bytecomp async server imenu undo-tree diff edebug network-stream puny nsm rmc company-jedi jedi-core epc ctable concurrent cap-words superword subword pipenv f eieio-opt speedbar sb-image ezimage dframe warnings pulse cl-print debug vc-git diff-mode bookmark pp company-elisp nameless guide-key popwin face-remap disp-table whitespace flycheck find-func rx jka-compr let-alist colir mmr-org-settings python tramp-sh tramp trampver tramp-compat tramp-loaddefs ucs-normalize shell pcomplete parse-time format-spec counsel-projectile projectile skeleton ibuf-macs wgrep grep ibuf-ext ibuffer ibuffer-loaddefs counsel dired dired-loaddefs compile esh-util swiper ivy-rich ivy delsel ivy-overlay ffap thingatpt traad virtualenvwrapper gud comint ansi-color s request-deferred request mail-utils url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap popup python-environment deferred subr-x company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company pyvenv paredit auto-compile packed recentf tree-widget wid-edit yasnippet derived elec-pair saveplace hydra ring lv paren solarized-dark-theme solarized-theme solarized color dash display-line-numbers mmr-dir-local-env mmr-bootstrap quelpa-use-package cl-extra advice pcase quelpa mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr help-fns radix-tree help-mode package-recipe-mode edmacro kmacro package-build-badges package-build lisp-mnt use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key use-package-core bind-key diminish cl linum-ex bar-cursor easy-mmode mmr-minimal mmr-ediff windmove time-date mule-util info finder-inf package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 charprop 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 lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1357726 145867) (symbols 48 50837 2) (miscs 40 6306 4056) (strings 32 121140 10207) (string-bytes 1 4278168) (vectors 16 68224) (vector-slots 8 1809895 106986) (floats 8 422 1779) (intervals 56 116849 2490) (buffers 992 53) (heap 1024 76825 5884))