From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Tykhonov Newsgroups: gmane.emacs.help Subject: Re: Search StackOverflow and paste code snippets without leaving the edited file Date: Fri, 10 Jan 2014 12:23:06 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1389349414 24469 80.91.229.3 (10 Jan 2014 10:23:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jan 2014 10:23:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 10 11:23:41 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 1W1ZFc-000812-Qw for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2014 11:23:40 +0100 Original-Received: from localhost ([::1]:56139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ZFc-0003MM-EO for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jan 2014 05:23:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ZFQ-0003MG-SY for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 05:23:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1ZFP-0000m1-AO for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 05:23:28 -0500 Original-Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:41064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1ZFP-0000lx-3p for help-gnu-emacs@gnu.org; Fri, 10 Jan 2014 05:23:27 -0500 Original-Received: by mail-ob0-f176.google.com with SMTP id vb8so4531792obc.7 for ; Fri, 10 Jan 2014 02:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=MVyziB23iBH174m4h9rwCcpesXleYOMBqNXTm3R2Wvo=; b=btj1dErfjXxl1Q39kNQ3zrLfA8xVXQGhQNtOWFvz4zRgH3BTAWq9OC6cNKFiIOLlYT CUyw0yM/4KBVcna6h50eFu5a97wYYVSbM5UFAeLF4AoCXIBkEtm0egP8IIhPaaSaCyZo Mjd7lmNrPqZPJKpyhAQ9O8Wp/P1JEdfdhHFRuEApL85lTXnzfxLmsiaXQFCwhabofv0P NJztwH962onshimHykoaUSm/yCxAZk8IDPcdSECbkbtiossCqyBONMdQwva/vjUmQfJK KTWXjPuHlKw/gmXqlsMYqnlbb0eao43l7eBjvxJYaOoFH2pbHFLAbGL22JyF+eX0b4qo dZXg== X-Received: by 10.182.28.35 with SMTP id y3mr5945089obg.55.1389349406382; Fri, 10 Jan 2014 02:23:26 -0800 (PST) Original-Received: by 10.76.169.42 with HTTP; Fri, 10 Jan 2014 02:23:06 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:95331 Archived-At: Great! I'll add this code snippet to the README. It makes howdoi much more usable. How do you think: may be it would be good idea to integrate this code with howdoi? Of course in case of helm availability. Yesterday howdoi was significantly improved. As I was mentioned there is for now major mode available in a pop up buffer and thus a little bit handy key bindings for navigation within questions. A message during the retrieval ("Retrieving answer...") has been added. Also html 2 text transformation was changed. Now links in a pop up buffer transforms to text-buttons so you can click or RET on it to browse a answer in a www browser. Also in general transformed answers looks much more better then before. (I keep going without any third party dependencies). Please let me know in case of any issues or about things which you don't like or would like to have improved. Thank you. Andrey 2014/1/5 Tom > 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) > > > >