Ikumi Keita writes:
> IMHO, the sentence "If optional second argument NONDIRECTORY is non-nil,
> do not include the directory." in the doc string of `TeX-master-file'
> does not gurantee that it returns absolute path if NONDIRECTORY is nil.
> It just states the case when NONDIRECTORY is non-nil,
Hi Jan,
Please keep 35...@debbugs.gnu.org in Cc: when you reply.
> Jan Seeger writes:
> If there is a better way to get the absolute path of the master file,
> let me know!
How about "%a" defined in `TeX-expand-list-builtin' instead of your
"%(abs)"?
(Ah, but it seems to my eyes not to
Hi Jan, sorry for very late reply.
> Jan Seeger writes:
> However, the second case check is implemented without regard for the
> special value 'path, and strips the directory even when NODIR is nil.
> I've modified the check to
> (if (or (eq nodir t)
> (and (eq nodir 'path)
>
Hey!
While trying to get TeX-master-file to produce an absolute path, I found
that the `nodir` argument to TeX-strip-extension was not doing what was
expected. The filename was still getting stripped, and the code on lines
4393 to 4398 in `tex.el` was responsible for that.