unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1727: 23.0.60; end-of-sentence and non-breaking space
@ 2009-01-01  3:47 Chong Yidong
  0 siblings, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2009-01-01  3:47 UTC (permalink / raw)
  To: emacs-devel; +Cc: 1726, rms, 1727

From bug#1726 and bug#1727:

> forward-sentence does not treat non-breaking space as a space for
> purposes of sentence ends.
...
> When I type C-x = at a non-breaking space, it tells me that it
> has code 160, hex a0.  But when I execute (insert "\xa0"),
> it inserts something that displays as `\240' and for which C-x =
> displays this:
>
>    Char:   (4194208, #o17777640, #x3fffa0, raw-byte) point=198 of 211
>    (93%) column=5
>
> Is that a bug?  It seems quite confusing to me.

ISTR that there was an extended discussion about classifying
non-breaking spaces on this list a while back.  But I can't find it now.
Does anyone remember the details?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#1727: 23.0.60; end-of-sentence and non-breaking space
       [not found] <87y6xv7kmc.fsf@cyd.mit.edu>
@ 2009-01-02  1:25 ` Richard M Stallman
  2009-01-02  2:38 ` Drew Adams
  2009-01-02  4:11 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Richard M Stallman @ 2009-01-02  1:25 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 1726, 1727, emacs-devel

    > When I type C-x = at a non-breaking space, it tells me that it
    > has code 160, hex a0.  But when I execute (insert "\xa0"),
    > it inserts something that displays as `\240' and for which C-x =
    > displays this:

    >    Char:   (4194208, #o17777640, #x3fffa0, raw-byte) point=198 of 211
    >    (93%) column=5
    >
    > Is that a bug?  It seems quite confusing to me.

    ISTR that there was an extended discussion about classifying
    non-breaking spaces on this list a while back.  But I can't find it now.
    Does anyone remember the details?

I am not sure we are talking about the same question.
The issue I am raising is not one of classifying it,
it is that these two different character codes get used
and I don't see an explanation of what's going on.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#1727: 23.0.60; end-of-sentence and non-breaking space
       [not found] <87y6xv7kmc.fsf@cyd.mit.edu>
  2009-01-02  1:25 ` Richard M Stallman
@ 2009-01-02  2:38 ` Drew Adams
  2009-01-02  4:11 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2009-01-02  2:38 UTC (permalink / raw)
  To: 'Chong Yidong', 1727, emacs-devel; +Cc: 1726, rms

> ISTR that there was an extended discussion about classifying
> non-breaking spaces on this list a while back.  But I can't 
> find it now. Does anyone remember the details?

Dunno if this is what you were thinking of, but there was this discussion about
treating (classifying) nonbreaking space as whitespace:

http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg01089.html







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#1727: 23.0.60; end-of-sentence and non-breaking space
       [not found] <87y6xv7kmc.fsf@cyd.mit.edu>
  2009-01-02  1:25 ` Richard M Stallman
  2009-01-02  2:38 ` Drew Adams
@ 2009-01-02  4:11 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2009-01-02  4:11 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 1726, 1727, rms, emacs-devel

>> has code 160, hex a0.  But when I execute (insert "\xa0"),
>> it inserts something that displays as `\240' and for which C-x =
>> displays this:
>> 
>> Char:   (4194208, #o17777640, #x3fffa0, raw-byte) point=198 of 211
>> (93%) column=5
>> 
>> Is that a bug?  It seems quite confusing to me.

This raw-byte char is what used to be called an eight-bit-control (or
eight-bit-graphic depending on the actual value) char.

I.e. "\xa0" is treated as a string that contains the \xa0 byte (i.e. an
eight-bit-* (aka raw-byte) char) rather than the \xa0 char (a latin-1
non-breaking space).


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-02  4:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01  3:47 bug#1727: 23.0.60; end-of-sentence and non-breaking space Chong Yidong
     [not found] <87y6xv7kmc.fsf@cyd.mit.edu>
2009-01-02  1:25 ` Richard M Stallman
2009-01-02  2:38 ` Drew Adams
2009-01-02  4:11 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).