From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Text emphasize with fill-paragraph ? Date: Tue, 25 Feb 2014 10:49:41 -0500 Message-ID: <87bnxvnqei.fsf@alphaville.bos.redhat.com> References: <8738j7gtlj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIKGj-0000Op-IM for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 10:50:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIKGe-0006SS-7A for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 10:50:05 -0500 Received: from plane.gmane.org ([80.91.229.3]:50156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIKGe-0006SL-02 for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 10:50:00 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WIKGb-000676-Hz for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 16:49:57 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Feb 2014 16:49:57 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Feb 2014 16:49:57 +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 Martin Leduc writes: > Hi, > to be more specific, I can emphasize a maximum of two lines within a filled paragraph of any length. > > Thanks, now I can reproduce, at least... ;) > If you want more, you need to customize org-emphasis=regexp-components, in particular the maximum number of newlines allowed. The doc says: ,---- | 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. `---- Also check Oleh's method of customizing this variable: it's much less error prone than doing it by hand. See http://thread.gmane.org/gmane.emacs.orgmode/82571/focus=82669 >> From: lexi.baier@gmail.com >> To: mart_00@hotmail.com >> CC: emacs-orgmode@gnu.org >> Subject: Re: Text emphasize with fill-paragraph ? >> Date: Tue, 25 Feb 2014 15:22:32 +0100 >> >> I remember a post from some time ago, where someone reported that this >> kind of formatting only worked for filled paragraphs under 3 lines >> long. Sadly I cannot find said post now. Is this the same for you? >> >> I don't know if this a bug or not. >> >> On 2014-02-21 16:31 Martin Leduc wrote: >> > Hi all, >> > >> > I don't know whether it is a bug, an unimplemented feature or simply >> > that I use it wrongly, but I can't emphasize text (with // ** or _ _) >> > within a filled paragraph. Moreover, sometime I get it to work but I'm >> > not sure how to reproduce. >> > Nick