Gnus development mailing list
 help / color / mirror / Atom feed
* Highlighting of different citation levels in message-mode
@ 2006-12-28 14:15 Reiner Steib
  2006-12-29 21:45 ` Norbert Koch
  0 siblings, 1 reply; 9+ messages in thread
From: Reiner Steib @ 2006-12-28 14:15 UTC (permalink / raw)


Hi,

I've added code from Oliver Scholz to highlight different citation
levels in message-mode, see `gnus-message-highlight-citation' in the
trunk.

After using it for a while, I'm not sure if we should let
`gnus-message-highlight-citation' default to t (in Emacs).  Sometimes
the headers weren't fontified correctly for me.  If it's on by
default, more people will find it and fix bugs.  But if there are too
many problems, we should disable it by default.

I'd like to hear other opinions on this: Should this feature be on or
off by default?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



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

* Re: Highlighting of different citation levels in message-mode
  2006-12-28 14:15 Highlighting of different citation levels in message-mode Reiner Steib
@ 2006-12-29 21:45 ` Norbert Koch
  2006-12-29 22:26   ` Dave Goldberg
                     ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Norbert Koch @ 2006-12-29 21:45 UTC (permalink / raw)


* Reiner Steib <reinersteib+gmane@imap.cc>:

Hello Reiner,

> I've added code from Oliver Scholz to highlight different citation
> levels in message-mode, see `gnus-message-highlight-citation' in the
> trunk.


I'm not sure this change has caused it, but I now get a 

Debugger entered--Lisp error: (void-variable gnus-message-citation-mode)
  byte-code("..." [gnus-message-citation-mode define-minor-mode "Toggle `gnus-message-citation-mode' in current buffer.\nThis buffer local minor mode provides additional font-lock support for\nnested citations.\nWith prefix ARG, turn `gnus-message-citation-mode' on if and only if ARG is\npositive." nil "" gnus-message-add-citation-keywords gnus-message-remove-citation-keywords font-lock-fontify-buffer] 8)
  load-internal("gnus-cite" nil nil nil binary)
  load("gnus-cite" nil nil nil)
  gnus-article-highlight-citation()
  gnus-treat-article(nil 1 1)
  gnus-display-mime()
  gnus-article-prepare-display()
  gnus-article-prepare(19806 nil)
  gnus-summary-display-article(19806 nil)
  gnus-summary-select-article(nil nil pseudo)
  gnus-summary-scroll-up(1)
  call-interactively(gnus-summary-scroll-up)

when I look at a message.

Best regards,
norbert.



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

* Re: Highlighting of different citation levels in message-mode
  2006-12-29 21:45 ` Norbert Koch
@ 2006-12-29 22:26   ` Dave Goldberg
  2006-12-30 13:48     ` Reiner Steib
  2006-12-31  7:55   ` Steve Youngs
  2006-12-31 11:42   ` Reiner Steib
  2 siblings, 1 reply; 9+ messages in thread
From: Dave Goldberg @ 2006-12-29 22:26 UTC (permalink / raw)


I can confirm that this happened to me as well.  I backed out
gnus-cite.el and gnus-msg.el to the prior versions to fix it.
-- 
Dave Goldberg
david.goldberg6@verizon.net




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

* Re: Highlighting of different citation levels in message-mode
  2006-12-29 22:26   ` Dave Goldberg
@ 2006-12-30 13:48     ` Reiner Steib
  2006-12-30 18:52       ` Dave Goldberg
  0 siblings, 1 reply; 9+ messages in thread
From: Reiner Steib @ 2006-12-30 13:48 UTC (permalink / raw)


On Fri, Dec 29 2006, Dave Goldberg wrote:

> I can confirm that this happened to me as well.  I backed out
> gnus-cite.el and gnus-msg.el to the prior versions to fix it.

Especially when using a development version, it would make much more
sense to report the problem instead of silently reverting to older
revisions.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: Highlighting of different citation levels in message-mode
  2006-12-30 13:48     ` Reiner Steib
@ 2006-12-30 18:52       ` Dave Goldberg
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Goldberg @ 2006-12-30 18:52 UTC (permalink / raw)


>>>>> On Sat, 30 Dec 2006 14:48:46 +0100, Reiner Steib <reinersteib+gmane@imap.cc> said:

> On Fri, Dec 29 2006, Dave Goldberg wrote:
>> I can confirm that this happened to me as well.  I backed out
>> gnus-cite.el and gnus-msg.el to the prior versions to fix it.

> Especially when using a development version, it would make much more
> sense to report the problem instead of silently reverting to older
> revisions.

Sorry, but I was at work and did not have time to try to trouble shoot
it any further so just got myself functional, fully intending to dig
into it and file a proper bug report (and hopefully a suggested fix)
when I got home.  When I did, I found that someone had already beaten
me to the report so I just confirmed it and noted my temporary
workaround in case it helps anyone else.

-- 
Dave Goldberg
david.goldberg6@verizon.net




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

* Re: Highlighting of different citation levels in message-mode
  2006-12-29 21:45 ` Norbert Koch
  2006-12-29 22:26   ` Dave Goldberg
