GNU bug report logs - #37644
html-href-anchor should have TAB expansion when prompting

Previous Next

Package: emacs;

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

Date: Mon, 7 Oct 2019 08:29:01 UTC

Severity: wishlist

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 37644 in the body.
You can then email your comments to 37644 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#37644; Package emacs. (Mon, 07 Oct 2019 08:29:01 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. (Mon, 07 Oct 2019 08:29:01 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 should have TAB expansion when prompting
Date: Mon, 07 Oct 2019 16:28:36 +0800
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’.

Problem is it doesn't have filename expansion turned on.

As often we are putting in relative links into a document,
it would be great if we could tab expand even
../../me/bla.html
etc.

Entering http[s] links would not be affected.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37644; Package emacs. (Mon, 14 Oct 2019 21:04:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 37644 <at> debbugs.gnu.org
Subject: Re: bug#37644: html-href-anchor should have TAB expansion when
 prompting
Date: Mon, 14 Oct 2019 23:03:26 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> 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’.
>
> Problem is it doesn't have filename expansion turned on.
>
> As often we are putting in relative links into a document,
> it would be great if we could tab expand even
> ../../me/bla.html
> etc.
>
> Entering http[s] links would not be affected.

The command requires an URL, and a file name isn't an URL.  But the
command could prepend a file:// to the file name, I guess, but I'm not
sure that doing file name completion on an input that's really an URL is
useful.  If you start typing http you don't want it to complete to files
starting with "http".

So I'm closing this bug report -- if somebody thinks the command should
work this way, please reopen.

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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Oct 2019 21:04:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 37644 <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. (Mon, 14 Oct 2019 21:04:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37644; Package emacs. (Fri, 18 Oct 2019 08:05:03 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: control <at> debbugs.gnu.org, 37644 <at> debbugs.gnu.org
Subject: Re: bug#37644: html-href-anchor should have TAB expansion when
 prompting
Date: Fri, 18 Oct 2019 16:04:26 +0800
reopen 37644
thanks

No. 1:
Nobody would ever want to put file:/// into an HTML document intended
for the Internet. I'm not asking for that.

No. 2:
Everybody needs to be able to put *relative links*,
../../index.html
../index.html
index.html
bla.html
into a HTML document.

That's what I'm asking for.

And that's what the former HTML Helper Mode did fine.

No. 3:

Nobdoy should be encouraged to hardwire fully qualified https links when
a simple relative link to a page in the same directory is called for.


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

>> 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’.
>> 
>> Problem is it doesn't have filename expansion turned on.
>> 
>> As often we are putting in relative links into a document,
>> it would be great if we could tab expand even
>> ../../me/bla.html
>> etc.
>> 
>> Entering http[s] links would not be affected.

LI> The command requires an URL, and a file name isn't an URL.  But the
LI> command could prepend a file:// to the file name, I guess, but I'm not
LI> sure that doing file name completion on an input that's really an URL is
LI> useful.  If you start typing http you don't want it to complete to files
LI> starting with "http".

LI> So I'm closing this bug report -- if somebody thinks the command should
LI> work this way, please reopen.

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





Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Oct 2019 08:05:04 GMT) Full text and rfc822 format available.

Removed tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 16 Nov 2019 07:09:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37644; Package emacs. (Thu, 06 Aug 2020 13:13:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 37644 <at> debbugs.gnu.org
Subject: Re: bug#37644: html-href-anchor should have TAB expansion when
 prompting
Date: Thu, 06 Aug 2020 15:12:21 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> No. 2:
> Everybody needs to be able to put *relative links*,
> ../../index.html
> ../index.html
> index.html
> bla.html
> into a HTML document.
>
> That's what I'm asking for.

OK; added to Emacs 28.1.  It's on the `C-c C-c f' key.

-- 
(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. (Thu, 06 Aug 2020 13:13:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 37644 <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. (Thu, 06 Aug 2020 13:13:02 GMT) Full text and rfc822 format available.

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

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

Previous Next


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