From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: eww-wont-follow-link... Date: Sun, 23 Aug 2015 23:01:53 +1000 Message-ID: <87fv3ayx8e.fsf@gmail.com> References: <8737zyb7q9.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1440334956 5253 80.91.229.3 (23 Aug 2015 13:02:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2015 13:02:36 +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 Aug 23 15:02:32 2015 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 1ZTUut-0005Aa-SB for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Aug 2015 15:02:32 +0200 Original-Received: from localhost ([::1]:36589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTUut-0006Oe-0A for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Aug 2015 09:02:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTUuT-0006LR-L2 for help-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:02:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTUuP-0005pO-BV for help-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:02:05 -0400 Original-Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:33664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTUuP-0005pJ-3b for help-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:02:01 -0400 Original-Received: by pacti10 with SMTP id ti10so3217575pac.0 for ; Sun, 23 Aug 2015 06:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=/u3kdI4yY2lMjpqcxFPigryLwAYM9XtBrE8WZ2RP+YE=; b=oXWpM5YpBnmJT965MDv1Su96fqO3P+eK2yxovO7v+gG69Sp+GYoKRqwaqVPWMbOXDb ApO/bbCxGtAp79uY4ESKgVzeE5KKXMKiGv91f3fgGt9+LVPNW/s5ddvWuQ+MhwAgPImz V2puRPMhZgD5SZ3RbhdvdZ7sgJQHe+nTc3BSohYggqjZrdT52FAmZu6KaRxgm4Dtf3h/ x9XHMyThtumn0WeCxoQAIj9N8AyhVP+HPXHTgOIc+IfVZgxH6+Xjg5juc3Mg5h9F9I5f gL0DPFzorMfMT6mHMO51ChWDnmD1fzVl8FSDFXpKoC+6THyzu6uljpWDDDwROlFpBWl8 pdLw== X-Received: by 10.66.55.105 with SMTP id r9mr35925146pap.143.1440334919149; Sun, 23 Aug 2015 06:01:59 -0700 (PDT) Original-Received: from localhost (ppp118-209-122-14.lns20.mel4.internode.on.net. [118.209.122.14]) by smtp.gmail.com with ESMTPSA id a1sm4077017pdp.61.2015.08.23.06.01.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Aug 2015 06:01:57 -0700 (PDT) In-reply-to: <8737zyb7q9.fsf@free.fr> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22b 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:106777 Archived-At: Julien Cubizolles writes: > I can't get eww to work anymore, every call to eww-follow-link > fails with "no link under point". > > I tried it for instance on the following google url, in a emacs > -Q scratch buffer: > > --8<---------------cut > here---------------start------------->8--- (require 'eww') > http://www.google.com --8<---------------cut > here---------------end--------------->8--- Reading the relevant code, it seems to me that `eww-follow-link` probably expects to be called on a link in text that's been rendered by `shr`, which would have put the text property `shr-url` on URLs in the text. Thus, * the documentation for `eww-follow-link` needs to note this, so that users don't expect to be able to use this command outside of `eww` or `shr`-rendered text; or * the code for `eww-follow-link` should be modified to use a method of obtaining the URL at point that doesn't involve a text property having been set. Either way, it might be worth filing a bug about this, using the `report-emacs-bug` command. Alexis.