From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Exposing Isearch toggleable options Date: Fri, 30 Oct 2015 10:42:03 +0000 Message-ID: References: <87611q7c3f.fsf@mail.linkov.net> <877fm5tefl.fsf@mail.linkov.net> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446201743 26803 80.91.229.3 (30 Oct 2015 10:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 10:42:23 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 30 11:42:23 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Zs78Y-0006Yq-MW for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2015 11:42:22 +0100 Original-Received: from localhost ([::1]:49589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs78X-00005m-Gj for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2015 06:42:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs78H-00005O-P1 for emacs-devel@gnu.org; Fri, 30 Oct 2015 06:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs78G-00038Q-Sl for emacs-devel@gnu.org; Fri, 30 Oct 2015 06:42:05 -0400 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:34195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs78G-000387-Kn for emacs-devel@gnu.org; Fri, 30 Oct 2015 06:42:04 -0400 Original-Received: by lbbwb3 with SMTP id wb3so47528746lbb.1 for ; Fri, 30 Oct 2015 03:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=XcJfEHbLbsZowRNKRe4yCJ2zTqdr7RuPIby2Owe+AE0=; b=CyjCK548AaWtjrg8b2b47YwV+HjJFJ0PJ9S1A0dcficc3butUhB3d5O+BJAUVQYELu rwfTE8pBkW76njsX2O6rQQ+Ra8aE71HzMP6DZ46VfHzm+H8OJ7igZr/PeCJqNR8gW9Ku RK8m9Jj1Y2Ngrqptmdsm0FQoi1Pk9tr7O7EM+PsosVJ/aDGVYEQ9/l0ACZzYpQEOVxEG IPjzOiTGzx9XcXVgGALMeel6hZmvNGckPpWPdJ7AaXcXPv90IgNmu5kgVvUXZ6ILZamO ePgOoeHmksS2e3u9mDQ131Vbn+oVdk5OXqq58tvHTE151OSd9M0s0ISZ5MxjongK4Yus NiMA== X-Received: by 10.112.78.100 with SMTP id a4mr3526910lbx.115.1446201723874; Fri, 30 Oct 2015 03:42:03 -0700 (PDT) Original-Received: by 10.112.91.106 with HTTP; Fri, 30 Oct 2015 03:42:03 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 7hv07cS_Y253s-JxVWjUfgj1ZRs X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192958 Archived-At: 2015-10-30 9:56 GMT+00:00 Artur Malabarba : > I'm leaning more towards other suggested solutions anyway. Ok. Thanks everyone for the feedback. I've see 3 good suggestions here on this thread, all of which I like better than my current solution. What I list below are actually slightly modified versions in order to help expose this stuff. I'm ditching the two-line minibuffer I originally suggested. All of the options below keep the minibuffer as a single line. Listed in my order of preference. 1. On the right-edge of the minibuffer (if there's enough space), display =E2=80=9C[C-h m] Mode help=E2=80=9D (or, if we're fine with rebindi= ng C-h here we can use just =E2=80=9C[C-h] Help=E2=80=9D). Hitting this key would the b= ring up `isearch-mode-help`. This is probably the most consistent option, as plenty of other Emacs features offer a similar (C-h help) indicator. If we go with this, I'll probably suggest some improvements to `isearch-mode-help`. 2. On the right-edge of the minibuffer (if there's enough space), display =E2=80=9C[M-s] Options=E2=80=9D. Hitting this key would then bring = up a hydra with all defined options under M-s (preferably something dynamically generated, and not hardcoded, though this is just a detail). This would be the prettiest option. Hydras also support delaying the display for a second or so, so people who know what they want wouldn't have to see it. 3. Display an information similar to the prompt I originally suggested, but on the mode-line. In items 1 and 2, we could display the indicators on an idle timer if prefe= rred. Here's what the minibuffer might look like in that situation: Isearch: search string [C-h] Help