Just to be clear, I'm just saying that I like it, not that I have any
power to ok something :-)

On Fri, Jun 1, 2012 at 11:44 AM, Loganaden Velvindron
<[email protected]> wrote:
> Yeah, it makes it feel even closer to emacs.
>
> On Thu, May 31, 2012 at 7:02 PM, Mark Lumsden <[email protected]> wrote:
>> Show a message and beep when you reach either end of a buffer.
>>
>> ok?
>>
>> -lum
>>
>> Index: basic.c
>> ===================================================================
>> RCS file: /cvs/src/usr.bin/mg/basic.c,v
>> retrieving revision 1.33
>> diff -u -p -r1.33 basic.c
>> --- basic.c     31 May 2012 10:55:53 -0000      1.33
>> +++ basic.c     31 May 2012 14:54:24 -0000
>> @@ -269,8 +269,11 @@ forwpage(int f, int n)
>>
>>        lp = curwp->w_linep;
>>        while (n--)
>> -               if ((lp = lforw(lp)) == curbp->b_headp)
>> +               if ((lp = lforw(lp)) == curbp->b_headp) {
>> +                       ttbeep();
>> +                       ewprintf("End of buffer");
>>                        return(TRUE);
>> +               }
>>
>>        curwp->w_linep = lp;
>>        curwp->w_rflag |= WFFULL;
>> @@ -314,6 +317,10 @@ backpage(int f, int n)
>>
>>        while (n-- && lback(lp) != curbp->b_headp) {
>>                lp = lback(lp);
>> +       }
>> +       if (lp == curwp->w_linep) {
>> +               ttbeep();
>> +               ewprintf("Beginning of buffer");
>>        }
>>        curwp->w_linep = lp;
>>        curwp->w_rflag |= WFFULL;
>>
>
>
>
> --
> Brightest day,
> Blackest night,
> No bug shall escape my sight,
> And those who worship evil's mind,
> be wary of my powers,
> puffy lantern's light !



--
Brightest day,
Blackest night,
No bug shall escape my sight,
And those who worship evil's mind,
be wary of my powers,
puffy lantern's light !

Reply via email to