GNU bug report logs - #22844
24.4; ido confused by leading ~ in dir names

Previous Next

Package: emacs;

Reported by: trentbuck <at> gmail.com (Trent W. Buck)

Date: Sun, 28 Feb 2016 23:57:01 UTC

Severity: normal

Merged with 45257

Found in versions 24.4, 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22844 in the body.
You can then email your comments to 22844 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22844; Package emacs. (Sun, 28 Feb 2016 23:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to trentbuck <at> gmail.com (Trent W. Buck):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Feb 2016 23:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: trentbuck <at> gmail.com (Trent W. Buck)
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; ido confused by leading ~ in dir names
Date: Mon, 29 Feb 2016 10:56:10 +1100
Because I use wget -x, I have directories like this: 

   ~/Desktop/www.cl.cam.ac.uk/~rja14/Papers/SEv2-c01.pdf

If I open dired in ~/Desktop, I can browse to that just fine.

If I use C-x C-f (ido-find-file) from ~/Desktop/www.cl.cam.ac.uk/,
I can press ^M and got into ~rja14 just fine:

   Find file: ~/Desktop/www.cl.cam.ac.uk/{~rja14/ | ~sjm217/}
^M  Find file: ~/Desktop/www.cl.cam.ac.uk/~rja14/{Papers/ | book/ | book.html}

But if I try to navigate via C-x C-f from somewhere else (like ~/Desktop), ido goes haywire:

   Find file: ~/Desktop/{www.cl.cam.ac.uk/ | ...
^M  Find file: ~/Desktop/www.cl.cam.ac.uk/{~rja14/ | ~sjm217/}
^M  Find file: ~/Desktop/~rja14/ [No match]


If this is easy to fix, please fix it.

If it involves a bunch of tradeoffs, don't worry about it- it doesn't
affect me often & dired is a "good enough" workaround.
(This issue has been present for years,
I only just got annoyed enough to report it.)


The ido settings in my .emacs are:

   (setq ido-default-buffer-method 'selected-window
         ido-default-file-method 'selected-window
         ido-enable-prefix t
         ido-enable-flex-matching t
         ido-save-directory-list-file "~/.emacs.d/ido.last"
         ido-use-filename-at-point 'guess
         ido-use-url-at-point t)
   (ido-mode +1)
   (ido-everywhere +1)
   (eval-after-load "ido"
     '(eval-after-load "dired"
        '(put 'ido-subdir 'face-alias 'dired-directory)))





In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu)
of 2014-10-26 on trouble, modified by Debian
System Description:	Debian GNU/Linux 8.0 (jessie)

