emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* nbsp as blank
@ 2021-10-19 23:54 Alexandre Garreau
  2021-10-20  0:10 ` Mike Gauland
  2021-10-20  1:42 ` Samuel Wales
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandre Garreau @ 2021-10-19 23:54 UTC (permalink / raw)
  To: Org-mode Org-Mode

Hello,

nbsp (non-breaking space, #xA0) is not recognized as blank in org-mode, 
such that “*text* :” (it’s a nbsp here) doesn’t recognize as emphasized…

I recall a variable containing such characters but can’t find it again, 
does anyone know? the manual seems large and that looks non-obvious to find 
quickly…


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nbsp as blank
  2021-10-19 23:54 nbsp as blank Alexandre Garreau
@ 2021-10-20  0:10 ` Mike Gauland
  2021-10-20  1:42 ` Samuel Wales
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Gauland @ 2021-10-20  0:10 UTC (permalink / raw)
  To: emacs-orgmode

On 20/10/21 12:54 pm, Alexandre Garreau wrote:
> Hello,
>
> nbsp (non-breaking space, #xA0) is not recognized as blank in org-mode,
> such that “*text* :” (it’s a nbsp here) doesn’t recognize as emphasized…
>
> I recall a variable containing such characters but can’t find it again,
> does anyone know? the manual seems large and that looks non-obvious to find
> quickly…
>
I've been using "INVISIBLE SEPARATOR", and invoke:

   (modify-syntax-entry ?⁣ " ")

(there's a invisible separator after the "?"), which tells emacs to 
consider that character to be whitespace.

I know there is a (possibly more than one) variable defining regular 
what can appear immediately before and after emphasis and other markers, 
but I've never puzzled out how to get them to include invisible characters.

I generally use this technique for combining markup, or making a 
marked-up name plural (e.g., ~object name~s).



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nbsp as blank
  2021-10-19 23:54 nbsp as blank Alexandre Garreau
  2021-10-20  0:10 ` Mike Gauland
@ 2021-10-20  1:42 ` Samuel Wales
  2021-10-20  8:08   ` Alexandre Garreau
  1 sibling, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2021-10-20  1:42 UTC (permalink / raw)
  To: Alexandre Garreau; +Cc: Org-mode Org-Mode

there exists org-emphasis-regexp-components, fwiw.

On 10/19/21, Alexandre Garreau <galex-713@galex-713.eu> wrote:
> Hello,
>
> nbsp (non-breaking space, #xA0) is not recognized as blank in org-mode,
> such that “*text* :” (it’s a nbsp here) doesn’t recognize as emphasized…
>
> I recall a variable containing such characters but can’t find it again,
> does anyone know? the manual seems large and that looks non-obvious to find
>
> quickly…
>
>


-- 
The Kafka Pandemic

Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nbsp as blank
  2021-10-20  1:42 ` Samuel Wales
@ 2021-10-20  8:08   ` Alexandre Garreau
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Garreau @ 2021-10-20  8:08 UTC (permalink / raw)
  To: emacs-orgmode

Le mercredi 20 octobre 2021, 03:42:08 CEST Samuel Wales a écrit :
> there exists org-emphasis-regexp-components, fwiw.

oh thanks that’s it!

but adding “ ” to its two first elements doesn’t seem to work… and it’s not 
anymore a defcustom… does it make it lexically binded so that I have to 
redefine it somewhere else than at prompt or in init.el?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-20  8:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 23:54 nbsp as blank Alexandre Garreau
2021-10-20  0:10 ` Mike Gauland
2021-10-20  1:42 ` Samuel Wales
2021-10-20  8:08   ` Alexandre Garreau

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).