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: Fri, 3 Jan 2014 17:51:32 +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 1388771535 24314 80.91.229.3 (3 Jan 2014 17:52:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2014 17:52:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 03 18:52:22 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 1Vz8uz-0000BX-TA for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jan 2014 18:52:22 +0100 Original-Received: from localhost ([::1]:51037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz8uz-00088M-9A for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jan 2014 12:52:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz8ui-00088D-TM for help-gnu-emacs@gnu.org; Fri, 03 Jan 2014 12:52:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz8ud-0006A2-2j for help-gnu-emacs@gnu.org; Fri, 03 Jan 2014 12:52:04 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:46833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz8uc-00069t-SE for help-gnu-emacs@gnu.org; Fri, 03 Jan 2014 12:51:59 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vz8ua-0007ml-2I for help-gnu-emacs@gnu.org; Fri, 03 Jan 2014 18:51:56 +0100 Original-Received: from 94-21-170-5.pool.digikabel.hu ([94.21.170.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jan 2014 18:51:56 +0100 Original-Received: from adatgyujto by 94-21-170-5.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jan 2014 18:51:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 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: 94.21.170.5 (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:95237 Archived-At: Andrey Tykhonov gmail.com> writes: > > I just recently finished new version of howdoi.el : > https://github.com/atykhonov/emacs-howdoi > > It was totally reimplemented. And now it doesn't require python's `howdoi` > command line tool. It works without it. Now that it does not need an external tool I tried it and it seems to work nicely. Good job. > > I was looking for a elisp library which will help to parse html. And I > found libxml-parse-html-region but I was not able to use it as my emacs > required to be re-compiled with libxml. Well, I recompiled it and now that > function is available for me but I decided to avoid usage of this function > as this dependency may be broken for someone else. So for html-parsing I > used regexps. May be that was wrong decision to use regexps... I would like > to hear your opinions about it. I think it's a good decision not to add external dependencies if it can be avoided. I liked it that the package is self contained and it does not need additional libraries to install. > Look forward for your comments, suggestions, opinions, feature requests!... Some ideas: - There could be a message when the question is retrieved, so the user sees something is happening. Minor issue. - A key could be added, so the user can jump to the question on stackoverflow from the howdoi buffer. - Sometimes there are links in the answer: E.g. Have a look at str_replace These could be rendered as links, so the user can click on them in the howdoi buffer. It occured to me it would be convenient to choose from a list of suggestions when inputting the search query, similary when searching on google, but this latter feature does not need to be added to howdoi, because helm already implemented it, so it's trivial to create a helm source which calls howdoi. I just mention it here, so potential users know they can easily enhance howdoi input with helm: https://github.com/emacs-helm/helm/blob/master/helm-net.el#L199