From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: Citation syntax: Underscore MUST(?) be allowed in cite keys? Date: Wed, 04 Mar 2015 21:00:34 -0800 Message-ID: <87pp8o6nt9.fsf@berkeley.edu> References: <874mq0399a.fsf@gmx.us> <54F75222.8030805@gmail.com> <87pp8o1t9f.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTNuZ-0004hd-68 for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 00:01:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTNuW-0005dS-1J for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 00:01:27 -0500 Received: from plane.gmane.org ([80.91.229.3]:57967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTNuV-0005d2-Qy for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 00:01:23 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YTNuS-0002uI-Ro for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 06:01:21 +0100 Received: from c-67-169-117-151.hsd1.ca.comcast.net ([67.169.117.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Mar 2015 06:01:20 +0100 Received: from richard.lawrence by c-67-169-117-151.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Mar 2015 06:01:20 +0100 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: emacs-orgmode@gnu.org Hi Rasmus and all, Rasmus writes: > Vaidheeswaran C writes: > >> I am complaining about how org-element.el behaves. > Oh, you are right. _ is only allowed as the first character, as you > probably saw. See http://permalink.gmane.org/gmane.emacs.orgmode/95609. > I would tend to agree that this is problematic, but _ is itself > problematic since it's the subscription character... From > http://permalink.gmane.org/gmane.emacs.orgmode/95631 I gather that key > support is modeled after Pandoc, but AFAIK Pandoc *does* support _ as part > of the key cf. http://pandoc.org/README.html#citations. Yep, that's my bad, sorry. Pandoc says: "The citation key must begin with a letter or _, and may contain alphanumerics, _, and internal punctuation characters (:.#$%&-+?<>~/)." I dropped the second underscore when I was writing the grammar. Thanks, Vaisheeswaran, for noticing. Nicolas, IMO we should update the parser to allow underscores in keys (including at the final character, I guess). Best, Richard