Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1411992imm; Wed, 6 Jun 2018 15:53:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXahcxPtO0b/F8zhc4Lxx101M+nYwKB32pPf5hspeRu44oA7YEgjS3VG1/hj32vohQFqST X-Received: by 2002:aa7:8345:: with SMTP id z5-v6mr4215916pfm.251.1528325587090; Wed, 06 Jun 2018 15:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528325587; cv=none; d=google.com; s=arc-20160816; b=onQhwNz6RJchMlFVxUuXu2pa2V25zeCHtNDgKtRXM6MPyHkdBtvUwRjVOxCaz8sb2c ciC9Nqdp0l0yMUBRglRAMJOQvCZT/VDvUv13tWe0jxkYi6C99ezLHclE810pRsu9IIyu eTGxeSRH54SOCL0v5b+CSXUUCcbapVDboWjAF8/hVeKtGtF3MSZYZKL9bRpmNPYQCtJv vZ6GhYiWBh5pVnGV3tw7nC8+sMBX9OW4yghFQO4dGmcR5J4CMg4VEMslSSW63AOOZt4k kIawjdXiTebcaSvjc4bggXtxXOt2zDNrabkVQjOE2ersU96TQAWq8kjaFyv3oHZj7HbM h9yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=CZ3JVPxd6uPrbk40EwldcalQXj6NfWOpHNwKP8Er69A=; b=aqmah884oZdv35BoVijCmidokMmMaVgMa0wd+lYFq9R5DWqs0etdNmGtIUVAzx0FEg RneoC4nV79qhRUMzqcDWlSq2HiMSSorVtB5Ph+jlJHWVSQKT1Bi5QcyYBoQXUtrqnWKG mPgZQBEc70KhKdJkbGrYs1CJ1TNlUGa+nMdSQ+Enk4OVKKlUaXSDD6IMlgSJMVDPhafo 2fwUxGEJk0CszDpAIJrd7y0WBH52DaLNVG1n+aIbrwVR2E7GtyJ8Qhqn4uJtYs9tnN6P 1ZnTGSWplcCD6BbM1mJEssPEEfDJ3pvO0iUxB5NZwc+lUHy/pDsq3BNrOz8itzHZ1rsc xc4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gouders.net header.s=gnet header.b=IgZNqoDS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u123-v6si49452816pfu.322.2018.06.06.15.52.52; Wed, 06 Jun 2018 15:53:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gouders.net header.s=gnet header.b=IgZNqoDS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753088AbeFFWfm (ORCPT + 99 others); Wed, 6 Jun 2018 18:35:42 -0400 Received: from services.gouders.net ([141.101.32.176]:47069 "EHLO services.gouders.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbeFFWfk (ORCPT ); Wed, 6 Jun 2018 18:35:40 -0400 Received: from localhost (ltea-047-066-034-138.pools.arcor-ip.net [47.66.34.138]) (authenticated bits=0) by services.gouders.net (8.14.8/8.14.8) with ESMTP id w56MX1As005080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 7 Jun 2018 00:33:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gouders.net; s=gnet; t=1528324382; bh=4i4VjLWmi2ccN+YngtsbPAxDcRfyPZqXUUaNM6ScMek=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=IgZNqoDSuwwB3EEhVbRQ4l/mJLxOHsv/0YqCXpgPN5v6FBlXKW9fJVlFwYtj+0rsy pGi9ykFfIU4YwnqqX4p+VVwzGgngfbmXdxnxyaW/X+g0RpVX/9XMQ6uPw0Q55jzprz wO0D1pFrVqrDOOvNJWPLywvhV17bRTKiRHerehNs= From: Dirk Gouders To: Randy Dunlap Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 0/1] mconf: Emacs-like isearch In-Reply-To: (Randy Dunlap's message of "Wed, 6 Jun 2018 15:24:06 -0700") References: <20180606215616.12817-1-dirk@gouders.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Date: Thu, 07 Jun 2018 00:32:59 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Randy Dunlap writes: > On 06/06/2018 02:56 PM, Dirk Gouders wrote: >> Hello, >> >> being an Emacs user, I frequently find myself pressing CTRL-s in mconf >> to search for some menu entry, especially in large menus. >> >> I decided to implement a basic isearch in mconf and would like to hear >> if others find this functionality useful, as well. >> >> The new functionality is started with pressing CTRL-s followed by >> characters that form the search string. To search for further >> occurences of an entered string, press CTRL-s instead of further >> characters. >> >> For example: to navigate to the USB device drivers, press CTRL-s de ENTER ENTER usb ENTER ENTER > > Not being an emacs user, what is the "de" for above? "de" (with my .config) causes a match for "Device Drivers" -- no other menu entry matching the string "de" is befor that entry. > >> Pressing just CTRL-s subsequently results in line-by-line navigation >> through the menu (search for empty strings). >> >> The isearch is terminated by pressing either ESC ESC or ENTER. >> >> Because I expect that errors are found in the code and changes are requested, I >> completely left out the documentation part and will add it to V2 >> should anyone find this functionality useful. > > Hm, it seems to take 2 entries of Ctrl-s to begin the search?? > No, it takes 2 entries of Ctrl-s to display the "isearch:" prompt, > but entering one Ctrl-s + a string will display it also. > > Anyway, I am having trouble getting the USB drivers example to work. Yes, I should have stated that this example explains what _I_ have to do to navigate to the USB device drivers. Probably, "de" in your case matches some other menu entry and the navigation requires more or other input. I'm sorry for causing confusion. Dirk >> Thanks, >> >> Dirk >> >> Dirk Gouders (1): >> Emacs-like isearch for mconf. >> >> scripts/kconfig/lxdialog/dialog.h | 5 ++ >> scripts/kconfig/lxdialog/menubox.c | 140 ++++++++++++++++++++++++++++++++++++- >> scripts/kconfig/lxdialog/util.c | 1 + >> 3 files changed, 145 insertions(+), 1 deletion(-) >> > > thanks,