emacs-devel
[Top][All Lists]
Advanced

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

Re: non-break-space in tutorial


From: Stefan Monnier
Subject: Re: non-break-space in tutorial
Date: Wed, 08 Jun 2005 12:05:06 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> I'm sure there is no single way to please everybody:

> (setq show-nobreak-space 'escape) => the Miles way
> (setq show-nobreak-space t)       => the Juri way

The display-table allows you to do just that, even more flexibly.

> Here is a generic approach (similar to using a display table,
> but without the overhead):

What overhead?  Just for the record, could all you people check the value of
`standard-display-table' in your current Emacs session?  My bet is that most
of you have it non-nil already.

> (setq show-nobreak-space STRING)  => show STRING for NBSP.

> Value of STRING can cover both Miles and Juri style:

> (propertize "\\ " 'face 'escape) => the Miles way
> (propertize " " 'face 'underline) => the Juri way

There's still the problem that we currently only handle latin-1 NBSP but not
latin-2 NBSP, latin-3 NBSP, ...


        Stefan




reply via email to

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