Re: font-lock-comment-delimiter-face

2005-05-21 Thread Dan Nicolaescu
> It seems to me that would be a lot easier than adding > font-lock-comment-delimiter-face route? > > I am not entirely sure what you're proposing. > Could you be more specific? I could try it out. Your original complaint was that font-lock-comment-face that h

Re: font-lock-comment-delimiter-face

2005-05-20 Thread Richard Stallman
Introduce font-lock-comment-keywords which would basically work like font-lock-keywords, except it's applied only to comments (with the buffer narrowed to just the comment so that comment-start-skip matches correctly, without needing font-lock-comment-start-skip). This way we could

Re: font-lock-comment-delimiter-face

2005-05-19 Thread Dan Nicolaescu
console, can't we just change the face foreground for font-lock-comment-face for that situation (i.e. min-colors == 8 and background-mode == 'dark)? It seems to me that would be a lot easier than adding font-lock-comment-delimiter-face route? We could either swap the color used by font

Re: font-lock-comment-delimiter-face

2005-05-19 Thread David Kastrup
[EMAIL PROTECTED] (Kim F. Storm) writes: > Stefan Monnier <[EMAIL PROTECTED]> writes: > >>> And this is a small change. > > And - as any small change - causes a lot of discussion which > takes away time from making the release. > >> - The most important problem: it's majorly buggy. > > And we can

Re: font-lock-comment-delimiter-face

2005-05-19 Thread Kim F. Storm
Stefan Monnier <[EMAIL PROTECTED]> writes: > BTW, let me try to be constructive instead of just trying to shoot down > the feature. > > How 'bout we change the current buggy code and replace it with something > more general (and thus more useful to those people who aren't among the > rare few who

Re: font-lock-comment-delimiter-face

2005-05-19 Thread Kim F. Storm
Stefan Monnier <[EMAIL PROTECTED]> writes: >> And this is a small change. And - as any small change - causes a lot of discussion which takes away time from making the release. > - The most important problem: it's majorly buggy. And we can conclude by now that THERE ARE NO SMALL CHANGES. So far

Re: font-lock-comment-delimiter-face

2005-05-19 Thread Stefan Monnier
BTW, let me try to be constructive instead of just trying to shoot down the feature. How 'bout we change the current buggy code and replace it with something more general (and thus more useful to those people who aren't among the rare few who use 8 color ttys and whose red is not readable and who

Re: font-lock-comment-delimiter-face

