GNU bug report logs -
#65120
29.1; directory-abbrev-alist breaks various things when inside an abbreviated directory
Previous Next
Full log
View this message in rfc822 format
> From: Sean Allred <allred.sean <at> gmail.com>
> Cc: Sean Allred <allred.sean <at> gmail.com>, 65120 <at> debbugs.gnu.org
> Date: Wed, 09 Aug 2023 06:28:55 -0500
>
> So, I'd like to shorten this $MegaCorpSource path using built-in
> functionality where possible. My users aren't going to care about most
> of the path components. I can roll my own, but is there something like
> `abbreviate-file-name' that doesn't assume we're working with symlinks?
> (Should/could there be? Thoughts on whether or not it is A Good
> Idea(tm)?)
I don't think there's something in Emacs. But you can use
directory-abbrev-alist if you define a drive (using 'subst') that
would remove the need for using the full file name. Something like
subst x: C:\$MegaCorpSource
Then you could use "x:/" in directory-abbrev-alist. This actually
matches the "symlink" idea of this feature on Unix.
(Yes, I know: corporate IT doesn't like SUBST very much, either. But
maybe you will be lucky...)
This bug report was last modified 1 year and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.