GNU bug report logs - #44189
html-href-anchor, html-image should expand local filenames

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 24 Oct 2020 05:43:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44189 in the body.
You can then email your comments to 44189 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#44189; Package emacs. (Sat, 24 Oct 2020 05:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 24 Oct 2020 05:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: html-href-anchor, html-image should expand local filenames
Date: Sat, 24 Oct 2020 13:42:11 +0800
These should expand local file names when prompting:

  C-c C-c h runs the command html-href-anchor (found in mhtml-mode-map),
  which is an interactive compiled Lisp function in ‘sgml-mode.el’.

  C-c C-c i runs the command html-image (found in mhtml-mode-map), which
  is an interactive compiled Lisp function in ‘sgml-mode.el’.

E.g., if no http[s]: is detected, assume we are inserting a relative
link, and help us expand that.

emacs-version "26.3"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44189; Package emacs. (Sun, 25 Oct 2020 13:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 44189 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44189 <at> debbugs.gnu.org
Subject: Re: bug#44189: html-href-anchor, html-image should expand local
 filenames
Date: Sun, 25 Oct 2020 14:38:44 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> These should expand local file names when prompting:
>
>   C-c C-c h runs the command html-href-anchor (found in mhtml-mode-map),
>   which is an interactive compiled Lisp function in ‘sgml-mode.el’.

The html-href-anchor-file command does this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 25 Oct 2020 13:40:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 44189 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 25 Oct 2020 13:40:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44189; Package emacs. (Sun, 25 Oct 2020 14:00:01 GMT) Full text and rfc822 format available.

Message #15 received at 44189 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 44189 <at> debbugs.gnu.org
Subject: Re: bug#44189: html-href-anchor,
 html-image should expand local filenames
Date: Sun, 25 Oct 2020 21:59:35 +0800
OK, I found it. In
https://github.com/emacs-mirror/emacs/blob/master/lisp/textmodes/sgml-mode.el

That's great.

But they forgot to also make
html-image-file !!!

>>>>> "LI" == Lars Ingebrigtsen <larsi <at> gnus.org> writes:
LI> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

>> These should expand local file names when prompting:
>> 
>> C-c C-c h runs the command html-href-anchor (found in mhtml-mode-map),
>> which is an interactive compiled Lisp function in ‘sgml-mode.el’.

LI> The html-href-anchor-file command does this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44189; Package emacs. (Sun, 25 Oct 2020 14:05:01 GMT) Full text and rfc822 format available.

Message #18 received at 44189 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44189 <at> debbugs.gnu.org
Subject: Re: bug#44189: html-href-anchor, html-image should expand local
 filenames
Date: Sun, 25 Oct 2020 15:03:55 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> But they forgot to also make
> html-image-file !!!

It doesn't really seem important enough to warrant its own keybinding, I
think.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44189; Package emacs. (Sun, 25 Oct 2020 15:06:02 GMT) Full text and rfc822 format available.

Message #21 received at 44189 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 44189 <at> debbugs.gnu.org
Subject: Re: bug#44189: html-href-anchor, html-image should expand local
 filenames
Date: Sun, 25 Oct 2020 23:05:39 +0800
But when authoring the typical webpage,
one might include up to e.g., eight
   images/barf01.jpg, images/barf02.jpg, etc.
for each reference to
   someotherfile.html
   (./someotherfile.html)

In fact most web pages include at least one image,
but not necessarily a link to another local article.

Thus we see it is actually more important.

Anyway these never needed their own key bindings in the first place.
All they needed was to detect if http, etc. protocols were in front.
If not, they should expand relative / local filenames.

>>>>> "LI" == Lars Ingebrigtsen <larsi <at> gnus.org> writes:
LI> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

>> But they forgot to also make
>> html-image-file !!!

LI> It doesn't really seem important enough to warrant its own keybinding, I
LI> think.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 23 Nov 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.