GNU bug report logs -
#50176
[PATCH] 28.0.50; repeat-mode does not clear echo-area after timeout
Previous Next
Reported by: Gabriel <gabriel376 <at> hotmail.com>
Date: Mon, 23 Aug 2021 22:31:01 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Today I caught a small problem with the patch I sent. The
> 'string-prefix-p' and 'string-match-p' handle nil inputs differently:
>
> (string-prefix-p "Repeat with " nil) ;; returns nil
> (string-match-p "Repeat with " nil) ;; throws an error
>
> The problem can be reproduced by writing some elisp code in *scratch*
> buffer, putting the cursor in the function definition and invoking the
> 'other-window' with 'repeat-mode' using my original steps. The
> 'eldoc-mode' will echo the function name and '(current-message)' will
> return nil.
Please look in the repo that Mattias already changed string-match-p
to string-search. But (string-search "Repeat with " nil)
still throws an error. I wonder why string-search is different
from string-prefix-p is its argument handling?
They both operate on the strings.
Also the name 'string-search' is too confusing since
it is too similar to 'search-forward' that searches
in the buffer.
This bug report was last modified 3 years and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.