From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [PATCH] org-bibtex.el --- convert between Org headings and bibtex entries Date: Sat, 23 Apr 2011 18:46:34 -0400 Message-ID: <87liz0d1rp.fsf@fastmail.fm> References: <87y6357q81.fsf@gmail.com> <87liz5aztx.fsf@fastmail.fm> <878vv22xgz.fsf_-_@gmail.com> <87r58uz3ux.fsf@fastmail.fm> <87r58tdeaf.fsf@fastmail.fm> <878vv112ph.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDlb4-0005Lm-R2 for emacs-orgmode@gnu.org; Sat, 23 Apr 2011 18:46:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDlb3-0006Uv-Pv for emacs-orgmode@gnu.org; Sat, 23 Apr 2011 18:46:38 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:38482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDlb3-0006Un-NV for emacs-orgmode@gnu.org; Sat, 23 Apr 2011 18:46:37 -0400 In-Reply-To: <878vv112ph.fsf@gmail.com> (Eric Schulte's message of "Sat, 23 Apr 2011 08:07:06 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode "Eric Schulte" 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