From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: non-break-space in tutorial Date: Wed, 08 Jun 2005 10:35:46 +0200 Message-ID: References: <87y8a1o9u0.fsf-monnier+emacs@gnu.org> <87ll5yqbya.fsf@jurta.org> <87mzq3r70q.fsf@jurta.org> <873bruw4nw.fsf@jurta.org> <87wtp5raj4.fsf@jurta.org> <87wtp5hapg.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118221128 9275 80.91.229.2 (8 Jun 2005 08:58:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2005 08:58:48 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 08 10:58:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfwME-0001PR-Oe for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2005 10:56:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfwSr-0003TP-TO for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2005 05:03:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dfw5j-0002Uk-9x for emacs-devel@gnu.org; Wed, 08 Jun 2005 04:39:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dfw5W-0002U8-4G for emacs-devel@gnu.org; Wed, 08 Jun 2005 04:39:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dfw5O-0002Td-6D for emacs-devel@gnu.org; Wed, 08 Jun 2005 04:38:57 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dfw5l-0004XF-QG; Wed, 08 Jun 2005 04:39:17 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 9A23447FE3B; Wed, 8 Jun 2005 10:35:22 +0200 (CEST) Original-To: snogglethorpe@gmail.com In-Reply-To: (Miles Bader's message of "Wed, 8 Jun 2005 11:37:37 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38302 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 Here is a generic approach (similar to using a display table, but without the overhead): (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 -- Kim F. Storm http://www.cua.dk