From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#11378: 24.1.50; Suggestion: Let M-i in isearch cycle `search-invisible' Date: Sun, 29 Apr 2012 23:04:06 +0200 Message-ID: References: <87haw32hly.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04088e9f68ccb804bed7aff6 X-Trace: dough.gmane.org 1335733559 2421 80.91.229.3 (29 Apr 2012 21:05:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2012 21:05:59 +0000 (UTC) Cc: michael_heerdegen@web.de, 11378@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 29 23:05:58 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SObJc-0001IV-P3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Apr 2012 23:05:57 +0200 Original-Received: from localhost ([::1]:33853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SObJb-0005nZ-Uf for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Apr 2012 17:05:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SObJZ-0005ln-5v for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 17:05:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SObJX-00087J-Bp for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 17:05:52 -0400 Original-Received: from [140.186.70.43] (port=57077 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SObJX-00086s-5Z for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 17:05:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SObKg-0000gq-ED for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 17:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Apr 2012 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11378 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11378-submit@debbugs.gnu.org id=B11378.13357335622589 (code B ref 11378); Sun, 29 Apr 2012 21:07:02 +0000 Original-Received: (at 11378) by debbugs.gnu.org; 29 Apr 2012 21:06:02 +0000 Original-Received: from localhost ([127.0.0.1]:58111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SObJh-0000fi-Ub for submit@debbugs.gnu.org; Sun, 29 Apr 2012 17:06:02 -0400 Original-Received: from mail-lb0-f172.google.com ([209.85.217.172]:61006) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SObJg-0000fF-HW for 11378@debbugs.gnu.org; Sun, 29 Apr 2012 17:06:01 -0400 Original-Received: by lbbgm13 with SMTP id gm13so1378559lbb.3 for <11378@debbugs.gnu.org>; Sun, 29 Apr 2012 14:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WDfJZKZ5lGRk7OoVY8FzOJUn4xtlwq9omVLgjQLCvSA=; b=u/IIEUoquU1Hte5KQMCAR3m0y5bbJBPz6dRdDfks3Gr4oYYEid5ChoCGGtzl+gcaUS qrbaaBDtdKzfp5BimfNiUh0lZYtPWQ67xDXJ85o5Rf5paEGW8oUhY1wYMXAMH41GtshX 8X7Ab6P9tZEuw+QJ89gj78wn+2NxnBgrihiGUv2v9tvkPb75a1p9G8q2pyFMigZ+uPgp EWERDw7N6egB3jtxb0+D3HWnLFvebzDkNjJ5gtJ0+aaegLWkZWXO+SMSlFGr/byvcVwC 4FpO9ACKvY9ufr43M/OyyNtQln3Zh8k9SE750AglKI4fBjTGv04m2eF9e5u4aRQzaySr xJFw== Original-Received: by 10.152.103.239 with SMTP id fz15mr2265075lab.42.1335733476969; Sun, 29 Apr 2012 14:04:36 -0700 (PDT) Original-Received: by 10.112.74.232 with HTTP; Sun, 29 Apr 2012 14:04:06 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59636 Archived-At: --f46d04088e9f68ccb804bed7aff6 Content-Type: text/plain; charset=UTF-8 On Sun, Apr 29, 2012 at 16:46, Stefan Monnier wrote: > > (defun isearch-cycle-search-invisible () > > "Cycle the value of `search-invisible'. > > Bound to \\\\[isearch-cycle-search-invisible] in > `isearch'." > > (interactive) > > (setq search-invisible > > (case search-invisible > > ((nil) t) > > ((t) 'open) > > (else nil))) > > I personally find the "search within hidden text without opening it" to > be a completely useless option, so I couldn't want to cycle between all > 3 options, but only between nil and `open'. > > > (define-key isearch-mode-map [?\M-i] > > 'isearch-cycle-search-invisible) > > You'll have to place it in the M-s prefix map instead, which was setup > specifically to avoid eating up more key combinations which currently > make isearch exit. > > > So, it would be good if the user could change the value of > > `search-invisible' as well directly from isearch. > > I'm not sure I'd find it useful, but I can imagine some people might > like it and there's plenty of room under the M-s prefix for such > a thing. > > It is in my opinion very useful in org-mode. --f46d04088e9f68ccb804bed7aff6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Apr 29, 2012 at 16:46, Stefan Monnier <monnier@iro.umontrea= l.ca> wrote:
> =C2=A0 =C2=A0(defun isearch-cycle-search-invisible ()
> =C2=A0 =C2=A0 =C2=A0"Cycle the value of `search-invisible'. > =C2=A0 =C2=A0Bound to \\<isearch-mode-map>\\[isearch-cycle-searc= h-invisible] in `isearch'."
> =C2=A0 =C2=A0 =C2=A0(interactive)
> =C2=A0 =C2=A0 =C2=A0(setq search-invisible
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(case search-invisible
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((nil) t)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((t) =C2=A0 'open)=
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(else =C2=A0nil)))

I personally find the "search within hidden text without opening it&qu= ot; to
be a completely useless option, so I couldn't want to cycle between all=
3 options, but only between nil and `open'.

> =C2=A0 =C2=A0(define-key isearch-mode-map [?\M-i]
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'isearch-cycle-search-invisible= )

You'll have to place it in the M-s prefix map instead, which was setup<= br> specifically to avoid eating up more key combinations which currently
make isearch exit.

> So, it would be good if the user could change the value of
> `search-invisible' as well directly from isearch.

I'm not sure I'd find it useful, but I can imagine some people migh= t
like it and there's plenty of room under the M-s prefix for such
a thing.

It is in my opinion very useful in org-mo= de.=C2=A0

--f46d04088e9f68ccb804bed7aff6--