From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenjiro NAKAYAMA Newsgroups: gmane.emacs.bugs Subject: bug#16258: 24.3.50; [PATCH] eww: Add new function of region-search. Date: Fri, 27 Dec 2013 08:43:11 +0900 Message-ID: <8738lftbzk.fsf@dhcp-193-97.nrt.redhat.com> References: <87zjnoxq5u.fsf@dhcp-193-97.nrt.redhat.com> <87ha9viumj.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1388101457 4541 80.91.229.3 (26 Dec 2013 23:44:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Dec 2013 23:44:17 +0000 (UTC) Cc: 16258@debbugs.gnu.org, Kenjiro NAKAYAMA To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 00:44:22 2013 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 1VwKbG-0007VN-ER for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Dec 2013 00:44:22 +0100 Original-Received: from localhost ([::1]:47357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwKbG-00055k-3x for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Dec 2013 18:44:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwKb5-00051l-0I for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 18:44:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwKax-0002pQ-7z for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 18:44:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwKax-0002pL-4K for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 18:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VwKaw-0004UU-2R for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 18:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kenjiro NAKAYAMA Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2013 23:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16258 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 16258-submit@debbugs.gnu.org id=B16258.138810141117204 (code B ref 16258); Thu, 26 Dec 2013 23:44:01 +0000 Original-Received: (at 16258) by debbugs.gnu.org; 26 Dec 2013 23:43:31 +0000 Original-Received: from localhost ([127.0.0.1]:44793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwKaM-0004TH-VG for submit@debbugs.gnu.org; Thu, 26 Dec 2013 18:43:31 -0500 Original-Received: from mail-pa0-f46.google.com ([209.85.220.46]:61199) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwKaG-0004Sy-4h for 16258@debbugs.gnu.org; Thu, 26 Dec 2013 18:43:25 -0500 Original-Received: by mail-pa0-f46.google.com with SMTP id kp14so6777892pab.19 for <16258@debbugs.gnu.org>; Thu, 26 Dec 2013 15:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=6qbXId67vqrdfLa3HEDxnEuxmkmOWlTp5MttDzourw0=; b=vBr4SWu4gqXdYXigh89kveFFfKOaY5WXE5O0YxL2rccRxu+RsrZplYYzGag9M3Z1x9 +77VdTuig+hN4IUEXyTOaa9+YWZ+YVO/hwuUqJSQQjdQX2L8scyQc/mM2r6ccN5IoE4/ ztpKv5FhS+v7ydFX5NNq/VXvaPJ1OT0jdsQBgB6E9nD19EzSNI7uSNWImmihZObtrw/2 V9whaxiPPFjGx/s+H/YqycTxN4Cuc+7PsU3ORDU506bZnnkaw0xWwl/XBkSmF6+nIl+X fFdna3IH01D4uRHmmMrqe+cBq6m8xQfp6AEJzNauk9q1HkqepXswjlsjsce90CVNkR6C rwBw== X-Received: by 10.66.163.74 with SMTP id yg10mr46923988pab.57.1388101398727; Thu, 26 Dec 2013 15:43:18 -0800 (PST) Original-Received: from dhcp-193-97.nrt.redhat.com (nat-pool-nrt-t1.redhat.com. [66.187.238.10]) by mx.google.com with ESMTPSA id ka3sm57701225pbc.32.2013.12.26.15.43.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Dec 2013 15:43:17 -0800 (PST) User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.3 In-reply-to: <87ha9viumj.fsf@building.gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:82633 Archived-At: > Hm... so this would just use the default search engine to search for > whatever is in the region? Yes, that's right. It is not big function, sorry... > I'm not sure that that's a useful eww mode > command, but it might be a useful global command... Then, how about delete the key map and include the eww-search-region? I want to know how much eww should provide its utilities like this function. * delete >> + (define-key map [(meta s)(meta s)] 'eww-search-region) * remain >> +(defun eww-search-region (&optional beg end) >> + (interactive "r") >> + (eww (buffer-substring beg end))) Kenjiro larsi@gnus.org writes: > Kenjiro NAKAYAMA writes: > >> + (define-key map [(meta s)(meta s)] 'eww-search-region) > > [...] > >> +(defun eww-search-region (&optional beg end) >> + (interactive "r") >> + (eww (buffer-substring beg end))) > > Hm... so this would just use the default search engine to search for > whatever is in the region? I'm not sure that that's a useful eww mode > command, but it might be a useful global command...