From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Help on isearch bindings WAS: [patch] Run occur command restricted to a region Date: Fri, 30 Dec 2016 12:46:01 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11443a8af8d8bb0544d8e034 X-Trace: blaine.gmane.org 1483073209 6424 195.159.176.226 (30 Dec 2016 04:46:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2016 04:46:49 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel , Tino Calancha To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 30 05:46:45 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMp5V-0000Ye-4U for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2016 05:46:41 +0100 Original-Received: from localhost ([::1]:38360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMp5a-0002Jm-3P for ged-emacs-devel@m.gmane.org; Thu, 29 Dec 2016 23:46:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMp4x-0002JT-7S for emacs-devel@gnu.org; Thu, 29 Dec 2016 23:46:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMp4w-0005Pc-B7 for emacs-devel@gnu.org; Thu, 29 Dec 2016 23:46:07 -0500 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMp4u-0005Lk-MA; Thu, 29 Dec 2016 23:46:04 -0500 Original-Received: by mail-wm0-x22b.google.com with SMTP id u144so83916518wmu.1; Thu, 29 Dec 2016 20:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=3pQcnBFRSVTRaPBxVZbpVWwfk1IFjVnlHUMVhFHFH2Q=; b=cSJjcj7lvLnvi7o8Hx3w2d+wVr1pr3gTwsEkkGKzfwiwxTH3uwBmBw0qY8a6S55Yhl z5VG7LysQlRfnv95g4elC8J/gEDmIvCXvGndtZ5+L/iK/dOdMTgwjwYywlCEYwHPH5nN EhqMcMcpQ0DviSy3y9udxmpGqCZhviWqxhIf6rpQIisU08hPuk0mzBRQ2GXa0L7i3mWT BdOX4I/qy7L5iMdQdN2xQzriQhSWIX30NXgQAYT8t7WcLOqJi/lfyhIq/oOfMvyhEjIE IwcNiHmDhxOJJRS8/97gDZbM/dQUtb8ai2dLZJeaUW35EVe3L93qhur9yinIiZek8Tpe GKlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=3pQcnBFRSVTRaPBxVZbpVWwfk1IFjVnlHUMVhFHFH2Q=; b=TqA95MWg3xx2hveFizjY0nwlA1eJX9+QlxIXSMtsSORFsV/cPzQRru65wnBbxAtxjD zRVnUUpLyjQm0jSOOWRUOxVAIXJp7VH9gaDVg+15rHeTA29S10w9ezDgLwq6BupqWYyr T9LY5Iz8DdSZ2tK9WkECxRyjdTyTu1UdhIbKs7UmNrGRXZh2+Q9I+HUAOX+B9HkhwGSR u6Y1rPnfMFcXpKOQS6LlkzIJ5jq5gYkGEUsnWxO8e2pofWAOc4MrrlyJFSv8HPeDUbjn nW7TgbnSQBGL+U3VG/4iRmj1+ji0sekS0BRx5ctaF72wHIUqBmCAaoDsnUcefGOAeL86 pUXg== X-Gm-Message-State: AIkVDXL/yYqOTXDZd4FzdT6RnAAgJpR9C2FKXkDl98R9zd/GOKRkMk5sZt9nP0Gw8Gia3f4nn0WTFs5kddj2HQ== X-Received: by 10.28.136.198 with SMTP id k189mr37428881wmd.24.1483073161580; Thu, 29 Dec 2016 20:46:01 -0800 (PST) Original-Received: by 10.80.135.165 with HTTP; Thu, 29 Dec 2016 20:46:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210985 Archived-At: --001a11443a8af8d8bb0544d8e034 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 30 December 2016 at 02:16, Drew Adams wrote: > > (define-key search-map "o" 'occur) > > +(define-key search-map "b" 'occur-backward) > > +(define-key search-map "f" 'occur-forward) > > FWIW, I don't think those keys (`M-s b' and `M-s f') should be > bound to those commands. If we want to bind the new commands > during Isearch then I suggest that the occur commands be grouped > on prefix key `M-s o': > > M-s oo occur > M-s ob occur-backward > M-s of occur-backward > While reading this thread, I realised that I never use the extra keybindings that are available during isearch. As the good Emacs user that I claim to be, I decided to check what bindings are available. Thus, I typed =E2=80=98C-s M-s ?=E2=80=99 At this point, I expected to get documentation for the keybindings for the prefix M=EF=BB=BF-=EF=BB=BFs but instead I was presented with a list of =E2= =80=9CGlobal Bindings Starting With M=EF=BB=BF-=EF=BB=BFs=EF=BB=BF:=E2=80=9D Why did that happen? I would call this a bug, but does others agree? Regards, Elias --001a11443a8af8d8bb0544d8e034 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 3= 0 December 2016 at 02:16, Drew Adams <drew.adams@oracle.com> wrote:
>=C2=A0 (define-key search-map "o"=C2=A0 =C2=A0 &= #39;occur)
> +(define-key search-map "b"=C2=A0 =C2=A0 'occur-backward= )
> +(define-key search-map "f"=C2=A0 =C2=A0 'occur-forward)=

FWIW, I don't think those keys (`M-s b' and `M-s f') sho= uld be
bound to those commands.=C2=A0 If we want to bind the new commands
during Isearch then I suggest that the occur commands be grouped
on prefix key `M-s o':

=C2=A0 M-s oo=C2=A0 =C2=A0occur
=C2=A0 M-s ob=C2=A0 =C2=A0occur-backward
=C2=A0 M-s of=C2=A0 =C2=A0occur-backward

While reading this thread, I realised that I never use the extra keybindi= ngs that are available during isearch. As the good Emacs user that I claim = to be, I decided to check what bindings are available.

=
Thus, I typed =E2=80=98C-s M-s ?=E2=80=99

At this point, I expected to get do= cumentation for the keybindings for the prefix M=EF=BB=BF-=EF=BB=BFs but in= stead I was presented with a list of =E2=80=9CGlobal Bindings Starting With= M=EF=BB=BF-=EF=BB=BFs=EF=BB=BF:=E2=80=9D

Why did = that happen? I would call this a bug, but does others agree?

=
Regards,
Elias
--001a11443a8af8d8bb0544d8e034--