@ 2006-12-31  7:55   ` Steve Youngs
  2006-12-31 11:38     ` Norbert Koch
  2006-12-31 11:42   ` Reiner Steib
  2 siblings, 1 reply; 9+ messages in thread
From: Steve Youngs @ 2006-12-31  7:55 UTC (permalink / raw)


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

* Norbert Koch <viteno@xemacs.org> writes:

* Reiner Steib <reinersteib+gmane@imap.cc>:
  > Hello Reiner,

  >> I've added code from Oliver Scholz to highlight different citation
  >> levels in message-mode, see `gnus-message-highlight-citation' in the
  >> trunk.


  > I'm not sure this change has caused it, but I now get a 

  > Debugger entered--Lisp error: (void-variable gnus-message-citation-mode)

This should be fixed in CVS now.  Though I don't think
`gnus-message-citation-mode' will actually work in (S)XEmacs yet, but
at least it won't error anymore. :-)

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|       SXEmacs - The only _______ you'll ever need.       |
|         Fill in the blank, yes, it's THAT good!          |
|------------------------------------<steve@sxemacs.org>---|

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

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

* Re: Highlighting of different citation levels in message-mode
  2006-12-31  7:55   ` Steve Youngs
@ 2006-12-31 11:38     ` Norbert Koch
  2006-12-31 12:36       ` Steve Youngs
  0 siblings, 1 reply; 9+ messages in thread
From: Norbert Koch @ 2006-12-31 11:38 UTC (permalink / raw)


* Steve Youngs <steve@sxemacs.org>:

Hi Steve!

> This should be fixed in CVS now.  Though I don't think
> `gnus-message-citation-mode' will actually work in (S)XEmacs yet, but
> at least it won't error anymore. :-)

Erm, I still get the same error message ... has your patch really made
it?

Thanks,
norbert.



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

* Re: Highlighting of different citation levels in message-mode
  2006-12-29 21:45 ` Norbert Koch
  2006-12-29 22:26   ` Dave Goldberg
  2006-12-31  7:55   ` Steve Youngs
@ 2006-12-31 11:42   ` Reiner Steib
  2 siblings, 0 replies; 9+ messages in thread
From: Reiner Steib @ 2006-12-31 11:42 UTC (permalink / raw)


[ Resent ]

On Fri, Dec 29 2006, Norbert Koch wrote:

> * Reiner Steib <reinersteib+gmane@imap.cc>:
>> I've added code from Oliver Scholz to highlight different citation
>> levels in message-mode, see `gnus-message-highlight-citation' in the
>> trunk.
>
> I'm not sure this change has caused it, but I now get a 
>
> Debugger entered--Lisp error: (void-variable gnus-message-citation-mode)
>   byte-code("..." [gnus-message-citation-mode define-minor-mode
>   "Toggle `gnus-message-citation-mode' in current buffer. [...]
>   font-lock-fontify-buffer] 8)
>   load-internal("gnus-cite" nil nil nil binary)
>   load("gnus-cite" nil nil nil)
>   gnus-article-highlight-citation()
[...]
> when I look at a message.

It's surely this change that caused the problem.  Sorry for the
inconvenience.

I don't understand why, but `define-minor-mode' doesn't seem to work
as documented in XEmacs (21.4.15/Mule from SUSE 9.2) when
byte-compiling the file.  (Byte-compiling and loading a test file even
crashed XEmacs).

As a quick work-around, I'll wrap the code in (unless (featurep
'xemacs) ...) since the code doesn't work in XEmacs anyhow because it
needs `font-lock-add-keywords'.  Please report back if it fixed the
problem.

Maybe some (S)XEmacs user wants to implement this for (S)XEmacs?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



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

* Re: Highlighting of different citation levels in message-mode
  2006-12-31 11:38     ` Norbert Koch
@ 2006-12-31 12:36       ` Steve Youngs
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Youngs @ 2006-12-31 12:36 UTC (permalink / raw)


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

* Norbert Koch <viteno@xemacs.org> writes:

* Steve Youngs <steve@sxemacs.org>:
  > Hi Steve!

  >> This should be fixed in CVS now.  Though I don't think
  >> `gnus-message-citation-mode' will actually work in (S)XEmacs yet, but
  >> at least it won't error anymore. :-)

  > Erm, I still get the same error message ... has your patch really made
  > it?

Hmm, that's odd.  According to CVS it is in.  Check the top of
gnus-cite.el, it should have...

,----[ gnus-cite.el ]
| (eval-when-compile
|   (when (featurep 'xemacs)
|     (require 'easy-mmode))) ; for `define-minor-mode'
`----


-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|       SXEmacs - The only _______ you'll ever need.       |
|         Fill in the blank, yes, it's THAT good!          |
|------------------------------------<steve@sxemacs.org>---|

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

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

end of thread, other threads:[~2006-12-31 12:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-28 14:15 Highlighting of different citation levels in message-mode Reiner Steib
2006-12-29 21:45 ` Norbert Koch
2006-12-29 22:26   ` Dave Goldberg
2006-12-30 13:48     ` Reiner Steib
2006-12-30 18:52       ` Dave Goldberg
2006-12-31  7:55   ` Steve Youngs
2006-12-31 11:38     ` Norbert Koch
2006-12-31 12:36       ` Steve Youngs
2006-12-31 11:42   ` Reiner Steib

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