Discussion:
[AUCTeX] auctex Digest, Vol 156, Issue 8
Greg Bognar
2018-02-20 17:17:47 UTC
Permalink
I didn't test it, but could you please use two distinct names for your
files, e.g. foo.tex and bar.bib, and try it again?
Thanks, that does the trick! For posterity, the `.bib' file must not have the
same filename as _any_ other file in the directory, i.e., calling `bar.bib'
from `foo.tex' will not work if there is a `bar.tex' in the same directory.
Is there any reason this might be so? I'm asking because I'm doing exactly what
you say I shouldn't, and it works without any problems.

Greg
Arash Esbati
2018-02-23 11:44:26 UTC
Permalink
Post by Greg Bognar
I didn't test it, but could you please use two distinct names for your
files, e.g. foo.tex and bar.bib, and try it again?
Thanks, that does the trick! For posterity, the `.bib' file must not have the
same filename as _any_ other file in the directory, i.e., calling `bar.bib'
from `foo.tex' will not work if there is a `bar.tex' in the same directory.
Is there any reason this might be so? I'm asking because I'm doing exactly what
you say I shouldn't, and it works without any problems.
This is an old design decision in AUCTeX that when runnig style files,
AUCTeX doesn't look after the extension. Hence, you might get confusing
results when you have the same base filename within a project multiple
times.

IIRC, this issue was described in greater detail in this(?) list by Mosè
G. You have to search for it.

Best, Arash
Mosè Giordano
2018-02-23 16:41:12 UTC
Permalink
Hi Arash,
Post by Arash Esbati
IIRC, this issue was described in greater detail in this(?) list by Mosè
G. You have to search for it.
I'm not sure what you're referring to, my bad memory :-)

Anyway, here is a very old proof-of-concept by Ralf to fix the issue:
http://comments.gmane.org/gmane.emacs.auctex.devel/857 A few years
ago I rebased it on the then master:
https://github.com/giordano/auctex/commit/4f1077ecff0d9c387dd953423034521211d93b0b.patch
However, I never tried to address the issue again.

I believe this was a very bad design decision, it makes it impossible
to distinguish classes, packages, secondary files, auxiliary files,
and so on. And things get even worse when those files have the same
basename, as in this case.

Bye,
Mosè
David Kastrup
2018-02-23 16:53:08 UTC
Permalink
Post by Mosè Giordano
Hi Arash,
Post by Arash Esbati
IIRC, this issue was described in greater detail in this(?) list by Mosè
G. You have to search for it.
I'm not sure what you're referring to, my bad memory :-)
http://comments.gmane.org/gmane.emacs.auctex.devel/857 A few years
https://github.com/giordano/auctex/commit/4f1077ecff0d9c387dd953423034521211d93b0b.patch
However, I never tried to address the issue again.
I believe this was a very bad design decision, it makes it impossible
to distinguish classes, packages, secondary files, auxiliary files,
and so on.
It was done at a time when FAT16 file systems were very, very relevant
and file names did not admit more than 8.3. Even then, one could have
substructured this into CLS\8.3 PKG\8.3 and so on.
Post by Mosè Giordano
And things get even worse when those files have the same basename, as
in this case.
Well, it's not exactly cast in stone. One can still substructure
directories like that and use the top level as fallback.
--
David Kastrup
Loading...