From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: verbatim and apostrophes Date: Thu, 13 Feb 2014 07:40:25 -0500 Message-ID: <87zjlvfao6.fsf@gmail.com> References: <874n43gpu3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDvaw-0007y4-Dt for emacs-orgmode@gnu.org; Thu, 13 Feb 2014 07:40:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDvar-0004sj-0E for emacs-orgmode@gnu.org; Thu, 13 Feb 2014 07:40:46 -0500 Received: from plane.gmane.org ([80.91.229.3]:34565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDvaq-0004sR-74 for emacs-orgmode@gnu.org; Thu, 13 Feb 2014 07:40:40 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WDvao-00018X-J6 for emacs-orgmode@gnu.org; Thu, 13 Feb 2014 13:40:38 +0100 Received: from pool-98-110-175-184.bstnma.fios.verizon.net ([98.110.175.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Feb 2014 13:40:38 +0100 Received: from ndokos by pool-98-110-175-184.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Feb 2014 13:40:38 +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 Nick Dokos writes: > Alan Schmitt writes: > >> Hello Samuel, >> >> Samuel Wales writes: >> >>> org-emphasis-regexp-components >> >> Thank you for the suggestion. I'm trying to make sense of it: >> >> org-emphasis-regexp-components is a variable defined in `org.el'. >> Its value is (" ('\"{" "- .,:!?;'\")}\\" " >> ,\"'" "." 1) >> >> Documentation: >> Components used to build the regular expression for emphasis. >> This is a list with five entries. Terminology: In an emphasis string >> like " *strong word* ", we call the initial space PREMATCH, the final >> space POSTMATCH, the stars MARKERS, "s" and "d" are BORDER characters >> and "trong wor" is the body. The different components in this variable >> specify what is allowed/forbidden in each part: >> >> pre Chars allowed as prematch. Beginning of line will be allowed too. >> post Chars allowed as postmatch. End of line will be allowed too. >> border The chars *forbidden* as border characters. >> body-regexp A regexp like "." to match a body character. Don't use >> non-shy groups here, and don't allow newline here. >> newline The maximum number of newlines allowed in an emphasis exp. >> >> You need to reload Org or to restart Emacs after customizing this. >> >> I see that "body-regexp" is "." so the problem is not from there. I also >> see that "'" is forbidden as a border character, which should be fine in >> my case as I'm using "~". So is the problem that "'" is both in prematch >> and postmatch? But in my case I use it as a body character. >> >> So I'm afraid I don't understand why the "'" in ~'a ref~ is not accepted >> as a body character, and what I should do to make sure it is. >> > > See if > > http://article.gmane.org/gmane.emacs.orgmode/73036/match=org+emphasis+regexp+components > > can help make some sense out of the line noise (although it was > triggered by a different question). I believe the problem here is > the BORDER regexp (the one that goes > > " > ,\"'" > > above), not the BODY one: it forbids newlines, commas, double > and single quotes. Try deleting the single quote from it. Sorry - I need coffee. I read what you wrote and promptly forgot all of it. So ignore most of what I wrote. However, the part about the BORDER regexp is correct I believe: in ~'a ref~, the ~ are the MARKERS; ' and f are the BORDER and "a re" is the BODY. -- Nick