Re: [Ebib-users] Configuration of Ebib with ebibrc
Brought to you by:
joostkremers
From: Phil a. M. C. <pan...@bi...> - 2015-10-04 23:38:42
|
Hi Joost, I've got some more things to throw into the Ebib ring. I have been trying out per-directory keywords. here is my ebibrc file: ; ebibrc ; configuration file for ebib ; see Ebib manual for details ; created 2015-09-06, by Phil Carter ; change default entry type to book ; added 2015-09-06 (setq ebib-default-entry-type "Book") ; 2015-10-05 ; single keywords file (setq ebib-keywords-file "ebib-keywords.txt") I opened up a bib file with this configuration, then evaluated some of the expressions you have referred to. Here are the results: ebib-keywords-file "ebib-keywords.txt" (file-name-directory ebib-keywords-file) nil ebib--keywords-files-alist (("/Users/carters/fh-phil/Book/bib/" ("pm" "minmi" "queanbeyan" "nundle" "maitland" "newcastle" "afc" "ajc" "salvos" "smith" "writing" "temperance" ...) nil)) The keywords file is correct. I am not sure whether the file-name-directory should be nil. The ebib--keywords-files-alist returns the correct directory for my bib file, but it has returned a list of the keywords from this file. Based on the name of the variable I would have expected a list of one or more file names. Is this the correct interpretation of this variable? Thanks yet again, Phil Carter On 03/10/2015, at 8:55 AM, Phil and Marlene Carter wrote: > Hi Joost, > > What I did first up was to copy (file-name-directory ebib-keywords-file) into the scratch buffer, mark it, then M-x eval-region. > > But using C-j here is what I get: > > ebib-keywords-file > "/Users/carters/.emacs.d/ebib-keywords.txt" > > (file-name-directory ebib-keywords-file) > "/Users/carters/.emacs.d/" > > which all seems to be correct. > > I wondered whether there was something in my init.el that was throwing ebib off, so I created a temporary init.el with nothing in it except lines related to ebib. No change. > > I am getting to the point here where I am feeling guilty for wasting your time. The thing that attracted me to Ebib was the keywords facility, if I can't it to work I may have to try another method. > > Phil > > > On 02/10/2015, at 7:01 PM, Joost Kremers wrote: > >> Hi Phil, >> >>> What do you mean by what does >>> >>>> (file-name-directory ebib-keywords-file) >>> >>> say? I tried evaluating this expression, but I didn't get any result. >> >> How did you evaluate it? You should have Ebib running, then go to the >> *scratch* buffer, type (or copy&paste) the expression and press C-j. >> >> Better yet, before you do that, type `ebib-keywords-file` in the >> *scratch* buffer and press C-j. >> >> This is the output I get when I do that: >> >> ebib-keywords-file >> "~/Copy/Work/Bibtex/ebib.keywords" >> (file-name-directory ebib-keywords-file) >> "~/Copy/Work/Bibtex/" >> >> Yours should be similar. >> >> The thing is, given that `ebib-keywords-file` seems to be set, the only >> way `ebib--keywords-files-alist` could be nil is if the function >> `file-name-directory` for some reason doesn't produce the correct >> output. >> >>> I get the wrong type argument after pressing 'K s'. >> >> Yes, that makes sense. Ebib tries to push the keywords in the keywords >> field of the current entry onto `ebib--keywords-files-alist`, but since >> that variable is nil, it cannot do that. >> >> Best, >> >> Joost >> >> >> >> -- >> Joost Kremers >> Life has its moments >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Ebib-users mailing list >> Ebi...@li... >> https://lists.sourceforge.net/lists/listinfo/ebib-users >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ebib-users mailing list > Ebi...@li... > https://lists.sourceforge.net/lists/listinfo/ebib-users > |