Gnus development mailing list
 help / color / mirror / Atom feed
* bug: emphasization not performed at end-of-line
@ 2009-07-10 18:30 Karl Kleinpaste
  2009-07-10 18:46 ` Adam Sjøgren
  0 siblings, 1 reply; 6+ messages in thread
From: Karl Kleinpaste @ 2009-07-10 18:30 UTC (permalink / raw)
  To: ding

The difference between these two lines...
*test*
*test* here
...is that the former has emphasization at line's end, and the latter
does not.  Emphasization of the former does not occur, but it does occur
for the latter.  It seems to me that this worked long ago, but has not
worked properly for a long time -- I can't even guess when it stopped
working, but it was probably over a year ago.

This is driven by gnus-emphasize-whitespace-regexp (defvar'd in
gnus-art.el) and gnus-put-overlay-excluding-newlines and
gnus-put-text-property-excluding-newlines (defun'd in gnus-util.el).
Any ideas for what has gone wrong with this?



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

* Re: bug: emphasization not performed at end-of-line
  2009-07-10 18:30 bug: emphasization not performed at end-of-line Karl Kleinpaste
@ 2009-07-10 18:46 ` Adam Sjøgren
  2009-07-10 18:56   ` Karl Kleinpaste
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Sjøgren @ 2009-07-10 18:46 UTC (permalink / raw)
  To: ding

On Fri, 10 Jul 2009 14:30:02 -0400, Karl wrote:

> The difference between these two lines...
> *test*
> *test* here
> ...is that the former has emphasization at line's end, and the latter
> does not.  Emphasization of the former does not occur, but it does occur
> for the latter.

It works for me: "*test*" in both lines are emphasized (bold) when I
read your article: http://koldfront.dk/misc/gnus-emph.png

I am using No Gnus (from cvs, updated 5 minutes ago) in XEmacs 21.4
(patch 22) "Instant Classic".

> It seems to me that this worked long ago, but has not worked properly
> for a long time -- I can't even guess when it stopped working, but it
> was probably over a year ago.

Did you change your configuration then, or could it be an XEmacs
21.5-thing?


  Best regards,

    Adam

-- 
 "Money always takes the place of life"                       Adam Sjøgren
                                                         asjo@koldfront.dk




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

* Re: bug: emphasization not performed at end-of-line
  2009-07-10 18:46 ` Adam Sjøgren
@ 2009-07-10 18:56   ` Karl Kleinpaste
  2009-07-13 11:53     ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Karl Kleinpaste @ 2009-07-10 18:56 UTC (permalink / raw)
  To: ding

asjo@koldfront.dk (Adam Sjøgren) writes:
> It works for me: "*test*" in both lines are emphasized (bold) when I
> read your article: http://koldfront.dk/misc/gnus-emph.png
...
> Did you change your configuration then, or could it be an XEmacs
> 21.5-thing?

Very interesting.  I am using...
- No Gnus v0.11, "cvs up" as of a few minutes ago, without any
customization of (e.g.) gnus-emphasize-whitespace-regexp
...and...
- XEmacs 21.5 (beta28) "fuki" [Lucid] (i386-redhat-linux, Mule) of Sun Mar  8 2009 on x86-5.fedora.phx.redhat.com
  (...as provided in Fedora11.)

Since it works for you, it would seem that this is an XEmacs glitch.
Not good.



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

* Re: bug: emphasization not performed at end-of-line
  2009-07-10 18:56   ` Karl Kleinpaste
@ 2009-07-13 11:53     ` Katsumi Yamaoka
  2009-07-13 14:57       ` Karl Kleinpaste
  2009-07-15  1:46       ` Mike Kupfer
  0 siblings, 2 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2009-07-13 11:53 UTC (permalink / raw)
  To: ding

>>>>> Karl Kleinpaste wrote:
> asjo@koldfront.dk (Adam Sjøgren) writes:
>> It works for me: "*test*" in both lines are emphasized (bold) when I
>> read your article: http://koldfront.dk/misc/gnus-emph.png
> ...
>> Did you change your configuration then, or could it be an XEmacs
>> 21.5-thing?

> Very interesting.  I am using...
> - No Gnus v0.11, "cvs up" as of a few minutes ago, without any
> customization of (e.g.) gnus-emphasize-whitespace-regexp
> ...and...
> - XEmacs 21.5 (beta28) "fuki" [Lucid] (i386-redhat-linux, Mule) of Sun Mar  8 2009 on x86-5.fedora.phx.redhat.com
>   (...as provided in Fedora11.)

> Since it works for you, it would seem that this is an XEmacs glitch.
> Not good.

The problem is due to the difference of the character syntax of
the newline character between XEmacs 21.5 and the others.

This form

(char-syntax ?\n text-mode-syntax-table)

returns `?\.' in XEmacs 21.5 whereas `? ' in XEmacs 21.4 and
FSFmacs.  I don't know why.

Try adding the following snippet to your ~/.gnus.el file:

(eval-after-load "gnus-art"
  '(modify-syntax-entry ?\n " " gnus-article-mode-syntax-table))

`gnus-article-mode-syntax-table' is a syntax table that is made
from `text-mode-syntax-table'.



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

* Re: bug: emphasization not performed at end-of-line
  2009-07-13 11:53     ` Katsumi Yamaoka
@ 2009-07-13 14:57       ` Karl Kleinpaste
  2009-07-15  1:46       ` Mike Kupfer
  1 sibling, 0 replies; 6+ messages in thread
From: Karl Kleinpaste @ 2009-07-13 14:57 UTC (permalink / raw)
  To: ding

Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Try adding the following snippet to your ~/.gnus.el file:
> (eval-after-load "gnus-art"
>   '(modify-syntax-entry ?\n " " gnus-article-mode-syntax-table))

Thank you very much, that fixed it.



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

* Re: bug: emphasization not performed at end-of-line
  2009-07-13 11:53     ` Katsumi Yamaoka
  2009-07-13 14:57       ` Karl Kleinpaste
@ 2009-07-15  1:46       ` Mike Kupfer
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Kupfer @ 2009-07-15  1:46 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: ding

>>>>> "Katsumi" == Katsumi Yamaoka <yamaoka@jpl.org> writes:

Katsumi> The problem is due to the difference of the character syntax of
Katsumi> the newline character between XEmacs 21.5 and the others.

Katsumi> This form

Katsumi> (char-syntax ?\n text-mode-syntax-table)

Katsumi> returns `?\.' in XEmacs 21.5 whereas `? ' in XEmacs 21.4 and
Katsumi> FSFmacs.

Thanks for isolating it to this issue.  That helped a lot.  This has
now been fixed in the Mercurial repo for XEmacs.  (And thanks to Karl
for reporting the issue in the first place.)

cheers,
mike



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

end of thread, other threads:[~2009-07-15  1:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10 18:30 bug: emphasization not performed at end-of-line Karl Kleinpaste
2009-07-10 18:46 ` Adam Sjøgren
2009-07-10 18:56   ` Karl Kleinpaste
2009-07-13 11:53     ` Katsumi Yamaoka
2009-07-13 14:57       ` Karl Kleinpaste
2009-07-15  1:46       ` Mike Kupfer

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).