emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Text emphasize with fill-paragraph ?


From: Nick Dokos
Subject: Re: [O] Text emphasize with fill-paragraph ?
Date: Tue, 25 Feb 2014 10:49:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Martin Leduc <address@hidden> 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: address@hidden
>> To: address@hidden
>> CC: address@hidden
>> 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




reply via email to

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