From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16258: 24.3.50; [PATCH] eww: Add new function of region-search. Date: Thu, 26 Dec 2013 14:56:04 +0100 Message-ID: <87ha9viumj.fsf@building.gnus.org> References: <87zjnoxq5u.fsf@dhcp-193-97.nrt.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1388066593 9868 80.91.229.3 (26 Dec 2013 14:03:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Dec 2013 14:03:13 +0000 (UTC) Cc: 16258@debbugs.gnu.org To: Kenjiro NAKAYAMA Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 26 15:03:18 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 1VwBWv-0006h1-W6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Dec 2013 15:03:18 +0100 Original-Received: from localhost ([::1]:45767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwBWv-0006mm-Es for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Dec 2013 09:03:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwBWm-0006ma-LK for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 09:03:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwBWg-0006qe-EH for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 09:03:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwBWg-0006qZ-AV for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 09:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VwBWg-00044U-27 for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2013 09:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2013 14:03:02 +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.138806654015570 (code B ref 16258); Thu, 26 Dec 2013 14:03:02 +0000 Original-Received: (at 16258) by debbugs.gnu.org; 26 Dec 2013 14:02:20 +0000 Original-Received: from localhost ([127.0.0.1]:43053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwBW0-000432-2x for submit@debbugs.gnu.org; Thu, 26 Dec 2013 09:02:20 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:44086) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwBVy-00042m-3r for 16258@debbugs.gnu.org; Thu, 26 Dec 2013 09:02:18 -0500 Original-Received: from 2.148.235.122.tmi.telenormobil.no ([2.148.235.122] helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VwBVi-0000oS-6r; Thu, 26 Dec 2013 15:02:02 +0100 In-Reply-To: <87zjnoxq5u.fsf@dhcp-193-97.nrt.redhat.com> (Kenjiro NAKAYAMA's message of "Thu, 26 Dec 2013 12:11:49 +0900") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1VwBVi-0000oS-6r MailScanner-NULL-Check: 1388671322.37973@dkZm+xlxonvXZ/8ph8cuRQ 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:82623 Archived-At: 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... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/