2005-05-19 Thread Stefan Monnier
e: - it costs CPU time even though in the end the result is only visible for those specific users who happen to be using 8-color ttys (or those few extra rare ones who read the NEWS and figured they want an angrier fruit salad and thus changed their font-lock-comment-delimiter-face to be vis

Re: font-lock-comment-delimiter-face

2005-05-18 Thread Lute Kamstra
s much better. While I don't like it that comment delimiters look different than the comment text, I think that the benefit of having readable comment text outweighs that disadvantage. Just customizing font-lock-comment-face to white (and not using font-lock-comment-delimiter-face) on an 8-

Re: font-lock-comment-delimiter-face

2005-05-18 Thread Stefan Monnier
And to fix the bug with the single-semi-colon we now introduce yet-another-config-var that major modes have to set? So as long as major modes aren't adjusted to also set font-lock-comment-start-skip, users will see strange behaviors under some "unusual" circumstances (i.e. only on 8 color ttys, on

Re: font-lock-comment-delimiter-face

2005-05-18 Thread Richard Stallman
I don't mean to sound hostile, but I don't see what is wrong with a simple user customization. I don't understand why you would make large changes to Emacs when you could simply change the offending face on your machine. I don't think I am the only user who uses a console and finds

Re: font-lock-comment-delimiter-face

2005-05-18 Thread Romain Francoise
Richard Stallman <[EMAIL PROTECTED]> writes: > I would suppose this applies to everyone using a laptop. Well, I have been using Emacs on laptops for years and never had this problem. I suggest you revert your changes in Emacs and instead customize the face in your local setup. Releasing Emacs 2

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Edward O'Connor
> By raising and lowering the brightness settings... > > That's what I'm already doing, so I guess you don't have a suggestion > for something else I could do instead. M-x customize-face RET font-lock-comment-face RET I don't mean to sound hostile, but I don't see what is wrong with a

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Richard Stallman
It is the backlight that is consuming the bulk of the power, not the color cells. So if you are worried about battery power, you should be using only black and white and turn the backlight down as much as possible with this setting. The keyboard has functions to raise and lower th

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Ralf Angeli
* Richard Stallman (2005-05-16) writes: > As your fix does not concern regular expression matching, does this > mean it is correct for `(looking-at comment-start-skip)' in Lisp mode > to return different values in case of single and multiple semicolons? > > I don't understand that ques

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Ralf Angeli
* Richard Stallman (2005-05-16) writes: > For that regexp, it is clear that they should NOT both return > the same value. I reduced the `looking-at' call to `(looking-at "[^\\\n];+")' and now also see why it does not match in front of a single semicolon. D'oh. Sorry for the noise. -- Ralf __

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Richard Stallman
(with-temp-buffer (insert " ;") (backward-char) (looking-at "\\(\\(^\\|[^\n]\\)\\(\\)*\\);+ *")) (with-temp-buffer (insert " ;;") (backward-char 2) (looking-at "\\(\\(^\\|[^\n]\\)\\(\\)*\\);+ *")) Shouldn't both examples retu

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Richard Stallman
In Lisp mode it fails to apply `font-lock-comment-delimiter-face' to a single ";" as long as it is not located at the start of a line. The cause is probably that `comment-start-skip' in Lisp mode contains precautions for not matching escaped semicolons: I

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Ralf Angeli
* Richard Stallman (2005-05-15) writes: > In Lisp mode it fails to apply `font-lock-comment-delimiter-face' to a > single ";" as long as it is not located at the start of a line. The > cause is probably that `comment-start-skip' in Lisp mode conta

Re: font-lock-comment-delimiter-face

2005-05-17 Thread David Kastrup
Richard Stallman <[EMAIL PROTECTED]> writes: > It is the backlight that is consuming the bulk of the power, not the > color cells. So if you are worried about battery power, you should be > using only black and white and turn the backlight down as much as > possible with this sett

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Richard Stallman
> The keyboard has functions to raise and lower the brightness; how > would I control the backlight separately? By raising and lowering the brightness settings... That's what I'm already doing, so I guess you don't have a suggestion for something else I could do instead. ___

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Richard Stallman
I'm probably missing the point, but the eye is not very sensitive to red (or blue) wavelengths. ISTR the maximum sensitivity of the eye (photopic response) is at about 550nm i.e green. So your battery might last longer if you use a color for comments that is close to this (assuming

Re: font-lock-comment-delimiter-face

2005-05-17 Thread Richard Stallman
As your fix does not concern regular expression matching, does this mean it is correct for `(looking-at comment-start-skip)' in Lisp mode to return different values in case of single and multiple semicolons? I don't understand that question. __

Re: font-lock-comment-delimiter-face

2005-05-16 Thread David Kastrup
Nick Roberts <[EMAIL PROTECTED]> writes: > > I have had this problem before, with an old monitor. It can > > also be solved by turning up the brightness or buying a new > > monitor. > > > > I have to turn the brightness down to make the battery last. > > I'm probably missing the

Re: font-lock-comment-delimiter-face

2005-05-14 Thread Paul Pogonyshev
Nick Roberts wrote: > > I have had this problem before, with an old monitor. It can also be > > solved by turning up the brightness or buying a new monitor. > > > > I have to turn the brightness down to make the battery last. > > I'm probably missing the point, but the eye is not very s

Re: font-lock-comment-delimiter-face

2005-05-14 Thread Nick Roberts
> I have had this problem before, with an old monitor. It can also be > solved by turning up the brightness or buying a new monitor. > > I have to turn the brightness down to make the battery last. I'm probably missing the point, but the eye is not very sensitive to red (or blue) wave

Re: font-lock-comment-delimiter-face

2005-05-14 Thread Ralf Angeli
it fails to apply `font-lock-comment-delimiter-face' to a single ";" as long as it is not located at the start of a line. The cause is probably that `comment-start-skip' in Lisp mode contains precautions for not matching escaped semicolons: (setq c

Re: font-lock-comment-delimiter-face

2005-05-14 Thread Richard Stallman
I have had this problem before, with an old monitor. It can also be solved by turning up the brightness or buying a new monitor. I have to turn the brightness down to make the battery last. ___ Emacs-devel mailing list Emacs-devel@gnu.org http:

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Nick Roberts
> I want this, and I want it badly. It is hard to read comments in red > on a tty. However, highlighting the comment delimiters in red on a > tty is fine. I have had this problem before, with an old monitor. It can also be solved by turning up the brightness or buying a new monitor. Nick

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Richard Stallman
This defaulting is done by comment-normalize-vars which is called at the beginning of all major comment function. That means it isn't (at present) set up for font-lock mode to use. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://l

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Richard Stallman
Taking a second look at the idea I can't help feeling like it's the wrong solution. Basically, nobody has ever requested for comment-delimiters to be hilighted differently than the comment body, so we're adding a feature that nobody asked for (and this, one-year into a feature free

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Daniel Brockman
> Please, let's rename this new face to something sensible like > mail-citation-prefix-face (or the same without the "-face" > suffix) and stop the madness about comment delimiters. FWIW, I agree 100%. >>> >>> FWIW, me too. >> >> AOL > > FWIW[0], I completely, entirely, and to

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Edward O'Connor
Please, let's rename this new face to something sensible like mail-citation-prefix-face (or the same without the "-face" suffix) and stop the madness about comment delimiters. >>> >>> FWIW, I agree 100%. >> >> FWIW, me too. > > AOL FWIW[0], I completely, entirely, and totally agree.

Re: font-lock-comment-delimiter-face

2005-05-13 Thread David Kastrup
"Eli Zaretskii" <[EMAIL PROTECTED]> writes: >> From: [EMAIL PROTECTED] (Kim F. Storm) >> Date: Fri, 13 May 2005 10:21:35 +0200 >> Cc: [EMAIL PROTECTED], emacs-devel@gnu.org >> >> Stefan Monnier <[EMAIL PROTECTED]> writes: >> >> > Please, let's rename this new face to something sensible like >> >

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Eli Zaretskii
> From: [EMAIL PROTECTED] (Kim F. Storm) > Date: Fri, 13 May 2005 10:21:35 +0200 > Cc: [EMAIL PROTECTED], emacs-devel@gnu.org > > Stefan Monnier <[EMAIL PROTECTED]> writes: > > > Please, let's rename this new face to something sensible like > > mail-citation-prefix-face (or the same without the "

Re: font-lock-comment-delimiter-face

2005-05-13 Thread Kim F. Storm
Stefan Monnier <[EMAIL PROTECTED]> writes: > Please, let's rename this new face to something sensible like > mail-citation-prefix-face (or the same without the "-face" suffix) and stop > the madness about comment delimiters. FWIW, I agree 100%. -- Kim F. Storm <[EMAIL PROTECTED]> http://www.cua

Re: font-lock-comment-delimiter-face

2005-05-12 Thread Stefan Monnier
> Seems odd to introduce a new face whose name refers to "comment" even > though the only two known uses for it are not for comments but for > email citations. > Those were the only uses yet implemented for it, > but now I've changed font-lock-fontify-syntactically-region > to use it f

Re: font-lock-comment-delimiter-face

2005-05-12 Thread Stefan Monnier
> For C++ mode, it doesn't quite work: >foo // comment1 >bar /* comment2 */ > The // and /* are put in font-lock-comment-delimiter-face (which I find to > be useless clutter and makes the text less legible without helping > understand the st

Re: font-lock-comment-delimiter-face.

2005-05-12 Thread Stefan Monnier
> * font-lock.el (font-lock-comment-delimiter-face): Inherit from > font-lock-comment-face rather than copying its setting. > font-lock-comment-delimiter-face differs from font-lock-comment-face > under X. They used to be Firebrick; now font-lock-comment-delimiter-face

Re: font-lock-comment-delimiter-face

2005-05-12 Thread Richard Stallman
For C++ mode, it doesn't quite work: foo // comment1 bar /* comment2 */ The // and /* are put in font-lock-comment-delimiter-face (which I find to be useless clutter and makes the text less legible without helping understand the structure), but the */ is left

font-lock-comment-delimiter-face.

2005-05-12 Thread Lute Kamstra
Since this change: 2005-05-12 Stefan Monnier <[EMAIL PROTECTED]> * font-lock.el (font-lock-comment-delimiter-face): Inherit from font-lock-comment-face rather than copying its setting. font-lock-comment-delimiter-face differs from font-lock-comment-face under X. They u

Re: font-lock-comment-delimiter-face

2005-05-11 Thread Stefan Monnier
ntactically-region > to use it for comment delimiters. I think this will work > for all modes. It works for C mode and Lisp mode. For C++ mode, it doesn't quite work: foo // comment1 bar /* comment2 */ The // and /* are put in font-lock-comment-delimiter-face (which I find to b

Re: font-lock-comment-delimiter-face

2005-05-11 Thread Richard Stallman
change in what font-lock-comment-face looks like. It would just involve adding font-lock-comment-text-face and using it. However, the method that works in font-lock-fontify-syntactically-region for font-lock-comment-delimiter-face does not work when adapted to font-lock-comment-text-face. I can&#

Re: font-lock-comment-delimiter-face

2005-04-26 Thread Stefan Monnier
> I introduced a new face, font-lock-comment-delimiter-face, > to make it possible to customize separately the fontification > of comment delimiters and comment text. I also set up Rmail > and Sendmail modes to use this. Seems odd to introduce a new face whose name refers to &q

Re: Feature freeze (was Re: font-lock-comment-delimiter-face)

2005-04-26 Thread Richard Stallman
We should not make a new branch now. Just now we should focus on the release itself. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel

Re: font-lock-comment-delimiter-face

2005-04-25 Thread Luc Teirlinck
Richard Stallman wrote: I installed this because it seems to be the only good way to resolve the problem that was encountered with fontification and Rmail to general satisfaction. (No one objected to this solution.) If nothing else. the defface docstring seems wrong: "Font Lock mode

Re: font-lock-comment-delimiter-face

2005-04-25 Thread Richard Stallman
> I introduced a new face, font-lock-comment-delimiter-face, > to make it possible to customize separately the fontification > of comment delimiters and comment text. I also set up Rmail > and Sendmail modes to use this. However, lots of other modes > ought

Re: Feature freeze (was Re: font-lock-comment-delimiter-face)

2005-04-24 Thread Eli Zaretskii
> From: Thien-Thi Nguyen <[EMAIL PROTECTED]> > Date: Sun, 24 Apr 2005 17:46:40 -0400 > Cc: emacs-devel@gnu.org > >From: Glenn Morris <[EMAIL PROTECTED]> >Date: Sun, 24 Apr 2005 21:27:47 +0100 > >2) should there be a new CVS branch for the release? > > that depends on the precise rele

Re: Feature freeze (was Re: font-lock-comment-delimiter-face)

2005-04-24 Thread Thien-Thi Nguyen
From: Glenn Morris <[EMAIL PROTECTED]> Date: Sun, 24 Apr 2005 21:27:47 +0100 2) should there be a new CVS branch for the release? that depends on the precise release methodology, which hasn't been captured under admin/ or admin/notes/, as far as i can tell. perhaps that action (and even

