From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#44522: 28.0.50; enhancement proposal for eww to provide finely grained back links Date: Sun, 08 Nov 2020 21:17:11 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9058"; mail-complaints-to="usenet@ciao.gmane.io" To: 44522@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 08 19:18:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbpGa-0002Ge-CS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 19:18:16 +0100 Original-Received: from localhost ([::1]:33616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbpGZ-0006gl-EA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 13:18:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbpGM-0006ew-Fx for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 13:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbpGM-00010a-5t for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 13:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbpGM-00062A-07 for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 13:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Nov 2020 18:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44522 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160485947223175 (code B ref -1); Sun, 08 Nov 2020 18:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Nov 2020 18:17:52 +0000 Original-Received: from localhost ([127.0.0.1]:33028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbpGB-00061j-Sr for submit@debbugs.gnu.org; Sun, 08 Nov 2020 13:17:52 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:50188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbpGA-00061b-Af for submit@debbugs.gnu.org; Sun, 08 Nov 2020 13:17:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbpG8-0006V4-Rc for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 13:17:49 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:41805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbpG7-0000wE-4T for bug-gnu-emacs@gnu.org; Sun, 08 Nov 2020 13:17:48 -0500 Original-Received: from localhost ([::ffff:197.157.34.177]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0009.000000005FA83629.00005392; Sun, 08 Nov 2020 18:17:12 +0000 Received-SPF: pass client-ip=95.85.24.50; envelope-from=support1@rcdrun.com; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/08 13:17:11 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192897 Archived-At: I would like to propose relatively simple function for `eww' that it becomes possible to obtain finely grained reference to HTML link. Reference: https://www.dougengelbart.org/content/view/116/#7j `w' key is already obtaining the document or link reference, which is good in itself. I am proposing that new function is implemented that allows to obtain reference: - to specific line number of HTML document on Internet - to specific search inside of HTML document on Internet - additionally it should include local file search to HTML document viewable by EWW I am using this below function to view HTML files straight from Dired for local files: (defun eww-dired (&optional file prefix) (interactive "p") (let ((shr-inhibit-images t) (file (or (car (dired-get-marked-files)) file))) (if current-prefix-arg (setq shr-inhibit-images t)) (eww-open-file file))) but that does not allow going to specific line or search in HTML document. The function if possible, should be bookmarkable by Emacs bookmark system. I have tried this below on eww buffer on WWW HTML file: ‘C-x r m ’ Set the bookmark for the visited file, at point. And it did not work. It would be best if this works at least for "at point" solution. Best would be if user can decide: - to link to line number in HTML (WWW or local file) - to link to specific search by marking region and obtaining bookmark - to link to annotated specific search by marking region, annotating the HTML part of the file and obtaining bookmark -- Thanks, Jean Louis ⎔ λ 🄯 𝍄 𝌡 𝌚