unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44189: html-href-anchor, html-image should expand local filenames
@ 2020-10-24  5:42 積丹尼 Dan Jacobson
  2020-10-25 13:38 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-10-24  5:42 UTC (permalink / raw)
  To: 44189

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"





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

* bug#44189: html-href-anchor, html-image should expand local filenames
  2020-10-24  5:42 bug#44189: html-href-anchor, html-image should expand local filenames 積丹尼 Dan Jacobson
@ 2020-10-25 13:38 ` Lars Ingebrigtsen
  2020-10-25 13:59   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-25 13:38 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 44189

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





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

* bug#44189: html-href-anchor, html-image should expand local filenames
  2020-10-25 13:38 ` Lars Ingebrigtsen
@ 2020-10-25 13:59   ` 積丹尼 Dan Jacobson
  2020-10-25 14:03     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-10-25 13:59 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44189

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





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

* bug#44189: html-href-anchor, html-image should expand local filenames
  2020-10-25 13:59   ` 積丹尼 Dan Jacobson
@ 2020-10-25 14:03     ` Lars Ingebrigtsen
  2020-10-25 15:05       ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-25 14:03 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 44189

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





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

* bug#44189: html-href-anchor, html-image should expand local filenames
  2020-10-25 14:03     ` Lars Ingebrigtsen
@ 2020-10-25 15:05       ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-10-25 15:05 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44189

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





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

end of thread, other threads:[~2020-10-25 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-24  5:42 bug#44189: html-href-anchor, html-image should expand local filenames 積丹尼 Dan Jacobson
2020-10-25 13:38 ` Lars Ingebrigtsen
2020-10-25 13:59   ` 積丹尼 Dan Jacobson
2020-10-25 14:03     ` Lars Ingebrigtsen
2020-10-25 15:05       ` 積丹尼 Dan Jacobson

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).