On [04/05/02] 18:23, Jussi Ekholm wrote: > Radek Spacil <[EMAIL PROTECTED]> wrote: > > On [04/05/02] 12:36, Jussi Ekholm wrote: > >> I think, that something is wrong with my Emacs, because 'M-x > >> auto-fill-mode' doesn't start wrapping lines. Or, then the wrong > >> thing is me -- should I somehow configure auto-fill-mode through > >> 'customize' or something? It just doesn't wrap the lines... > > > > Maybe variable fill-column it too big. You can try to use > > set-fill-column function to set it to something reasonable. > > Try this: C-u 72 C-x f this will set fill-column to 72 > > It said, that fill-column *was* 70, and now it is 72. Weird. Ah well, > I guess I have to live with this. At least it wraps the lines I write > now, although I haven't needed it. But to be sure, I'll keep the > option on. :-)
Strange, then the problem is somewhere else. I don't know emacs so well (and lisp at all), so try to consult it in gnu.emacs.help newsgroup. > > You can also press C-q to wrap current paragraph (even outside > > auto-fill-mode). > > Yup (you mean M-q, right?), it does -- but sometimes it acts *very* > weirdly, like wrapping the whole mail instead of just the current > paragraph. Well, I'm not complaining. :-) Ops, of course M-q ;-) > Still -- the answer I was looking for -- I didn't find it. And the > question was, that how can I make Emacs to wrap all lines longer than > specific amount of columns? All, not just the ones I'm writing myself, > because that isn't a problem. The problem is, that sometimes people > write *extremely* long lines (I've noticed, that this usually occurs > when the writer is using Outlook :P); for example, I have one mail in > my inbox, that has such a long lines, that Emacs is displaying one > line on fifteen (15!) lines!. So, is there a way (I'm sure there is, > Emacs haven't let me down yet ;-)) to do this? When I'm replying to such an email I'm using M-q, but first I have to make one empty line before and after the part which I cite (emacs would take whole message as paragraph since even empty lines are prepended with '>' or something alike). Then M-q works fine. Yes it's not perfectly straightforward, but it works for me, since usually I have to erase lot of text I'm replying for anyway. So finally it is not much more work. There is one thing which I don't like. When I press M-q on single looong line, emacs make wrapped paragraph, but only first line is prepended with '>'. The workaround is to write '> ' (with space) also on the second line and press M-q once again. Emacs will add '> 's to all other lines. HTH, Radek -- /-------------------------------------------\ | Radek Spacil, research assistant, | | Telecommunication laboratory | | Lappeenranta University of Technology | | www: http://www.lut.fi/~spacil/ | \-------------------------------------------/
msg27878/pgp00000.pgp
Description: PGP signature