From unknown Thu Aug 21 14:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37724: HTML Markdown and Emacs Outline Hash Links in DEMO not working Resent-From: "Kevin J. McCarthy" Original-Sender: "Debbugs-submit" Resent-CC: bug-hyperbole@gnu.org Resent-Date: Sun, 13 Oct 2019 04:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37724 X-GNU-PR-Package: hyperbole X-GNU-PR-Keywords: To: 37724@debbugs.gnu.org X-Debbugs-Original-To: bug-hyperbole@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157094045015826 (code B ref -1); Sun, 13 Oct 2019 04:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2019 04:20:50 +0000 Received: from localhost ([127.0.0.1]:34734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJVNB-00047C-PO for submit@debbugs.gnu.org; Sun, 13 Oct 2019 00:20:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:58961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJVN9-000471-8y for submit@debbugs.gnu.org; Sun, 13 Oct 2019 00:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34339) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJVN7-00049O-T8 for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 00:20:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJVN6-000554-Lx for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 00:20:45 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:58069) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJVN6-00054a-3g for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 00:20:44 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 204684DD for ; Sun, 13 Oct 2019 00:20:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sun, 13 Oct 2019 00:20:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8t8.us; h=date :from:to:subject:message-id:mime-version:content-type; s=mesmtp; bh=H6tpe6sxv7c5kq5738J+iUhdlicJelhE4XUW0zRBPKQ=; b=bJTqGH05CH/G 7QzUacYJ1ha3pkkNowJPGGfNLjR5s8MWrXsKBnNA+k74EQpisZ2Ew2SAQkXr1/3O 8Qv6pnuFDlvVA7MiAQq4lzolgOC8rDk0xXaLf8MTLI327l8X0/XvLOYD5nNI8rhh +XbsxByx9aiZuKLOGByrZIp7MVEZE30= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=H6tpe6sxv7c5kq5738J+iUhdlicJe lhE4XUW0zRBPKQ=; b=tQPkXjbm57Uj5F4NQxjjoSQKEgyKQe4qLMSH5Gd5C/xP+ TLbgdPmMjlAI3H3Wx6fPv6kwkGyKtu/LUAmnDBC9+vGNAoyrw/za77h+lXW4ZyvG tqylpZBzyHSyhJosTJ9BsvBzmoxjygRGuFCsTeLuR5WQV7X2NSy1WVj33Ryxp1WO SW3EOC0gZNYF3sWZ3U7ZgJZI7yaKxfbKEuE+97FSNXe5zCB7fMKNdbxr2UOiYqyu HgvhzKH2o8kAp1TuHketcamTKZm+xTbLu+u2Pw0Z4CqoGiplXApWN8ASP8Bu8LM5 ClEir4HkscA8k5lPJXAPnNuRO5GZ+BGwMNWhR5IjQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieekgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggufgesthdttddttd ervdenucfhrhhomhepfdfmvghvihhnucflrdcuofgtvegrrhhthhihfdcuoehkvghvihhn seekthekrdhusheqnecukfhppeduudegrddviedrvdefjedrgeehnecurfgrrhgrmhepmh grihhlfhhrohhmpehkvghvihhnseekthekrdhushenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from qinghai.lan (114-26-237-45.dynamic-ip.hinet.net [114.26.237.45]) by mail.messagingengine.com (Postfix) with ESMTPA id 20D4ED6005A for ; Sun, 13 Oct 2019 00:20:41 -0400 (EDT) Received: from kjm by qinghai.lan with local (Exim 4.92) (envelope-from ) id 1iJVN0-0001MG-Od for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 12:20:38 +0800 Date: Sun, 13 Oct 2019 12:20:38 +0800 From: "Kevin J. McCarthy" Message-ID: <20191013042038.GB3700@qinghai.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Autocrypt: addr=kevin@8t8.us; prefer-encrypt=mutual; keydata= mDMEXUYSnhYJKwYBBAHaRw8BAQdAc7hzvhBQBt+lvyFnFNV5rU7JTQQEL8m99uohJvQGlf+0IiJ LZXZpbiBKLiBNY0NhcnRoeSIgPGtldmluQDh0OC51cz6IkAQTFggAOBYhBOPuDxjOXA4T6rpoqJ uLpSK5BwtoBQJdRhKeAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEJuLpSK5BwtoQpQBA P+1pX+GwPx4hoQVba7OGp/grcwU8BfLXXCPA+4YxYzcAQDH/YROAjdKhiUY4Bum6BhfDSREGOvw EehChH5ph9jlCLg4BF1GEp4SCisGAQQBl1UBBQEBB0BnO8ZqDk2jMKqYQ/ScfsKdsVgicyUz306 +NsOlzSdRSQMBCAeIeAQYFggAIBYhBOPuDxjOXA4T6rpoqJuLpSK5BwtoBQJdRhKeAhsMAAoJEJ uLpSK5Bwtona0A/3ewRZvb9J5sX9rRhTGg1rGNMKAV3a+aQuxwgZP5pfoTAP4uQxv/L7tqR0tNM 2ZCqilZXJ+/b7sjZlnyq3XfrTxwBA== OpenPGP: id=ADEF768480316BDA; url=http://www.8t8.us/configs/80316BDA.asc.pubkey; preference=signencrypt User-Agent: Mutt/1.12.2+152 (e4c176b3) (2019-10-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.21 X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I use: Editor: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) Hyperbole: 7.0.7 Sys Type: x86_64-pc-linux-gnu OS Type: gnu/linux Window Sys: x News Reader: Gnus v5.13 In the DEMO file under * Implicit Buttons ** Implicit Path Links *** HTML Markdown and Emacs Outline Hash Links The example "man/hyperbole.html#Smart-Keys" gives me an error message (hpath:find): "man/hyperbole.html" does not exist The same for "README.md#why-was-hyperbole-developed": (hpath:find): "README.md" does not exist If I (find-file) from the DEMO, I see man/hyperbole.html and README.md both exist in the path relative to DEMO. The path and line/column numbers examples work fine: "HY-ABOUT", "HY-ABOUT:10", "HY-ABOUT:17:7". Also, the hash links within the DEMO file are working fine, e.g. "#Org-Mode". Thank you, -Kevin From unknown Thu Aug 21 14:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37724: HTML Markdown and Emacs Outline Hash Links in DEMO not working Resent-From: "Kevin J. McCarthy" Original-Sender: "Debbugs-submit" Resent-CC: bug-hyperbole@gnu.org Resent-Date: Sun, 13 Oct 2019 11:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37724 X-GNU-PR-Package: hyperbole X-GNU-PR-Keywords: To: 37724@debbugs.gnu.org Received: via spool by 37724-submit@debbugs.gnu.org id=B37724.157096751311774 (code B ref 37724); Sun, 13 Oct 2019 11:52:02 +0000 Received: (at 37724) by debbugs.gnu.org; 13 Oct 2019 11:51:53 +0000 Received: from localhost ([127.0.0.1]:35284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJcPg-00033q-Va for submit@debbugs.gnu.org; Sun, 13 Oct 2019 07:51:53 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:43117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJcPf-00033c-ND for 37724@debbugs.gnu.org; Sun, 13 Oct 2019 07:51:52 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id CAD994F1 for <37724@debbugs.gnu.org>; Sun, 13 Oct 2019 07:51:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 13 Oct 2019 07:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8t8.us; h=date :from:to:subject:message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=mesmtp; bh=n/vyW4+5F1n l9zJptsj3jtHHf42LjtIiuElRgOn2yRk=; b=nf4wHRVIBniWuq1QizElHS8ubAL tnFt2BL2BpNeVNfA+Q4fPfNH8FXzeEnkQbRABi0ugVMPJ+Sxl+SgX3NRbonVRDF3 N2LB7aTZgG+lKVGUKBhP9pLU1tINPX51HRN2REhmKXYZNefDBY6XhHmyiuJq3e0F EqPEl0TLpUQyel2c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=n/vyW4+5F1nl9zJptsj3jtHHf42LjtIiuElRgOn2y Rk=; b=uRXIbrvNkLyA0Fn7q1WfBiyI2NZmTBok3n5pHFOABtLDvVlv/wdLowQd8 agX37sAISRu4ZYEB/Fieu7U0VqvYAFrcpOCPnhNF1zxwSCHuhrFG/wneeZrz9Op5 CB1jYoL4TCTfTB7vQsBpSNDKpuC4f6BKGnJEf7UjXPZEeMkwHbAHideJLXTK5TXC SmGbqEo+MYojQHJ9pYEShj26HpowxMiSmt7l1+2Y5aVUIkeyjrIXdDsq4x5wggd5 vOLLuNVI1PvHh/IV+zyyNdbjOaamy3ZVfi7790zwYiJYzRpSRXllQ3JeU1HWhJmP imDV1a2b7Xtb2vrLFXs7PRx7MSJuA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieelgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtugfgjggfsehtke dttddtreejnecuhfhrohhmpedfmfgvvhhinhculfdrucfotgevrghrthhhhidfuceokhgv vhhinheskehtkedruhhsqeenucfkphepuddugedrvdeirddvfeejrdegheenucfrrghrrg hmpehmrghilhhfrhhomhepkhgvvhhinheskehtkedruhhsnecuvehluhhsthgvrhfuihii vgeptd X-ME-Proxy: Received: from qinghai.lan (114-26-237-45.dynamic-ip.hinet.net [114.26.237.45]) by mail.messagingengine.com (Postfix) with ESMTPA id E1B0F80059 for <37724@debbugs.gnu.org>; Sun, 13 Oct 2019 07:51:44 -0400 (EDT) Received: from kjm by qinghai.lan with local (Exim 4.92) (envelope-from ) id 1iJcPW-0003Yx-KU for 37724@debbugs.gnu.org; Sun, 13 Oct 2019 19:51:42 +0800 Date: Sun, 13 Oct 2019 19:51:42 +0800 From: "Kevin J. McCarthy" Message-ID: <20191013115142.GF3700@qinghai.lan> References: <20191013042038.GB3700@qinghai.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191013042038.GB3700@qinghai.lan> Autocrypt: addr=kevin@8t8.us; prefer-encrypt=mutual; keydata= mDMEXUYSnhYJKwYBBAHaRw8BAQdAc7hzvhBQBt+lvyFnFNV5rU7JTQQEL8m99uohJvQGlf+0IiJ LZXZpbiBKLiBNY0NhcnRoeSIgPGtldmluQDh0OC51cz6IkAQTFggAOBYhBOPuDxjOXA4T6rpoqJ uLpSK5BwtoBQJdRhKeAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEJuLpSK5BwtoQpQBA P+1pX+GwPx4hoQVba7OGp/grcwU8BfLXXCPA+4YxYzcAQDH/YROAjdKhiUY4Bum6BhfDSREGOvw EehChH5ph9jlCLg4BF1GEp4SCisGAQQBl1UBBQEBB0BnO8ZqDk2jMKqYQ/ScfsKdsVgicyUz306 +NsOlzSdRSQMBCAeIeAQYFggAIBYhBOPuDxjOXA4T6rpoqJuLpSK5BwtoBQJdRhKeAhsMAAoJEJ uLpSK5Bwtona0A/3ewRZvb9J5sX9rRhTGg1rGNMKAV3a+aQuxwgZP5pfoTAP4uQxv/L7tqR0tNM 2ZCqilZXJ+/b7sjZlnyq3XfrTxwBA== OpenPGP: id=ADEF768480316BDA; url=http://www.8t8.us/configs/80316BDA.asc.pubkey; preference=signencrypt User-Agent: Mutt/1.12.2+152 (e4c176b3) (2019-10-01) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) The patch I posted in bug#37729 seems to have partly fixed this problem too: modified hbut.el @@ -1224,6 +1224,7 @@ excluding delimiters, not just one." (hattr:get 'hbut:current 'lbl-key) (hattr:set 'hbut:current 'loc (save-excursion (hbut:key-src 'full))) + (hattr:set 'hbut:current 'dir default-directory) (hattr:set 'hbut:current 'categ is-type) (or (hattr:get 'hbut:current 'args) (not (listp args)) "README.md#why-was-hyperbole-developed" now seems to work. "man/hyperbole.html#Smart-Keys" opens the man/hyperbole.html file, but it isn't rendered so it gives the error: hyperbole.html - Section ‘Smart Keys’ not found in the visible buffer portion I don't know if that is expected behavior or not. From unknown Thu Aug 21 14:53:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Kevin J. McCarthy" Subject: bug#37724: closed (Re: bug#37724: HTML Markdown and Emacs Outline Hash Links in DEMO not working) Message-ID: References: <20191013042038.GB3700@qinghai.lan> X-Gnu-PR-Message: they-closed 37724 X-Gnu-PR-Package: hyperbole Reply-To: 37724@debbugs.gnu.org Date: Sun, 13 Oct 2019 17:01:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1570986063-17544-1" This is a multi-part message in MIME format... ------------=_1570986063-17544-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37724: HTML Markdown and Emacs Outline Hash Links in DEMO not working which was filed against the hyperbole package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 37724@debbugs.gnu.org. --=20 37724: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37724 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1570986063-17544-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 37724-close) by debbugs.gnu.org; 13 Oct 2019 17:00:29 +0000 Received: from localhost ([127.0.0.1]:36784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJhEL-0004Xz-7e for submit@debbugs.gnu.org; Sun, 13 Oct 2019 13:00:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJhEI-0004Xm-4V for 37724-close@debbugs.gnu.org; Sun, 13 Oct 2019 13:00:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iJhEC-00054y-TS for 37724-close@debbugs.gnu.org; Sun, 13 Oct 2019 13:00:20 -0400 Received: from mail-lf1-f45.google.com ([209.85.167.45]:32915) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1iJhEC-00085U-0u for 37724-close@debbugs.gnu.org; Sun, 13 Oct 2019 13:00:20 -0400 Received: by mail-lf1-f45.google.com with SMTP id y127so10186619lfc.0 for <37724-close@debbugs.gnu.org>; Sun, 13 Oct 2019 10:00:19 -0700 (PDT) X-Gm-Message-State: APjAAAXOfnh+Jx1h/Le6uB+WXT6W4YdecgzPqEAUWYME46iwZYcFWTNC Fd6zsJeYoFO1kqrwr8Mcwc4qi1aqRpx6mrHd+FQ= X-Google-Smtp-Source: APXvYqx1LCZxSlTwCsc8NADERrH/9mHvBsHn89AMjDUsU9Rs90GDSI9cxUxdy0evohfItFUfWizwbNZRKB5Mk3lMs8A= X-Received: by 2002:a19:5f50:: with SMTP id a16mr541850lfj.104.1570986018497; Sun, 13 Oct 2019 10:00:18 -0700 (PDT) MIME-Version: 1.0 References: <20191013042038.GB3700@qinghai.lan> In-Reply-To: <20191013042038.GB3700@qinghai.lan> From: Robert Weiner Date: Sun, 13 Oct 2019 12:59:52 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#37724: HTML Markdown and Emacs Outline Hash Links in DEMO not working To: "Kevin J. McCarthy" Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 37724-close Cc: 37724-close@debbugs.gnu.org, Lidell Mats X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Sun, Oct 13, 2019 at 12:21 AM Kevin J. McCarthy wrote: > > I use: Editor: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) > > Hyperbole: 7.0.7 > Sys Type: x86_64-pc-linux-gnu > OS Type: gnu/linux > Window Sys: x > News Reader: Gnus v5.13 > > In the DEMO file under > * Implicit Buttons > ** Implicit Path Links > *** HTML Markdown and Emacs Outline Hash Links > > The example "man/hyperbole.html#Smart-Keys" gives me an error message > (hpath:find): "man/hyperbole.html" does not exist > > The same for "README.md#why-was-hyperbole-developed": > (hpath:find): "README.md" does not exist Another good catch. There was a missing file-name-directory call needed to remove the filename from the 'loc attribute of this type of button in hpath:find. Use the following replacement to fix it. (defun hpath:find (filename &optional display-where noselect) "Edit file FILENAME using user customizable settings of display program and location. Return the current buffer iff file is displayed within a buffer (not with an external program), else nil. FILENAME may start with a special prefix character that is handled as follows: !filename - execute as a non-windowed program within a shell; &filename - execute as a windowed program; -filename - load as an Emacs Lisp program. If FILENAME does not start with a prefix character: it may be followed by a hash-style link reference to HTML, Markdown or Emacs outline headings of the form, #, e.g. \"~/.bashrc#Alias Section\"; it may end with a line number and optional column number to which to go, of the form, :[:], e.g. \"~/.bashrc:20:5\"; normally, this is an absolute line number (disabling buffer restriction), but if preceded by a hash-style link reference, it is relative to the location of the link anchor; if it matches a regular expression in the alist returned by \(hpath:get-external-display-alist), invoke the associated external display program if not, consult `hpath:internal-display-alist' for a specialized internal display function to use; if no matches are found there, consult `hpath:display-where-alist' using the optional second argument, DISPLAY-WHERE (a symbol); if that is nil, consult the value of `hpath:display-where', and use the matching display function. Optional third argument, NOSELECT, means simply find the file and return its buffer but don't display it." (interactive "FFind file: ") (let ((case-fold-search t) (default-directory default-directory) modifier loc anchor hash path line-num col-num) (setq loc (hattr:get 'hbut:current 'loc) default-directory (or (hattr:get 'hbut:current 'dir) ;; Loc may be a buffer without a file (if (stringp loc) (file-name-directory loc) default-directory))) (when (string-match hpath:prefix-regexp filename) (setq modifier (aref filename 0) filename (substring filename (match-end 0)))) (setq path filename) ;; default (when (string-match hpath:line-and-column-regexp path) (setq line-num (string-to-number (match-string 1 path)) col-num (when (match-string 3 path) (string-to-number (match-string 3 path))) path (substring path 0 (match-beginning 0)))) (when (string-match hpath:markup-link-anchor-regexp path) (setq hash t anchor (match-string 3 path) path (substring path 0 (match-end 1)))) (setq path (hpath:substitute-value path) filename (hpath:absolute-to path default-directory)) (if noselect (prog1 (find-file-noselect filename) (if (or hash anchor) (hpath:to-markup-anchor hash anchor))) (let ((remote-filename (hpath:remote-p path))) (or modifier remote-filename (file-exists-p filename) (error "(hpath:find): \"%s\" does not exist" filename)) (or modifier remote-filename (file-readable-p filename) (error "(hpath:find): \"%s\" is not readable" filename)) ;; If filename is a remote file (not a directory), we have to copy it to ;; a temporary local file and then display that. (when (and remote-filename (not (file-directory-p remote-filename))) (copy-file remote-filename (setq path (concat hpath:tmp-prefix (file-name-nondirectory remote-filename))) t t) (setq filename (cond (anchor (concat remote-filename "#" anchor)) (hash (concat remote-filename "#")) (t path))))) (cond (modifier (cond ((= modifier ?!) (hact 'exec-shell-cmd filename)) ((= modifier ?&) (hact 'exec-window-cmd filename)) ((= modifier ?-) (hact 'load filename))) nil) (t (let ((display-executables (hpath:find-program path)) executable) (cond ((stringp display-executables) (hact 'exec-window-cmd (hpath:command-string display-executables filename)) nil) ((functionp display-executables) (funcall display-executables filename) (current-buffer)) ((and (listp display-executables) display-executables) (setq executable (hpath:find-executable display-executables)) (if executable (hact 'exec-window-cmd (hpath:command-string executable filename)) (error "(hpath:find): No available executable from: %s" display-executables))) (t (setq path (hpath:validate path)) (funcall (hpath:display-path-function display-where) path) (when (or hash anchor) (hpath:to-markup-anchor hash anchor)) (when line-num ;; With an anchor, goto line relative to ;; anchor location, otherwise use absolute ;; line number within the visible buffer ;; portion. (if (or hash anchor) (forward-line line-num) (hpath:to-line line-num))) (when col-num (move-to-column col-num)) (current-buffer))))))))) This issue is now resolved and will be closed. Bob ------------=_1570986063-17544-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Oct 2019 04:20:50 +0000 Received: from localhost ([127.0.0.1]:34734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJVNB-00047C-PO for submit@debbugs.gnu.org; Sun, 13 Oct 2019 00:20:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:58961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJVN9-000471-8y for submit@debbugs.gnu.org; Sun, 13 Oct 2019 00:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34339) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJVN7-00049O-T8 for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 00:20:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJVN6-000554-Lx for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 00:20:45 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:58069) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iJVN6-00054a-3g for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 00:20:44 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 204684DD for ; Sun, 13 Oct 2019 00:20:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Sun, 13 Oct 2019 00:20:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8t8.us; h=date :from:to:subject:message-id:mime-version:content-type; s=mesmtp; bh=H6tpe6sxv7c5kq5738J+iUhdlicJelhE4XUW0zRBPKQ=; b=bJTqGH05CH/G 7QzUacYJ1ha3pkkNowJPGGfNLjR5s8MWrXsKBnNA+k74EQpisZ2Ew2SAQkXr1/3O 8Qv6pnuFDlvVA7MiAQq4lzolgOC8rDk0xXaLf8MTLI327l8X0/XvLOYD5nNI8rhh +XbsxByx9aiZuKLOGByrZIp7MVEZE30= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=H6tpe6sxv7c5kq5738J+iUhdlicJe lhE4XUW0zRBPKQ=; b=tQPkXjbm57Uj5F4NQxjjoSQKEgyKQe4qLMSH5Gd5C/xP+ TLbgdPmMjlAI3H3Wx6fPv6kwkGyKtu/LUAmnDBC9+vGNAoyrw/za77h+lXW4ZyvG tqylpZBzyHSyhJosTJ9BsvBzmoxjygRGuFCsTeLuR5WQV7X2NSy1WVj33Ryxp1WO SW3EOC0gZNYF3sWZ3U7ZgJZI7yaKxfbKEuE+97FSNXe5zCB7fMKNdbxr2UOiYqyu HgvhzKH2o8kAp1TuHketcamTKZm+xTbLu+u2Pw0Z4CqoGiplXApWN8ASP8Bu8LM5 ClEir4HkscA8k5lPJXAPnNuRO5GZ+BGwMNWhR5IjQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieekgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggufgesthdttddttd ervdenucfhrhhomhepfdfmvghvihhnucflrdcuofgtvegrrhhthhihfdcuoehkvghvihhn seekthekrdhusheqnecukfhppeduudegrddviedrvdefjedrgeehnecurfgrrhgrmhepmh grihhlfhhrohhmpehkvghvihhnseekthekrdhushenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from qinghai.lan (114-26-237-45.dynamic-ip.hinet.net [114.26.237.45]) by mail.messagingengine.com (Postfix) with ESMTPA id 20D4ED6005A for ; Sun, 13 Oct 2019 00:20:41 -0400 (EDT) Received: from kjm by qinghai.lan with local (Exim 4.92) (envelope-from ) id 1iJVN0-0001MG-Od for bug-hyperbole@gnu.org; Sun, 13 Oct 2019 12:20:38 +0800 Date: Sun, 13 Oct 2019 12:20:38 +0800 From: "Kevin J. McCarthy" To: bug-hyperbole@gnu.org Subject: HTML Markdown and Emacs Outline Hash Links in DEMO not working Message-ID: <20191013042038.GB3700@qinghai.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Autocrypt: addr=kevin@8t8.us; prefer-encrypt=mutual; keydata= mDMEXUYSnhYJKwYBBAHaRw8BAQdAc7hzvhBQBt+lvyFnFNV5rU7JTQQEL8m99uohJvQGlf+0IiJ LZXZpbiBKLiBNY0NhcnRoeSIgPGtldmluQDh0OC51cz6IkAQTFggAOBYhBOPuDxjOXA4T6rpoqJ uLpSK5BwtoBQJdRhKeAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEJuLpSK5BwtoQpQBA P+1pX+GwPx4hoQVba7OGp/grcwU8BfLXXCPA+4YxYzcAQDH/YROAjdKhiUY4Bum6BhfDSREGOvw EehChH5ph9jlCLg4BF1GEp4SCisGAQQBl1UBBQEBB0BnO8ZqDk2jMKqYQ/ScfsKdsVgicyUz306 +NsOlzSdRSQMBCAeIeAQYFggAIBYhBOPuDxjOXA4T6rpoqJuLpSK5BwtoBQJdRhKeAhsMAAoJEJ uLpSK5Bwtona0A/3ewRZvb9J5sX9rRhTGg1rGNMKAV3a+aQuxwgZP5pfoTAP4uQxv/L7tqR0tNM 2ZCqilZXJ+/b7sjZlnyq3XfrTxwBA== OpenPGP: id=ADEF768480316BDA; url=http://www.8t8.us/configs/80316BDA.asc.pubkey; preference=signencrypt User-Agent: Mutt/1.12.2+152 (e4c176b3) (2019-10-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.21 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I use: Editor: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) Hyperbole: 7.0.7 Sys Type: x86_64-pc-linux-gnu OS Type: gnu/linux Window Sys: x News Reader: Gnus v5.13 In the DEMO file under * Implicit Buttons ** Implicit Path Links *** HTML Markdown and Emacs Outline Hash Links The example "man/hyperbole.html#Smart-Keys" gives me an error message (hpath:find): "man/hyperbole.html" does not exist The same for "README.md#why-was-hyperbole-developed": (hpath:find): "README.md" does not exist If I (find-file) from the DEMO, I see man/hyperbole.html and README.md both exist in the path relative to DEMO. The path and line/column numbers examples work fine: "HY-ABOUT", "HY-ABOUT:10", "HY-ABOUT:17:7". Also, the hash links within the DEMO file are working fine, e.g. "#Org-Mode". Thank you, -Kevin ------------=_1570986063-17544-1--