From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: blue underscores Date: Wed, 19 Dec 2007 12:22:39 +0100 Message-ID: <200712191222.42320.andreas.roehler@online.de> References: <200712191009.14362.andreas.roehler@online.de> <088097DA-030D-4BCD-A5ED-FEBA79B711B7@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1198063322 11000 80.91.229.12 (19 Dec 2007 11:22:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 11:22:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 12:22:14 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4x09-00046i-QQ for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 12:22:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4wzq-0004x4-7E for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 06:21:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4wza-0004wi-7Z for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 06:21:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4wzV-0004wQ-O7 for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 06:21:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4wzV-0004wF-ED for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 06:21:33 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4wzU-0003zv-Ty for help-gnu-emacs@gnu.org; Wed, 19 Dec 2007 06:21:33 -0500 Original-Received: from noname (p54BEA093.dip0.t-ipconnect.de [84.190.160.147]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1J4wzT4ATt-0005dp; Wed, 19 Dec 2007 12:21:32 +0100 User-Agent: KMail/1.9.5 In-Reply-To: <088097DA-030D-4BCD-A5ED-FEBA79B711B7@Web.DE> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX18V4GBEF7TNyqSQ4VU4K/W571g1O6/DhhaVjCM f+SbqtIi5B2heUdB2/gTZYR6c0jlMi+eF+A404nWnMKPYVJLEa IJhxHXgbhkkh348N9p4vw== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50214 Archived-At: Am Mittwoch, 19. Dezember 2007 11:24 schrieb Peter Dyballa: > Am 19.12.2007 um 10:09 schrieb Andreas R=F6hler: > > Any ideas what the cause may be? > > NO-BREAK SPACE (U+00A0) > > Position the cursor on such a character and type: C-u C-x =3D > > Probably the environment from which you copy tries to preserve some > of its beloved features ... (I get brown ones) > > -- > Greetings > > Pete > Thanks, I see, according to=20 hardcoded face: nobreak-space Notwithstanding, wouldn't it be good, to have a mode-hook which weeps them out? Customized `delete-nobreak-spaces' as text-mode-hook displays correctly after reload/revert. (defun delete-nobreak-spaces () "Delete nobreak space, char 2208, #o4240, #x8a0 from buffer or region. " (interactive "*") (let ((beg (cond ((region-active-p) (region-beginning)) (t (point-min)))) (end (cond ((region-active-p) (region-end)) (t (point-max))))) (save-excursion (goto-char beg) (while (re-search-forward (char-to-string 2208) end t 1) (replace-match ""))))) (defun region-active-p () "Provide mark-active transient-mark-mode (not (eq (region-beginning) (region-end))))" (if (featurep 'xemacs) 'region-active-p (and mark-active transient-mark-mode (not (eq (region-beginning) (region-end)))))) Any idea how to realise that on the fly? Andreas R=F6hler