emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-bibtex.el --- convert between Org headings and bibte


From: Matt Lundin
Subject: Re: [O] [PATCH] org-bibtex.el --- convert between Org headings and bibtex entries
Date: Sat, 23 Apr 2011 18:46:34 -0400
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

"Eric Schulte" <address@hidden> writes:

>> 2. In addition, since the symbols in org-bibtex-types are keywords, the
>>    completions are in the form ":article", ":book", etc. Might I ask why
>>    everything is org-bibtex-type is a keyword? Could we use strings or
>>    plain symbols instead? (Note: I haven't read the code carefully
>>    enough to see if there is a reason.)
>
> I tend to prefer keywords for items which are primarily used as keys
> (e.g., for alist lookup w/assoc), I like that keywords are only interned
> once and are clearly not variables or functions, however you're right
> that it may add some extra complexity to this code.
>
> I've changed the code which prompts for fields so that it now strips the
> leading ":" from the keyword names, leading to nicer prompts.
>

Thanks for the fixes!

My chief interest in using strings instead of keywords is to make it
easier to generate the value of bibtex-entry-field-alist from
org-bibtex-types and org-bibtex-fields. But if I'm already going to go
the trouble of rearranging the lists, changing the keywords to strings
shouldn't be too much trouble. :)

Best,
Matt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]