From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: blank-mode.el Date: Wed, 31 Oct 2007 18:11:34 +0200 Organization: JURTA Message-ID: <873avrw9hj.fsf@jurta.org> References: <47251573.90509@ig.com.br> <87k5p6me9s.fsf@kfs-lx.testafd.dk> <4725FE3F.9020000@ig.com.br> <87ejfczrru.fsf@jurta.org> <4728019D.6040903@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193849889 22501 80.91.229.12 (31 Oct 2007 16:58:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 16:58:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vinicius Jose Latorre Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 17:58:10 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1InGtO-00036U-BR for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 17:58:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InGtE-0000LK-N4 for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 12:58:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InGtA-0000Jn-7f for emacs-devel@gnu.org; Wed, 31 Oct 2007 12:57:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InGt6-0000Gq-Ig for emacs-devel@gnu.org; Wed, 31 Oct 2007 12:57:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InGt6-0000Gm-CP for emacs-devel@gnu.org; Wed, 31 Oct 2007 12:57:52 -0400 Original-Received: from smtp-out.neti.ee ([194.126.126.39]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1InGJH-0007G2-Uw for emacs-devel@gnu.org; Wed, 31 Oct 2007 12:20:54 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by MXR-13.estpak.ee (Postfix) with ESMTP id B6A62A551; Wed, 31 Oct 2007 18:20:21 +0200 (EET) X-Virus-Scanned: amavisd-new at !change-mydomain-variable!.example.com Original-Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (MXR-1.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GlcZrWL6T25h; Wed, 31 Oct 2007 18:20:12 +0200 (EET) Original-Received: from Relayhost2.neti.ee (Relayhost2 [88.196.174.142]) by MXR-13.estpak.ee (Postfix) with ESMTP id 5B7B5A49E; Wed, 31 Oct 2007 18:20:12 +0200 (EET) Original-Received: from mail.estpak.ee (84-50-157-21-dsl.est.estpak.ee [84.50.157.21]) by Relayhost2.neti.ee (Postfix) with ESMTP id E4D5E1EABB5; Wed, 31 Oct 2007 18:20:12 +0200 (EET) In-Reply-To: <4728019D.6040903@ig.com.br> (Vinicius Jose Latorre's message of "Wed, 31 Oct 2007 01:16:29 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:82234 Archived-At: >> I like this package too, and I have some suggestions: since it implements >> a minor mode I suggest defining it with `define-minor-mode', and name the >> global mode `global-blank-mode'. > > Well, I'll try to use define-minor-mode in the next blank-mode version. > > Is there some convention (or consensus) about global mode name? I can't find such conventions in (info "(elisp)Major Mode Conventions") and (info "(elisp)Minor Mode Conventions"). >> Also I have a question how it interacts with nobreak-char-display. >> Does your package overwrite highlighting of nobreak space displayed >> by nobreak-char-display feature, or ignores it? > > I've made some tests and both blank-mode faces and display table are > displayed when blank-mode is on and nobreak-char-display is t. > > When blank-mode is turned off and nobreak-char-display is t, the > nobreak-char-display faces and display table are displayed. > > That is, blank-mode have precedence over nobreak-char-display but only > over hard spaces (or nobreak spaces), the soft hyphens is handled only by > nobreak-char-display. I think this is the right behavior: when blank-mode is on, it should take care of highlighting these special characters over the default mechanism of nobreak-char-display. -- Juri Linkov http://www.jurta.org/emacs/