From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: Exposing Isearch toggleable options Date: Fri, 30 Oct 2015 15:29:32 +0100 Message-ID: <87mvv0pgz7.fsf@gmail.com> References: <87611q7c3f.fsf@mail.linkov.net> <877fm5tefl.fsf@mail.linkov.net> 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 1446215371 28798 80.91.229.3 (30 Oct 2015 14:29:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 14:29:31 +0000 (UTC) Cc: emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 30 15:29:26 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 1ZsAgH-0004nd-71 for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2015 15:29:25 +0100 Original-Received: from localhost ([::1]:50990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsAgG-0000yM-Mh for ged-emacs-devel@m.gmane.org; Fri, 30 Oct 2015 10:29:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsAg3-0000y6-13 for emacs-devel@gnu.org; Fri, 30 Oct 2015 10:29:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsAfz-0000Wm-0D for emacs-devel@gnu.org; Fri, 30 Oct 2015 10:29:10 -0400 Original-Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:36288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsAfy-0000Vx-RP for emacs-devel@gnu.org; Fri, 30 Oct 2015 10:29:06 -0400 Original-Received: by wicfx6 with SMTP id fx6so11784848wic.1 for ; Fri, 30 Oct 2015 07:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=wO4WOE4ZNPH0iawHod1iyUkz5DXO9MQBfGhHVUpq8QE=; b=ljRBAhquk5utC5VzoARZ62M4eTm5Zij58SyMtZZ+asXHuHUF60wlUKsMNLvRMwfJLA +hOEiX1ZyhLOL4K03O9LyQ/fGNHLY82IQosCd0Ln8SZNa9mR+lL7qk8qFQruq6mz98py aSDMk5xH8H56qTKYuP5a6Uefj0iR9nT+Wms+V57aSGuBZyhevlfkgDE/46GOw7WwGq4B J7M1qxtLWzpcpHFE0wuVv1te4BgGGL0B8UPSJgP7kJbThUsryOa6q4+iinhuQa6UpNQU sH/p2sdwZ1RD36aR1NzvpVQIY4OPy4dLydBmsbI9CzDY9kxp9bRpb90OYK6TkMO6Ee0p eQgg== X-Received: by 10.194.81.103 with SMTP id z7mr8867011wjx.108.1446215346280; Fri, 30 Oct 2015 07:29:06 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id bk2sm7369265wjc.3.2015.10.30.07.29.05 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 30 Oct 2015 07:29:05 -0700 (PDT) In-Reply-To: (Artur Malabarba's message of "Fri, 30 Oct 2015 10:42:03 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::231 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:192970 Archived-At: Artur Malabarba writes: > 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 brin= g 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. It just occurred to me that Ediff does it in the exact same way as the Hydra approach. Initially, it only says "Type ? for help". The "?" key is a toggle, just like "C-o" is in my previous proposition. Pressing the actual keys that are described in the doc popup doesn't close the doc popup, which could be replicated with `:exit nil'. And the docstring of Ediff is actually customizable through e.g. `ediff-long-help-message-word-mode', although it's not automatically synced with the keymap, like Hydra does it. I suggest that you look at the Ediff interface if you're not yet familiar with it. Just don't forget to: (setq ediff-window-setup-function 'ediff-setup-windows-plain) or you'll get the horrible multi-frame default setting.