From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: Search StackOverflow and paste code snippets without leaving =?utf-8?b?dGhlCWVkaXRlZA==?= file Date: Sun, 5 Jan 2014 21:11:17 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1388956334 6072 80.91.229.3 (5 Jan 2014 21:12:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2014 21:12:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 05 22:12:17 2014 Return-path: Envelope-to: geh-help-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 1VzuzU-0006yN-7l for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jan 2014 22:12:12 +0100 Original-Received: from localhost ([::1]:59433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzuzT-0003ok-N1 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jan 2014 16:12:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzuzA-0003nm-Ll for help-gnu-emacs@gnu.org; Sun, 05 Jan 2014 16:11:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vzuz3-0001uJ-3j for help-gnu-emacs@gnu.org; Sun, 05 Jan 2014 16:11:52 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vzuz2-0001tR-Sl for help-gnu-emacs@gnu.org; Sun, 05 Jan 2014 16:11:45 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vzuyz-0005uE-84 for help-gnu-emacs@gnu.org; Sun, 05 Jan 2014 22:11:41 +0100 Original-Received: from 92-249-170-23.static.digikabel.hu ([92.249.170.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Jan 2014 22:11:41 +0100 Original-Received: from adatgyujto by 92-249-170-23.static.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Jan 2014 22:11:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 92.249.170.23 (Opera/9.80 (Windows NT 6.1) Presto/2.12.388 Version/12.16) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95271 Archived-At: Andrey Tykhonov gmail.com> writes: > > > > - There could be a message when the question is retrieved, so the > > user sees something is happening. Minor issue. > > Fixed (I hope a message is good enough: "Answer retrieved!") I meant a message during the retrieval ("Retrieving answer..."), because sometimes a few seconds elapses while the answer is retrieved and the user has no feedback then. > > Great! I dreamed about such ability! Ability from emacs to make a query > with auto-completion to the google. I tried helm but didn't discover it > enough to find it useful for me. > > It would very good for me also to have ability to make howdoi queries with > suggestions! I took a look at source code but didn't find nice solution > yet. Please share your code snippet. > I simply I copied the google suggest source and changed the action to howdoi: (setq helm-howdoi '((name . "howdoi google") (candidates . (lambda () (funcall helm-google-suggest-default-function))) (action . (("howdoi" . howdoi-query))) (volatile) (requires-pattern . 3) (delayed))) and then you can call howdoi via helm like this: (helm :sources 'helm-howdoi)