(define-key global-map "\C-\M-r" 'alpha-isearch-backward-visible) ;; also for dired filename search (define-key global-map "\C-\M-s" 'alpha-isearch-visible) (defun alpha-isearch-backward-visible () (interactive) (let ((search-invisible)) (isearch-backward-regexp))) (defun alpha-isearch-visible () (interactive) (let ((search-invisible)) ;; notwork ;; (call-interactively #'query-replace-regexp) (isearch-forward-regexp)))
On 4/1/14, Ali Tofigh <alix.tof...@gmail.com> wrote: > Sometimes I just want to do an incremental search in the visible text > of a partially folded org file. In other words, I want the search to > ignore text that is invisible due to folding. I know that there is an > org-copy-visible command. Is there an equivalent command for > searching? > > /ali > > -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.