Configured using:
`configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
--with-x=no --without-gconf --without-gsettings 'CFLAGS=-g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wall'
CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro'

Important settings:
 value of $LC_COLLATE: C
 value of $LANG: en_AU.utf8
 locale-coding-system: utf-8-unix

Major mode: rcirc

Minor modes in effect:
 shell-dirtrack-mode: t
 rcirc-track-minor-mode: t
 global-hl-todo-mode: t
 ido-everywhere: t
 savehist-mode: t
 icomplete-mode: t
 show-paren-mode: t
 delete-selection-mode: t
 tooltip-mode: t
 use-hard-newlines: 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
 column-number-mode: t
 line-number-mode: t
 transient-mark-mode: t

Recent input:
, i DEL SPC i f SPC O DEL I SPC g o t SPC b a c k SPC 
u p SPC a SPC d i r , SPC t h e n SPC t DEL I SPC g 
e t SPC t h i s : RET C-c C-c C-x C-f C-g F i n d SPC 
f i l e : SPC ~ / D e s k t o p / { w w w . c l . c 
a m . a c . u k / SPC | SPC . . . RET C-x C-f RET C-g 
F i n d SPC f i l e : SPC ~ / D e s k t o p / w w w 
. c l . c a m . a c . u k / { ~ r j a 1 4 / SPC | SPC 
~ s j m 2 1 7 / } RET C-x C-f w w RET RET C-g F i n 
d SPC f i l e : SPC ~ / D e s k t o p / ~ r j a 1 4 
/ SPC [ N o SPC m a t c h ] ESC O B ESC O A C-x h ESC 
1 ESC | p a s t e b i n i t RET C-c C-c RET a i TAB 
[REDACTED] C-x 1 ESC 
x r e p o r t b u C-g ESC x r e p o r t b u g RET C-g 
ESC x r e p o r t SPC e m a c s SPC b u g RET

Recent messages:
C-x C-g is undefined
Quit
Mark set
Quit
ESC C-M-g is undefined
Quit [5 times]
Type C-c C-c to return text to #emacs <at> irc.freenode.net, or C-c C-k to cancel
Quit [3 times]
End of buffer
Mark set [2 times]
Quit [2 times]

Load-path shadows:
/usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.4/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.4/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.4/lisp/textmodes/flyspell

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
tabify conf-mode tramp-cache tramp-sh tramp tramp-compat tramp-loaddefs
trampver format-spec shell pcomplete dired-aux vc-git sh-script smie
executable misearch multi-isearch windmove mule-util w3m-form w3m-symbol
w3m-filter w3m-bookmark w3m-session ffap thingatpt url-parse url-vars
w3m browse-url doc-view dired image-mode easymenu timezone w3m-hist
w3m-fb bookmark-w3m w3m-ems wid-edit w3m-ccl ccl w3m-favicon image
w3m-image w3m-proc w3m-util xterm pp gnutls network-stream auth-source
eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util
password-cache starttls tls rcirc server advice sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils jka-compr edmacro
kmacro cl-loaddefs cl-lib disp-table hl-todo ido savehist icomplete
time-date paren delsel saveplace debian-el debian-el-loaddefs w3m-load
pylint compile comint regexp-opt ansi-color ring tool-bar 50magit
emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode
dpkg-dev-el dpkg-dev-el-loaddefs tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type tabulated-list newcomment lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind
gfilenotify multi-tty emacs)

Memory information:
((conses 16 210123 11386)
(symbols 48 26803 0)
(miscs 40 249 327)
(strings 32 58074 7088)
(string-bytes 1 1535299)
(vectors 16 18608)
(vector-slots 8 510015 2989)
(floats 8 239 545)
(intervals 56 7982 0)
(buffers 960 37)
(heap 1024 52556 1053))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22844; Package emacs. (Tue, 15 Dec 2020 08:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 22844 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: trentbuck <at> gmail.com (Trent W. Buck)
Cc: 22844 <at> debbugs.gnu.org
Subject: Re: bug#22844: 24.4; ido confused by leading ~ in dir names
Date: Tue, 15 Dec 2020 09:02:21 +0100
trentbuck <at> gmail.com (Trent W. Buck) writes:

> Because I use wget -x, I have directories like this:
> ~/Desktop/www.cl.cam.ac.uk/~rja14/Papers/SEv2-c01.pdf
>
> If I open dired in ~/Desktop, I can browse to that just fine.
>
> If I use C-x C-f (ido-find-file) from ~/Desktop/www.cl.cam.ac.uk/,
> I can press ^M and got into ~rja14 just fine:
>
>    Find file: ~/Desktop/www.cl.cam.ac.uk/{~rja14/ | ~sjm217/}
> ^M  Find file: ~/Desktop/www.cl.cam.ac.uk/~rja14/{Papers/ | book/ | book.html}
>
> But if I try to navigate via C-x C-f from somewhere else (like ~/Desktop), ido goes haywire:
>
>    Find file: ~/Desktop/{www.cl.cam.ac.uk/ | ...
> ^M  Find file: ~/Desktop/www.cl.cam.ac.uk/{~rja14/ | ~sjm217/}
> ^M  Find file: ~/Desktop/~rja14/ [No match]

(This bug report unfortunately got no response at the time.)

I can confirm that this bug is still present in Emacs 28, but I have not
tried to debug it.  It looks like ido is treating ~foo as a home
directory?  Normal Emacs completion does the same, I guess, but only if
~foo exists...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Forcibly Merged 22844 45257. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 16 Dec 2020 09:35:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 45257 <at> debbugs.gnu.org and <benthor <at> posteo.de> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 04 Jun 2021 10:29:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Jul 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.