- How can 2 computers in different network communicate?
- Where to set zerotouch boot config with Arista?
- IDA cannot launch debugger for 64-bit exe files
- What does the “Offset to the filename” stands for in an Index Record in NTFS
- Changing strings in Hopper Disassembler
- Trying to figure what kind of compression was used here
- The difference between of and by
- “Whatever you say” and “Whatever you may say”
- Understanding of , or about
- Is it fine to use “I have heard from”
- Present perfect passive question
- What is the meaning of this comment posted on my question?
- how do we normally greet when some one meet around 2pm to 3.30pm?
- A change made locally to observer in development mode not happening when deployed to production?
- How to add Unirest to Magento 188.8.131.52?
- Image resizing not working if height and width values are different
- Styling cms static block in luma theme - Magento 2
- two eshop and the one eshop don't import the right css
- Shopping cart shows as empty upon clicking “add to cart”
- Shopping cart is empty when adding a product to the cart
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.