Gnus development mailing list
 help / color / mirror / Atom feed
From: michael@cadilhac.name (Michaël Cadilhac)
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: non-break space
Date: Tue, 15 May 2007 13:07:36 +0200	[thread overview]
Message-ID: <87bqgm2vlz.fsf@lrde.org> (raw)
In-Reply-To: <b4mmz06z7gn.fsf_-_@jpl.org> (Katsumi Yamaoka's message of "Tue\, 15 May 2007 19\:50\:32 +0900")

[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]

Katsumi Yamaoka <yamaoka@jpl.org> writes:

>>>>>> In <v9mz09qckf.fsf@marauder.physik.uni-ulm.de>
>>>>>>	Reiner Steib wrote:
>
>> ,----[ gnus-art.el -> gnus-article-mode ]
>>|   ;; Prevent Emacs 22 from displaying non-break space with `nobreak-space'
>>|   ;; face.
>>|   (set (make-local-variable 'nobreak-char-display) nil)
>> `----
>
> Is it still necessary to prevent it from being displayed?
> Before it was introduced, the non-break space seems to have been
> displayed as `\ '.  But now it looks like `_' by default.  I feel
> it looks better than a box.

IMHO, nbsp are of a great help when /writing/ text, but it's just
distracting when you are only /reading/ them. And just FYI, I use the
following for writing nbsp (and I stopped using
`fill-french-nobreak-p'):

   (defun self-insert-possibly-nbsp (&optional n)
     "Like `self-insert-command', but add a nbsp before if needed."
     (interactive "p")
     (when (and (stringp current-input-method)
                (string-match "french" current-input-method)
                (memq (char-before) '(?\s ?\t ?\n)))
       (delete-char -1)
       (insert "\240")) ;; Non-breakable space.
     (self-insert-command n))

   (global-set-key "?" 'self-insert-possibly-nbsp)
   (global-set-key "!" 'self-insert-possibly-nbsp)
   (global-set-key ":" 'self-insert-possibly-nbsp)
   (global-set-key ";" 'self-insert-possibly-nbsp)

-- 
 |   Michaël `Micha' Cadilhac       |  ... KVim is cited in the talk.        |
 |   http://michael.cadilhac.name   |   "I can't tell if I am more sorry     |
 |   JID/MSN:                       |        for vim or for KDE."            |
 `----  michael.cadilhac@gmail.com  |          -- RMS                   -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2007-05-15 11:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09  1:47 Bug in copying Leo
2007-05-13  9:48 ` Reiner Steib
2007-05-15 10:50   ` non-break space (was Re: Bug in copying) Katsumi Yamaoka
2007-05-15 11:07     ` Michaël Cadilhac [this message]
2007-05-15 16:00     ` non-break space Reiner Steib
2007-05-15 23:31       ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bqgm2vlz.fsf@lrde.org \
    --to=michael@cadilhac.name \
    --cc=ding@gnus.org \
    --cc=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).