Re: [Ebib-users] elisp function to start ebib on specified bibtex entry
Brought to you by:
joostkremers
From: Joost K. <joo...@fa...> - 2010-09-12 11:52:27
|
hi ali, it took me a while to get round to it, but i finally wrote the function you asked for... it's in the git repository now, if you use git, just check out the latest version. (if you don't want to use git, let me know, i can make a new release at sourceforge. which won't take as long as it took to write the function. promise. :-/ ) the function is called 'ebib-start-on-entry'. it takes one argument, the entry key of the entry you want selected. note that this entry has to be in the last database that is preloaded through the customisation option "Ebib Preload Bib Files", or, if Ebib is already running in the background, it has to be in the current database. if 'ebib-start-on-entry' doesn't find the entry key, it simply acts as if you called 'ebib'. you can call 'ebib-start-on-entry' from a function with (ebib-start-on-entry "Jones1998") or you can call it interactively with `M-x ebib-start-on-entry'. in that case, you'll be prompted to supply the entry you want selected. i know it's pretty late, but hopefully the function is still helpful. :-) best, joost On Thu, Jun 03, 2010 at 05:43:09PM -0400, Ali Tofigh wrote: > hi, > > i'm not knowledgeable about elisp. in the current ebib implementation, > is it possible to write an elisp function, that takes a bibtex entry > as argument, and starts ebib, opens a standard database (possible also > given as argument), and directly positions the cursor at the specified > bibtex entry in the index buffer? > > /ali > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Ebib-users mailing list > Ebi...@li... > https://lists.sourceforge.net/lists/listinfo/ebib-users -- Joost Kremers Life has its moments |