]> code.delx.au - gnu-emacs/commit
Fix an Isearch var to be a string (Bug#23038)
authorKaushal Modi <kaushal.modi@gmail.com>
Mon, 21 Mar 2016 23:28:27 +0000 (00:28 +0100)
committerMichael Heerdegen <michael_heerdegen@web.de>
Tue, 22 Mar 2016 00:05:24 +0000 (01:05 +0100)
commit91e667692ba1362ca1334b8d58fd16c305ad5e2a
treebc51f2fd488e95829932bed60a25f686fe8386d7
parent76ef52267cf887e3e1aa6d25b3b16dd0601dd459
Fix an Isearch var to be a string (Bug#23038)

* isearch.el (isearch--describe-regexp-mode): The `description' var
  needs to always be a string.  Add the missing default case for the
  cond form that ensures that.

Before this bug fix, for the events when `regexp-function' and
`search-default-mode' both were nil, `description' also stayed nil.  So
when `space-before' was non-nil, the "non-string" `description'
(with a value of nil) got passed as an argument to
`replace-regexp-in-string' (where a string was expected).  That caused
the error described in Bug#23038.
lisp/isearch.el