On Linux generally there are two ways to specify a path:
(setq bu-pdf-dir "~/Documents/bibtex/pdfs")
(setq bu-pdf-dir "~/Documents/bibtex/pdfs/")
Because the bu-open-doc function just concats path components to check for pdfs in the directory this may result in a broken path: "~/Documents/bibtex/pdfsmykey.pdf".
To avoid this it's generally better to use something like: (concat (file-name-as-directory bu-pdf-dir) (cdr (assoc "=key=" ) ".pdf"). Notice the usage of file-name-as-directory.
I could come up with a patch but the change is trivial :-)
On Linux generally there are two ways to specify a path:
(setq bu-pdf-dir "~/Documents/bibtex/pdfs")
(setq bu-pdf-dir "~/Documents/bibtex/pdfs/")
Because the
bu-open-doc
function just concats path components to check for pdfs in the directory this may result in a broken path:"~/Documents/bibtex/pdfsmykey.pdf"
.To avoid this it's generally better to use something like:
(concat (file-name-as-directory bu-pdf-dir) (cdr (assoc "=key=" ) ".pdf")
. Notice the usage offile-name-as-directory
.I could come up with a patch but the change is trivial :-)