* Wrong default indents in message.el
@ 2001-08-09 10:07 Arvid Grøtting
2001-08-09 14:27 ` Arvid Grøtting
0 siblings, 1 reply; 9+ messages in thread
From: Arvid Grøtting @ 2001-08-09 10:07 UTC (permalink / raw)
I suspect this must have been a typo:
diff -u -r6.111 message.el
--- lisp/message.el 2001/08/08 22:25:55 6.111
+++ lisp/message.el 2001/08/09 10:05:00
@@ -1616,7 +1616,7 @@
(mail-aliases-setup)))
(message-set-auto-save-file-name)
(mm-enable-multibyte)
- (set (make-local-variable 'indent-line-function) 'indent-relative)
+ (set (make-local-variable 'indent-line-function) 'indent-relative-maybe)
(set (make-local-variable 'indent-tabs-mode) nil) ;No tabs for indentation.
(mml-mode))
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 10:07 Wrong default indents in message.el Arvid Grøtting
@ 2001-08-09 14:27 ` Arvid Grøtting
2001-08-09 16:36 ` Kai Großjohann
2001-08-09 17:57 ` ShengHuo ZHU
0 siblings, 2 replies; 9+ messages in thread
From: Arvid Grøtting @ 2001-08-09 14:27 UTC (permalink / raw)
"Arvid Grøtting" <arvidg@netfonds.no> writes:
> I suspect this must have been a typo:
Hmm. My fix, too, might have been a bit too quick. Although it does
make message-mode usable again[1], TAB no longer works in any
sane fashion. Oh well.
I guess setting indent-line-function is the canonical right thing to
do for a major mode, but indent-relative is just the wrong default
choice. tab-to-tab-stop or indent-relative-maybe come to mind. Any
other suggestions?
[1] it's unusable with auto-fill-mode turned on in the current CVS
version, as this message demonstrates. Yes, this footnote gets
all nice and shiny, but the main text doesn't.
--
Arvid
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 14:27 ` Arvid Grøtting
@ 2001-08-09 16:36 ` Kai Großjohann
2001-08-09 17:57 ` ShengHuo ZHU
1 sibling, 0 replies; 9+ messages in thread
From: Kai Großjohann @ 2001-08-09 16:36 UTC (permalink / raw)
"Arvid Grøtting" <arvidg@netfonds.no> writes:
> "Arvid Grøtting" <arvidg@netfonds.no> writes:
>
>> I suspect this must have been a typo:
>
> Hmm. My fix, too, might have been a bit too quick. Although it does
> make message-mode usable again[1], TAB no longer works in any
> sane fashion. Oh well.
Maybe it is not a good idea, then to set indent-line-function to
anything but indent-to-left-margin in text-like modes :-)
Sorry about spreading such misinformation.
kai
--
~/.signature: No such file or directory
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 14:27 ` Arvid Grøtting
2001-08-09 16:36 ` Kai Großjohann
@ 2001-08-09 17:57 ` ShengHuo ZHU
2001-08-09 21:09 ` Karl Eichwalder
1 sibling, 1 reply; 9+ messages in thread
From: ShengHuo ZHU @ 2001-08-09 17:57 UTC (permalink / raw)
"Arvid Grøtting" <arvidg@netfonds.no> writes:
> "Arvid Grøtting" <arvidg@netfonds.no> writes:
>
>> I suspect this must have been a typo:
>
> Hmm. My fix, too, might have been a bit too quick. Although it does
> make message-mode usable again[1], TAB no longer works in any
> sane fashion. Oh well.
>
> I guess setting indent-line-function is the canonical right thing to
> do for a major mode, but indent-relative is just the wrong default
> choice. tab-to-tab-stop or indent-relative-maybe come to mind. Any
> other suggestions?
>
>
> [1] it's unusable with auto-fill-mode turned on in the current CVS
> version, as this message demonstrates. Yes, this footnote gets
> all nice and shiny, but the main text doesn't.
I remove the setting and let message-tab call indent-relative. Hope
now it is better.
ShengHuo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 17:57 ` ShengHuo ZHU
@ 2001-08-09 21:09 ` Karl Eichwalder
2001-08-09 21:55 ` Kai Großjohann
0 siblings, 1 reply; 9+ messages in thread
From: Karl Eichwalder @ 2001-08-09 21:09 UTC (permalink / raw)
ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> "Arvid Grøtting" <arvidg@netfonds.no> writes:
>> I guess setting indent-line-function is the canonical right thing to
>> do for a major mode, but indent-relative is just the wrong default
>> choice. tab-to-tab-stop or indent-relative-maybe come to mind. Any
>> other suggestions?
Won't work either -- see below.
>> [1] it's unusable with auto-fill-mode turned on in the current CVS
>> version, as this message demonstrates. Yes, this footnote gets
>> all nice and shiny, but the main text doesn't.
>
> I remove the setting and let message-tab call indent-relative. Hope
> now it is better.
I fear it is still broken. Let's wait until column 72 where autofill
should happen. Okay,
it works somehow -- but I've set my tab width (stops) to 4, 8,
12, 16, ...
Why do think it's a good idea to align the indented paragraph with
"happen" above? If I try to set the indent function this way, more
wierd things are happening:
(add-hook 'mml-mode-hook
(lambda ()
(setq indent-line-function 'tab-to-tab-stop)))
Regarding indentation message.el coming with Emacs 21 (pre) behaves
better at the moment :)
--
ke@suse.de (work) / keichwa@gmx.net (home): |
http://www.suse.de/~ke/ | ,__o
Free Translation Project: | _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 21:09 ` Karl Eichwalder
@ 2001-08-09 21:55 ` Kai Großjohann
2001-08-10 4:56 ` Karl Eichwalder
2001-08-10 7:26 ` Daniel Pittman
0 siblings, 2 replies; 9+ messages in thread
From: Kai Großjohann @ 2001-08-09 21:55 UTC (permalink / raw)
Cc: ding
Karl Eichwalder <keichwa@gmx.net> writes:
> Why do think it's a good idea to align the indented paragraph with
> "happen" above?
I think that relative indentation is a Good Thing(tm) for text-like
modes. If you want to advance to the next tab stop, you can always do
M-i.
But of course, the meaning of TAB should be customizable in some way.
<advertisement> message-x provides a user option for
this... </advertisement>
kai
--
~/.signature: No such file or directory
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 21:55 ` Kai Großjohann
@ 2001-08-10 4:56 ` Karl Eichwalder
2001-08-10 7:26 ` Daniel Pittman
1 sibling, 0 replies; 9+ messages in thread
From: Karl Eichwalder @ 2001-08-10 4:56 UTC (permalink / raw)
Cc: ding
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> I think that relative indentation is a Good Thing(tm) for text-like
> modes.
I disagree.
> If you want to advance to the next tab stop, you can always do
> M-i.
Why forcing a user to use a non standard keybinding if he wants to have
a standard effect. "relative indentation" hurts the rule of "less
surprise". I never saw a user reports saying "indentations sucks"
when writing mails with message.el. A working piece of software was
changed for no good (just to please the developers). This is a Bad
Thing(tm).
And a bug was introduced; cf. the indentation style of the previous
paragraph.
> But of course, the meaning of TAB should be customizable in some way.
> <advertisement> message-x provides a user option for
> this... </advertisement>
I vote to change it back as it ever was. The TAB/message-x thingie
doesn't seem to be documented what's a bad thing, too.
--
ke@suse.de (work) / keichwa@gmx.net (home): |
http://www.suse.de/~ke/ | ,__o
Free Translation Project: | _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-09 21:55 ` Kai Großjohann
2001-08-10 4:56 ` Karl Eichwalder
@ 2001-08-10 7:26 ` Daniel Pittman
2001-08-10 13:16 ` Kai Großjohann
1 sibling, 1 reply; 9+ messages in thread
From: Daniel Pittman @ 2001-08-10 7:26 UTC (permalink / raw)
On Thu, 09 Aug 2001, Kai Großjohann wrote:
[...]
> But of course, the meaning of TAB should be customizable in some way.
> <advertisement> message-x provides a user option for
> this... </advertisement>
Out of curiosity, does message-x do much that frobbing
`message-completion-alist' wouldn't?
For me, since that alist contains a binding to complete from BBDB by
default, I am a happy boy...
Daniel
--
Keep a diary and one day it'll keep you.
-- Mae West
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Wrong default indents in message.el
2001-08-10 7:26 ` Daniel Pittman
@ 2001-08-10 13:16 ` Kai Großjohann
0 siblings, 0 replies; 9+ messages in thread
From: Kai Großjohann @ 2001-08-10 13:16 UTC (permalink / raw)
Cc: ding
Daniel Pittman <daniel@rimspace.net> writes:
> Out of curiosity, does message-x do much that frobbing
> `message-completion-alist' wouldn't?
>
> For me, since that alist contains a binding to complete from BBDB by
> default, I am a happy boy...
Hm. Oh. It seems the functionality was added to message, then :-)
Now we might wish to see whether we need smarter completion
functions. I tried to wrote some, but maybe I failed.
message-x wants to call message-position-point if completion was, err,
complete. Actually, it looks to see if the buffer has changed or
point has moved, and that doesn't work too well.
kai
--
~/.signature: No such file or directory
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-08-10 13:16 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-09 10:07 Wrong default indents in message.el Arvid Grøtting
2001-08-09 14:27 ` Arvid Grøtting
2001-08-09 16:36 ` Kai Großjohann
2001-08-09 17:57 ` ShengHuo ZHU
2001-08-09 21:09 ` Karl Eichwalder
2001-08-09 21:55 ` Kai Großjohann
2001-08-10 4:56 ` Karl Eichwalder
2001-08-10 7:26 ` Daniel Pittman
2001-08-10 13:16 ` Kai Großjohann
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).