Feature freeze (was Re: font-lock-comment-delimiter-face)

2005-04-24 Thread Glenn Morris
Kim F. Storm wrote: > Feature freeze ? [...] > Can people please work on completing the release... This prompts me to ask, when were the details of a feature freeze agreed upon? I'm not trying to be provocative, but rather to suggest that one reason for the continued delay is (IMO), lack of a cle

Re: font-lock-comment-delimiter-face

2005-04-24 Thread Kim F. Storm
Richard Stallman <[EMAIL PROTECTED]> writes: > I introduced a new face, font-lock-comment-delimiter-face, > to make it possible to customize separately the fontification > of comment delimiters and comment text. I also set up Rmail > and Sendmail modes to use this. However, l

Re: font-lock-comment-delimiter-face

2005-04-24 Thread Eli Zaretskii
> From: Richard Stallman <[EMAIL PROTECTED]> > Date: Sat, 23 Apr 2005 18:51:38 -0400 > > I introduced a new face, font-lock-comment-delimiter-face, > to make it possible to customize separately the fontification > of comment delimiters and comment text. I also set up Rm

font-lock-comment-delimiter-face

2005-04-23 Thread Richard Stallman
I introduced a new face, font-lock-comment-delimiter-face, to make it possible to customize separately the fontification of comment delimiters and comment text. I also set up Rmail and Sendmail modes to use this. However, lots of other modes ought to be set up to use it. Can people please go