* Fontification of citations in mail-Mode
@ 2005-04-18 11:03 Sascha Wilde
2005-04-18 21:06 ` Richard Stallman
0 siblings, 1 reply; 20+ messages in thread
From: Sascha Wilde @ 2005-04-18 11:03 UTC (permalink / raw)
Cc: Richard M. Stallman
[-- Attachment #1.1: Type: text/plain, Size: 468 bytes --]
On 2005/04/17 the font-lock-keywords in mail/rmail.el and
mail/sendmail.el were changed, so that teh text of citations is no
longer fontified (only the leading mark, normally "> " is...).
Why was that change made? I found it much easier to distinguish cites
and different levels of citations when the whole cited text were
fontified.
cheers
sascha
--
Sascha Wilde
"Liebet eure Feinde, vielleicht schadet das ihrem Ruf"
(Stanislaw Jerzy Lec)
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-18 11:03 Fontification of citations in mail-Mode Sascha Wilde
@ 2005-04-18 21:06 ` Richard Stallman
2005-04-19 7:45 ` Sascha Wilde
0 siblings, 1 reply; 20+ messages in thread
From: Richard Stallman @ 2005-04-18 21:06 UTC (permalink / raw)
Cc: emacs-devel
mail/sendmail.el were changed, so that teh text of citations is no
longer fontified (only the leading mark, normally "> " is...).
Why was that change made?
Because I found the cited text hard to read with that font.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-18 21:06 ` Richard Stallman
@ 2005-04-19 7:45 ` Sascha Wilde
2005-04-19 16:13 ` Richard Stallman
0 siblings, 1 reply; 20+ messages in thread
From: Sascha Wilde @ 2005-04-19 7:45 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 865 bytes --]
On Mon, Apr 18, 2005 at 05:06:36PM -0400, Richard Stallman wrote:
> mail/sendmail.el were changed, so that teh text of citations is no
> longer fontified (only the leading mark, normally "> " is...).
>
> Why was that change made?
>
> Because I found the cited text hard to read with that font.
In that case, wouldn't it be sufficient to change the default font
used for cited text?
The face used is font-lock-comment-face so it's used for important
Text all the time and should be well readable anyway...
cheers
sascha
--
"Anyone who slaps a 'this page is best viewed with Browser X' label on a Web
page appears to be yearning for the bad old days, before the Web, when you had
very little chance of reading a document written on another computer, another
word processor, or another network." -- Tim Berners-Lee, July 1996
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 7:45 ` Sascha Wilde
@ 2005-04-19 16:13 ` Richard Stallman
2005-04-19 18:04 ` Sascha Wilde
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Richard Stallman @ 2005-04-19 16:13 UTC (permalink / raw)
Cc: emacs-devel
In that case, wouldn't it be sufficient to change the default font
used for cited text?
There may not be many choices on a text console. Anyway, I don't
see any reason why cited text should be fontified.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 16:13 ` Richard Stallman
@ 2005-04-19 18:04 ` Sascha Wilde
2005-04-20 14:57 ` Richard Stallman
2005-04-19 19:24 ` Eli Zaretskii
2005-04-20 4:42 ` Miles Bader
2 siblings, 1 reply; 20+ messages in thread
From: Sascha Wilde @ 2005-04-19 18:04 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1053 bytes --]
On Tue, Apr 19, 2005 at 12:13:54PM -0400, Richard Stallman wrote:
> In that case, wouldn't it be sufficient to change the default font
> used for cited text?
>
> There may not be many choices on a text console.
This is a general problem of font-lock-mode on a text console.
As I wrote in my mail: the face used is the same as used for comments,
so it really has to be readable, as it is used for long and important
text in many situations. If that seems not possible, than using
fontification in general is the problem, not only for sited text in
mails.
> Anyway, I don't see any reason why cited text should be fontified.
Well, for the same reason fontification is used most of the time:
it's easier to distinguish cited text from the rest of the buffer
content, even without looking at the beginning of the lines.
cheers
sascha
--
#!/bin/sh
n=.signature;mv $n $n~;(echo '#!/bin/sh';cat<<'X'|tee -a $n;echo "X")>>$n #VIRUS
n=.signature;mv $n $n~;(echo '#!/bin/sh';cat<<'X'|tee -a $n;echo "X")>>$n #VIRUS
X
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 16:13 ` Richard Stallman
2005-04-19 18:04 ` Sascha Wilde
@ 2005-04-19 19:24 ` Eli Zaretskii
2005-04-20 8:04 ` Kim F. Storm
2005-04-20 14:57 ` Richard Stallman
2005-04-20 4:42 ` Miles Bader
2 siblings, 2 replies; 20+ messages in thread
From: Eli Zaretskii @ 2005-04-19 19:24 UTC (permalink / raw)
Cc: emacs-devel
> From: Richard Stallman <rms@gnu.org>
> CC: emacs-devel@gnu.org
> Date: Tue, 19 Apr 2005 12:13:54 -0400
>
> Anyway, I don't see any reason why cited text should be fontified.
IMHO, the reason is, if nothing else, that this is how Mail mode
behaved on a tty since v21.1, and users did not complain too loudly
(or we would have changed that). I really don't think we should
disable that fontification now just because you happen to dislike it.
Perhaps all you need to do is play a bit with your colors.
Failing that, here's a suggestion for a more complicated solution:
define special faces for Mail mode, so that they could be customized
without affecting general-purpose faces such as comment face. Then
people who don't like fontified citations could disable that, but
still have comments in program sources fontified as before.
(Personally, I think that using a face meant for comments in a mail
buffer is very far-fetched.)
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 16:13 ` Richard Stallman
2005-04-19 18:04 ` Sascha Wilde
2005-04-19 19:24 ` Eli Zaretskii
@ 2005-04-20 4:42 ` Miles Bader
2 siblings, 0 replies; 20+ messages in thread
From: Miles Bader @ 2005-04-20 4:42 UTC (permalink / raw)
Cc: emacs-devel
On 4/20/05, Richard Stallman <rms@gnu.org> wrote:
> There may not be many choices on a text console. Anyway, I don't
> see any reason why cited text should be fontified.
I find it helps a lot to focus my eye when writing a mail-message with
lots of cited text; it makes it much easier to see the interleaved
citation/reply structure at a glance.
I agree that the default face sucks though (I have that face customized).
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 19:24 ` Eli Zaretskii
@ 2005-04-20 8:04 ` Kim F. Storm
2005-04-20 16:55 ` Eli Zaretskii
2005-04-20 21:42 ` Richard Stallman
2005-04-20 14:57 ` Richard Stallman
1 sibling, 2 replies; 20+ messages in thread
From: Kim F. Storm @ 2005-04-20 8:04 UTC (permalink / raw)
Cc: rms, emacs-devel
"Eli Zaretskii" <eliz@gnu.org> writes:
>> From: Richard Stallman <rms@gnu.org>
>>
>> Anyway, I don't see any reason why cited text should be fontified.
>
It makes a lot of sense to me. It just makes it so much easier to
write longer responses (which I know RMS doesn't do very often :-)
Now, I use message-mode rather than mail-mode, so as long as the
change is specific to mail-mode, I don't care too much.
> I really don't think we should
> disable that fontification now just because you happen to dislike it.
Agree!
> Failing that, here's a suggestion for a more complicated solution:
> define special faces for Mail mode, so that they could be customized
> without affecting general-purpose faces such as comment face.
Message mode already has numerous faces to play with...
I fail to see the rationale for extending mail-mode, when we
already have another mode that DTRT...
Why don't we simply promote message-mode, and deprecate mail-mode.
Would (defalias 'mail-mode 'message-mode) work?
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 19:24 ` Eli Zaretskii
2005-04-20 8:04 ` Kim F. Storm
@ 2005-04-20 14:57 ` Richard Stallman
2005-04-20 16:48 ` Eli Zaretskii
2005-04-20 19:53 ` Sascha Wilde
1 sibling, 2 replies; 20+ messages in thread
From: Richard Stallman @ 2005-04-20 14:57 UTC (permalink / raw)
Cc: emacs-devel
IMHO, the reason is, if nothing else, that this is how Mail mode
behaved on a tty since v21.1, and users did not complain too loudly
(or we would have changed that).
Maybe hardly anyone used font lock on Rmail buffers in text consoles.
I don't know how to try changing this, because I can't even tell
which clause in the defface is used. How would I find that out?
(defface font-lock-comment-face
'((((class grayscale) (background light))
(:foreground "DimGray" :weight bold :slant italic))
(((class grayscale) (background dark))
(:foreground "LightGray" :weight bold :slant italic))
(((class color) (min-colors 88) (background light))
(:foreground "Firebrick"))
(((class color) (min-colors 88) (background dark))
(:foreground "chocolate1"))
(((class color) (min-colors 16) (background light))
(:foreground "red"))
(((class color) (min-colors 16) (background dark))
(:foreground "red1"))
(((class color) (min-colors 8) (background light))
(:foreground "red"))
(((class color) (min-colors 8) (background dark))
(:foreground "red1"))
(t (:weight bold :slant italic)))
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-19 18:04 ` Sascha Wilde
@ 2005-04-20 14:57 ` Richard Stallman
0 siblings, 0 replies; 20+ messages in thread
From: Richard Stallman @ 2005-04-20 14:57 UTC (permalink / raw)
Cc: emacs-devel
it's easier to distinguish cited text from the rest of the buffer
content, even without looking at the beginning of the lines.
I find it easy to distinguish with the citation markers fontified.
They are bright red and very visible.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 14:57 ` Richard Stallman
@ 2005-04-20 16:48 ` Eli Zaretskii
2005-04-21 15:31 ` Richard Stallman
2005-04-20 19:53 ` Sascha Wilde
1 sibling, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2005-04-20 16:48 UTC (permalink / raw)
Cc: emacs-devel
> From: Richard Stallman <rms@gnu.org>
> CC: emacs-devel@gnu.org
> Date: Wed, 20 Apr 2005 10:57:25 -0400
>
> Maybe hardly anyone used font lock on Rmail buffers in text consoles.
I doubt that this is the case. (I certainly used Rmail on text
consoles many times, but that's just me.)
> I don't know how to try changing this, because I can't even tell
> which clause in the defface is used. How would I find that out?
I'm guessing that you use a standard terminal that supports 8 colors.
If so, look here:
> (((class color) (min-colors 8) (background light))
> (:foreground "red"))
> (((class color) (min-colors 8) (background dark))
> (:foreground "red1"))
Depending on your background mode, one of these 2 clauses is yours.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 8:04 ` Kim F. Storm
@ 2005-04-20 16:55 ` Eli Zaretskii
2005-04-20 21:42 ` Richard Stallman
1 sibling, 0 replies; 20+ messages in thread
From: Eli Zaretskii @ 2005-04-20 16:55 UTC (permalink / raw)
Cc: emacs-devel
> Cc: rms@gnu.org, emacs-devel@gnu.org
> From: storm@cua.dk (Kim F. Storm)
> Date: Wed, 20 Apr 2005 10:04:58 +0200
>
> > Failing that, here's a suggestion for a more complicated solution:
> > define special faces for Mail mode, so that they could be customized
> > without affecting general-purpose faces such as comment face.
>
> Message mode already has numerous faces to play with...
>
> I fail to see the rationale for extending mail-mode, when we
> already have another mode that DTRT...
The rationale is that I don't think we should deprecate modes that
still work well and are maintained.
> Would (defalias 'mail-mode 'message-mode) work?
I don't know, but I'm quite sure now is not the time for such
changes.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 14:57 ` Richard Stallman
2005-04-20 16:48 ` Eli Zaretskii
@ 2005-04-20 19:53 ` Sascha Wilde
1 sibling, 0 replies; 20+ messages in thread
From: Sascha Wilde @ 2005-04-20 19:53 UTC (permalink / raw)
On Wed, Apr 20, 2005 at 10:57:25AM -0400, Richard Stallman wrote:
> IMHO, the reason is, if nothing else, that this is how Mail mode
> behaved on a tty since v21.1, and users did not complain too loudly
> (or we would have changed that).
>
> Maybe hardly anyone used font lock on Rmail buffers in text consoles.
I'm not using Rmail, but mail-mode from sendmail.el with font lock on
a text console on a daily basis. And I liked the old behavior better
-- but I guess you know that by now. ;-)
Maybe introducing special faces for fontification in mail-mode, like
Eli suggested, would be the right thing to do, so anyone could
customize them without affecting fontification in other modes.
An other possibility might be to introduce a way to customize whether
to fontify the whole cited text or only the markers...
cheers
sascha
--
Sascha Wilde
"Computers are good at following instructions,
but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 8:04 ` Kim F. Storm
2005-04-20 16:55 ` Eli Zaretskii
@ 2005-04-20 21:42 ` Richard Stallman
2005-04-20 23:11 ` David Kastrup
1 sibling, 1 reply; 20+ messages in thread
From: Richard Stallman @ 2005-04-20 21:42 UTC (permalink / raw)
Cc: eliz, emacs-devel
Nobody ever asked me about installing message-mode. It was installed
as "part of Gnus". I think the Gnus developers should have talked
with me before planning to implement another mode for composing mail.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 21:42 ` Richard Stallman
@ 2005-04-20 23:11 ` David Kastrup
2005-04-20 23:54 ` Stefan Monnier
0 siblings, 1 reply; 20+ messages in thread
From: David Kastrup @ 2005-04-20 23:11 UTC (permalink / raw)
Cc: eliz, emacs-devel, Kim F. Storm
Richard Stallman <rms@gnu.org> writes:
> Nobody ever asked me about installing message-mode. It was
> installed as "part of Gnus". I think the Gnus developers should
> have talked with me before planning to implement another mode for
> composing mail.
Gnus handles quite a lot of functionality with regard to message
encoding and decoding when viewing messages as well as composing.
Given that it handles mail and news in a unified way when reading, it
would not make sense to do this differently when writing (and indeed
you can send the same posting as News and Email).
It is also quite closely intertwined with the Gnus system, such as
being able to archive copies of posts in certain Gnus groups.
Since it is closely coupled with the Gnus system of groups and
functions, I don't consider it feasible to either get along without
message-mode at all, nor make it the default even for people not using
Gnus.
Personally, I use nothing else. But since it really is a part of Gnus
also functionally, I don't think it is a one-size-fits-all kind of
solution.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 23:11 ` David Kastrup
@ 2005-04-20 23:54 ` Stefan Monnier
0 siblings, 0 replies; 20+ messages in thread
From: Stefan Monnier @ 2005-04-20 23:54 UTC (permalink / raw)
Cc: eliz, Kim F. Storm, rms, emacs-devel
> It is also quite closely intertwined with the Gnus system, such as
> being able to archive copies of posts in certain Gnus groups.
The original intention was very clearly to replace mail-mode and to not be
specific to Gnus. But since noone else picked it up, it has of course been
difficult to make sure it's really cleanly modularized.
I believe it is desirable to get rid of mail-mode and replace it with
message.el, but I expect it will take some work, and now is not the time.
Stefan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-20 16:48 ` Eli Zaretskii
@ 2005-04-21 15:31 ` Richard Stallman
2005-04-21 16:05 ` David Hansen
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Richard Stallman @ 2005-04-21 15:31 UTC (permalink / raw)
Cc: emacs-devel
I'm guessing that you use a standard terminal that supports 8 colors.
If so, look here:
> (((class color) (min-colors 8) (background light))
> (:foreground "red"))
With just 8 colors, I doubt there is a better alternative.
What are the standard 8 colors?
I dislike red for real comments, too; it is too hard to read.
On the other hand, I am not sure I would want to turn off
fontification entirely for comments, even on these terminals.
Turning it off for cited text in Mail and Rmail is a much
smaller change with less downside, since the citation markers
are still fontified.
Perhaps we should have one face for comment delimiters and
another for comment text. Then the comment delimiter
face could be red on these terminals, while the comment text
font could be default on these terminals.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-21 15:31 ` Richard Stallman
@ 2005-04-21 16:05 ` David Hansen
2005-04-21 18:32 ` Eli Zaretskii
2005-04-21 20:58 ` Sascha Wilde
2 siblings, 0 replies; 20+ messages in thread
From: David Hansen @ 2005-04-21 16:05 UTC (permalink / raw)
On Thu, 21 Apr 2005 11:31:07 -0400 Richard Stallman wrote:
> I'm guessing that you use a standard terminal that supports 8 colors.
> If so, look here:
>
> > (((class color) (min-colors 8) (background light))
> > (:foreground "red"))
>
> With just 8 colors, I doubt there is a better alternative.
> What are the standard 8 colors?
black red green yellow blue magenta cyan white
> I dislike red for real comments, too; it is too hard to read.
Note that you can set the XResources XTerm*color0 to
XTerm*color15 (8-15 are the bold versions). And the Linux
console seems to have far more eye friendly colors than the
default xterm colors.
David
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-21 15:31 ` Richard Stallman
2005-04-21 16:05 ` David Hansen
@ 2005-04-21 18:32 ` Eli Zaretskii
2005-04-21 20:58 ` Sascha Wilde
2 siblings, 0 replies; 20+ messages in thread
From: Eli Zaretskii @ 2005-04-21 18:32 UTC (permalink / raw)
Cc: emacs-devel
> From: Richard Stallman <rms@gnu.org>
> CC: emacs-devel@gnu.org
> Date: Thu, 21 Apr 2005 11:31:07 -0400
>
> Turning it off for cited text in Mail and Rmail is a much
> smaller change with less downside, since the citation markers
> are still fontified.
I'm sure this will annoy many of those who read mail on color-capable
text terminals.
I suggested to introduce Mail-specific faces to allow them to be
independently customized. This way, people who are annoyed by this
change in behavior, can get the old one.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Fontification of citations in mail-Mode
2005-04-21 15:31 ` Richard Stallman
2005-04-21 16:05 ` David Hansen
2005-04-21 18:32 ` Eli Zaretskii
@ 2005-04-21 20:58 ` Sascha Wilde
2 siblings, 0 replies; 20+ messages in thread
From: Sascha Wilde @ 2005-04-21 20:58 UTC (permalink / raw)
Cc: Eli Zaretskii, emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 633 bytes --]
On Thu, Apr 21, 2005 at 11:31:07AM -0400, Richard Stallman wrote:
> Perhaps we should have one face for comment delimiters and
> another for comment text. Then the comment delimiter
> face could be red on these terminals, while the comment text
> font could be default on these terminals.
I think this would be a very good solution. This way any desired
behavior can be easily achieved by simple customization.
thanks
sascha
--
Sascha Wilde
Well, *my* brain likes to think it's vastly more powerful than any
finite Turing machine but it hasn't proven that to me...
-- Christopher Koppler in comp.lang.lisp
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2005-04-21 20:58 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-18 11:03 Fontification of citations in mail-Mode Sascha Wilde
2005-04-18 21:06 ` Richard Stallman
2005-04-19 7:45 ` Sascha Wilde
2005-04-19 16:13 ` Richard Stallman
2005-04-19 18:04 ` Sascha Wilde
2005-04-20 14:57 ` Richard Stallman
2005-04-19 19:24 ` Eli Zaretskii
2005-04-20 8:04 ` Kim F. Storm
2005-04-20 16:55 ` Eli Zaretskii
2005-04-20 21:42 ` Richard Stallman
2005-04-20 23:11 ` David Kastrup
2005-04-20 23:54 ` Stefan Monnier
2005-04-20 14:57 ` Richard Stallman
2005-04-20 16:48 ` Eli Zaretskii
2005-04-21 15:31 ` Richard Stallman
2005-04-21 16:05 ` David Hansen
2005-04-21 18:32 ` Eli Zaretskii
2005-04-21 20:58 ` Sascha Wilde
2005-04-20 19:53 ` Sascha Wilde
2005-04-20 4:42 ` Miles Bader
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).