[Ebib-users] Discussion of issues relating to Ebib
Brought to you by:
joostkremers
From: Phil a. M. C. <pan...@bi...> - 2015-07-21 21:57:46
|
Hi Joost, Sorry I have been slow in replying. We had a death in the family. For reasons which I don't understand my reply to your last email could not be delivered, so I am starting a fresh email. Here are the results of the commands: *** Welcome to IELM *** Type (describe-mode) for help. ELISP> (ebib--get-db-from-filename (cl-second (buffer-local-value 'ebib--multiline-info (car ebib--multiline-buffer-list)))) nil ELISP> (ebib-db-get-filename ebib--cur-db) "~/Documents/Phil/misc/books-read.bib" ELISP> (expand-file-name (ebib-db-get-filename ebib--cur-db)) "/Users/carters/Documents/Phil/misc/books-read.bib" ELISP> (expand-file-name (cl-second (buffer-local-value 'ebib--multiline-info (car ebib--multiline-buffer-list)))) "/Users/carters/Documents/Phil/misc/books-read.bib" ELISP> The first command did in fact return "nil". The other commands return the correct database. Thanks again for your help. It worries me that I have done something fundamentally wrong, but I can't think what it might be. Regards, Phil Carter Hi Phil, Well, that's exactly the value I'd expect (assuming that the file is correct). Unfortunately, that doesn't make it easier figuring out what's going wrong... Could you try a few things and report the results? Start a fresh instance of Ebib (please quit Ebib first if it's already running), open the relevant file and then edit an annote field. While the annote buffer is open, do the following: M-x ielm RET This will start an interactive Elisp session. Then type (copy & paste): (ebib--get-db-from-filename (cl-second (buffer-local-value 'ebib--multiline-info (car ebib--multiline-buffer-list)))) This should return the database containing the entry whose annote field you're editing. If there are a lot of entries in it, it may take a while for Emacs to display the value. I suspect it returns `nil`, however, which is not correct. If that is the case, please enter the following at the IELM prompt: (ebib-db-get-filename ebib--cur-db) then: (expand-file-name (ebib-db-get-filename ebib--cur-db)) and: (expand-file-name (cl-second (buffer-local-value 'ebib--multiline-info (car ebib--multiline-buffer-list)))) The last two results should be identical, but it seems that for some reason, they are not. Best, Joost |