unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37644: html-href-anchor should have TAB expansion when prompting
@ 2019-10-07  8:28 積丹尼 Dan Jacobson
  2019-10-14 21:03 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-10-07  8:28 UTC (permalink / raw)
  To: 37644

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37644: html-href-anchor should have TAB expansion when prompting
  2019-10-07  8:28 bug#37644: html-href-anchor should have TAB expansion when prompting 積丹尼 Dan Jacobson
@ 2019-10-14 21:03 ` Lars Ingebrigtsen
  2019-10-18  8:04   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-14 21:03 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 37644

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37644: html-href-anchor should have TAB expansion when prompting
  2019-10-14 21:03 ` Lars Ingebrigtsen
@ 2019-10-18  8:04   ` 積丹尼 Dan Jacobson
  2020-08-06 13:12     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-10-18  8:04 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: control, 37644

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@gnus.org> writes:
LI> 積丹尼 Dan Jacobson <jidanni@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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#37644: html-href-anchor should have TAB expansion when prompting
  2019-10-18  8:04   ` 積丹尼 Dan Jacobson
@ 2020-08-06 13:12     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-06 13:12 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 37644

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-06 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07  8:28 bug#37644: html-href-anchor should have TAB expansion when prompting 積丹尼 Dan Jacobson
2019-10-14 21:03 ` Lars Ingebrigtsen
2019-10-18  8:04   ` 積丹尼 Dan Jacobson
2020-08-06 13:12     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).