On Sat, May 26, 2018 at 09:49:22PM +0200, Florian Obser wrote: > Not OK. > > With column-number-mode on mg has to redraw the modeline (maybe even > the whole window?) on every cursor move. Try it on a 9600 serial > console. >
Oh, I forgot we use slow hardware. I didn't know it is necessary to redraw the whole window to redraw one line. *puke* > With line-number-mode on the redraw is only necessary when a cursor > move changes the line number. Happens considerably less often. > And still even line-number-mode can noticeable slow performance? > Also note how this is in line with what emacs does. > Should mg look/act completely like Emacs does? > The tutorial should be fixed. > Fine, I hope my recent diff for tutorial is good for that. > On Sat, May 26, 2018 at 08:03:24PM +0300, Leonid Bobrov wrote: > > From https://marc.info/?t=152724880600001&r=1&w=2 > > > > If line-number-mode is on by default, I don't get what is > > the problem with these "slow serial lines", plus without > > this patch below we have confusing tutorial for new users: > > > > Index: display.c > > =================================================================== > > RCS file: /cvs/src/usr.bin/mg/display.c,v > > retrieving revision 1.48 > > diff -u -p -r1.48 display.c > > --- display.c 6 Jul 2017 19:27:37 -0000 1.48 > > +++ display.c 26 May 2018 13:27:35 -0000 > > @@ -91,7 +91,7 @@ struct video blanks; /* Blank line im > > struct score *score; /* [NROW * NROW] */ > > > > static int linenos = TRUE; > > -static int colnos = FALSE; > > +static int colnos = TRUE; > > > > /* Is macro recording enabled? */ > > extern int macrodef; > > > > -- > I'm not entirely sure you are real. >