From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Incremental search only within visble text Date: Tue, 1 Apr 2014 14:47:07 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV6WT-0003HW-2F for emacs-orgmode@gnu.org; Tue, 01 Apr 2014 17:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV6WS-0001P8-8J for emacs-orgmode@gnu.org; Tue, 01 Apr 2014 17:47:09 -0400 Received: from mail-qa0-x235.google.com ([2607:f8b0:400d:c00::235]:46190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV6WS-0001P1-1B for emacs-orgmode@gnu.org; Tue, 01 Apr 2014 17:47:08 -0400 Received: by mail-qa0-f53.google.com with SMTP id w8so10012168qac.26 for ; Tue, 01 Apr 2014 14:47:07 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ali Tofigh Cc: Mailinglist emacs-orgmode (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 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.