bug#35964: TeX-strip-extension not doing what's documented, TeX-master-file always returning relative name

2024-04-03 Thread Arash Esbati
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,

bug#35964: TeX-strip-extension not doing what's documented, TeX-master-file always returning relative name

2019-06-20 Thread Ikumi Keita
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

bug#35964: TeX-strip-extension not doing what's documented, TeX-master-file always returning relative name

2019-06-19 Thread Ikumi Keita
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) >

bug#35964: TeX-strip-extension not doing what's documented, TeX-master-file always returning relative name

2019-05-28 Thread Jan Seeger
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.