[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple isearch concerns

From: Gregory Heytings
Subject: Re: Simple isearch concerns
Date: Wed, 07 Apr 2021 17:03:03 +0000

When in your original test case '(pop-to-buffer "*Occur*")' is replaced with '(kill-current-buffer)':

 (define-key isearch-mode-map (kbd "M-s o")
   #'(lambda ()
       (call-interactively 'isearch-occur)

then it fails with:

 Error in post-command-hook (isearch-post-command-hook): (error "Selecting deleted 

All other uses of 'isearch--current-buffer' have a check for a live buffer, e.g.

 (unless (eq (current-buffer) isearch--current-buffer)
   (when (buffer-live-p isearch--current-buffer)
     (with-current-buffer isearch--current-buffer

Indeed, updated patch attached.

Attachment: 0001-Terminate-isearch-when-point-has-moved-to-another-bu.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]