tmalsburg / helm-bibtex

Search and manage bibliographies in Emacs
GNU General Public License v2.0
462 stars 74 forks source link

fail to open Mendeley generated bibtex after recent update #179

Closed cryoguy closed 7 years ago

cryoguy commented 7 years ago

Everything works fine until a recent git pull. Please help or advise (in the middle of paper submission) get following error:

/home/tony/Documents/bibliography/references.bib ... In ‘BibTeX entries’ source: ‘bibtex-completion-candidates’ (void-function s-blank-str\?)

an example citation:

@article{Bellissent-Funel1989, author = {Bellissent-Funel, M -C and Teixeira, J and Bosio, L and Dore, J C}, doi = {10.1088/0953-8984/1/39/024}, file = {:mnt/2nd{\_}BAY/papers/Bellissent-Funel et al. - 1989 - A structural study of deeply supercooled water - Journal of Physics Condensed Matter.pdf:pdf}, issn = {0953-8984}, journal = {Journal of Physics: Condensed Matter}, month = {oct}, number = {39}, pages = {7123--7129}, title = {{A structural study of deeply supercooled water}}, url = {http://stacks.iop.org/0953-8984/1/i=39/a=024?key=crossref.4c8f13c7fdd4d6818558d37339b50179}, volume = {1}, year = {1989} }

tmalsburg commented 7 years ago

Your s.el is outdated, see #164. Always good to check existing issues first, especially when you haven't updated in a while. Make sure your packages are up-to-date before you open a new issue. MELPA make this really easy. Good luck with your manuscript.

cryoguy commented 7 years ago

FYI: my problem lies in the {_} in file path from my Mendeley generated bibtex file. Here is my fix: add the following to line 548: for record = (replace-regexp-in-string "{\\|}\\|\\\\" "" record) all good now!

tmalsburg commented 7 years ago

A bit of a hack because it will break file names containing curly braces if I'm not mistaken. But perhaps good enough for now.