On Sat, 2 Dec 2006, Alexander Farber wrote:
> Hello Otto,
>
> On 11/30/06, Otto Moerbeek <[EMAIL PROTECTED]> wrote:
> > Turns out matthieu@ already made an updated diff some time ago. Here it is.
>
> thank you for the patch. There seems to be a problem:
>
> I type an "l" (ell) and then use ESC-p to cycle through the
> previously typed commands starting with that letter.
> They are displayed fine, but they never stop (but cycle).
>
> And when I type ESC-n, then the displayed command
> sometimes stucks (doesn't change to the next one).
It looks like ESC-p cycles, but ESC-n not. If you have a terminal that
has a beep, you'll hear a beep when ESC-p wraps, but ESC-n keeps
beeping when the end is reached. I'll take a look at this.
>
> Same problem is with the UP/DOWN arrow keys, when I define:
>
> bind '^XA'=history-search-backward
> bind '^XB'=history-search-forward
>
> BTW I've noticed an unchecked strdup() in emacs.c which
> is probably better written as:
>
> if ((orig_xbuf = strdup(xbuf)) == NULL)
> internal_errorf(1, "unable to allocate memory");
I have to chekc if this strdup is needed at all.
-Otto