pelzflorian (Florian Pelz) wrote:
But then again, the current current-source-directory
already does follow symlinks in nearly all cases, even in configuration
files
Don't see it neither in the code nor in our examples. 'syntax-source' doesn't
do this. The second branch of 'if' in 'absolute-dirname' bringing in
'canonicalize-path' is never executed in the examples (remember, the original
patch didn't work because of this).

but actually I do not know why `local-file', when
calling `absolute-dirname', takes this case of `if'.
Only the first branch of 'if' is executed in all practical cases I can imagine.

Documenting this work-around is not enough; we would have to also
document the rationale that local-file is weird and inconsistent,
Why do you think we should do this in this section of cookbook? Isn't it a 
separate
topic?

because current-source-directory is weird and inconsistent
It isn't. It simply does not follow symlinks by design.

Why does current-source-directory use syntax-source?
What can it use instead? Related syntaxes such as
'current-source-location' and 'current-filename' are all using
'syntax-source' under the hood.

Regards,
Nigko

Reply via email to