- How many nonnegative integer solutions are there to the equation $x_1+x_2+x_3+x_4 = 18$ with restrictions
- Recurrence induction show $f(n) = c4^{n} - d2^{n}, \forall n \in \mathbb N$
- Fast Fourier Transform and approximation of derivates
- Evaluate $\displaystyle\lim_{(x,y)\to(0,0)}\dfrac{(x+y)^2}{x^2+y^2}$
- Justification for not drawing curve when x < 0
- Why are Fibonacci numbers bad for Euclid's Algorithm and how to derive this upper bound on number of steps needed in general?
- How do I prove that $a\vec{v}=0$ if $a=0$ or $\vec{v}=0$ (where $a$ is a scalar and $\vec{v}$ is a vector)?
- Truth Table- is this correct?
- Why is the ratio of volumes of these two sets the same as the ratio of their surface areas?
- Decomposition of a principal ideal in a Dedekind domain
- Two kinds of prime gaps
- Dual problem of Sum of Entropies constrained on probability simplex
- Inverted knuth arrow notation?
- What is the Cauchy completion of a metric space?
- Solve the Dirichlet problem on the unit disk.
- Prove that we cannot inscribe sphere in polyhedral.
- Is $\mathbb Q(\zeta, \sqrt[4]2)$ equal to $\mathbb Q(\alpha)$?
- Calculate $\lim_{n\to\infty} n^{\gamma} \int_{-1/n}^{1/n} |f(x)| dx$.
- Longest chain in directed graph
- image of integer in $(Z/p^nZ)^\times$

# 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.