GNU bug report logs -
#22991
25.0.92: C-u C-s does not display "Regexp I-search:" in the echo area
Previous Next
Reported by: Kaushal Modi <kaushal.modi <at> gmail.com>
Date: Fri, 11 Mar 2016 19:50:02 UTC
Severity: normal
Found in version 25.0.92
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 22991 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
The below patch fixes this bug for me.
I simply promoted the priority of isearch-regexp in that cond.
I hope I am not overlooking something else by doing so.
With that, now C-u C-s shows "Regexp I-search:" when the search of
search-default-mode is either nil or character-fold-to-regexp.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index b8ada2c..47dedfa 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -2575,12 +2575,12 @@ isearch--describe-regexp-mode
(setq regexp-function #'word-search-regexp))
(let ((description
;; Don't use a description on the default search mode.
- (cond ((equal regexp-function search-default-mode) "")
+ (cond (isearch-regexp "regexp ")
+ ((equal regexp-function search-default-mode) "")
(regexp-function
(and (symbolp regexp-function)
(or (get regexp-function 'isearch-message-prefix)
"")))
- (isearch-regexp "regexp ")
;; We're in literal mode. If the default mode is not
;; literal, then describe it.
((functionp search-default-mode) "literal "))))
Apologies for earlier misunderstanding that this bug had to do with
character-fold.el.
--
Kaushal Modi
[Message part 2 (text/html, inline)]
This bug report was last modified 9 years and 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.