- Complete path numbering of org-mode headlines and plain lists
- Okular forward search shift focus from emacs to okular
- Require a file in the current directory without setting load-path
- Why am i getting extra indentation-steps on react-router render function?
- Why “mobile-inbox.org” filename cannot be changed?
- Properties of fictional material for artificial skin
- Shooting an energy beam into the Sun (from the Earth) in order to destroy it
- Could a robotic exoskeleton give humans Earth like movements on a high gravity planet?
- Eternal seasons bind to geographical areas
- Technologically advanced humanity without internet
- Black hole in ice-cream truck?
- What would realistic space warfare be like?
- Planets gravity and survivability
- Licensing a single download from a repository
- Localized Site -> howto redirect Browser
- ID query format
- linking to staff page, how to setup entry
- How to convert ndarray into tensor and the features into on_hot in tensorflow?
- Why are the Little Colorado River and Havasu Creek blue?
- Traveling without the EU spouse!
expand-file-name doesn't expand files under my magic prefix
I've been implementing a magic file handler that accesses files remotely if they start with a particular prefix--say, /:foo:/--using the documentation as a guide.
When it came to implementing expand-file-name, I figured I could just fall through to the default implementation, since my magic prefix looks like a file on the local filesystem. It's one that doesn't exist, but then (expand-file-name "file" "/does/not/exist/") returns "/does/not/exist/file", so I thought I'd be OK. However, (expand-file-name "file" "/:foo:/") just returns "foo".
I assumed this was simply due to me incorretly implementing some other file operation, but when I log every operation passed to my handler, I don't see that expand-file-name invokes any other file operation.
So...why is expand-file-name behaving like this?
Edited to add:
After restarting Emacs, expand-file-name is now working as I expected it to. I'll close this question if the issue doesn't recur.