unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37651: html-name-anchor obsolete, should be html-id-anchor
@ 2019-10-07 20:06 積丹尼 Dan Jacobson
  2019-10-14 21:07 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-10-07 20:06 UTC (permalink / raw)
  To: 37651

html-name-anchor is an interactive compiled Lisp function in
‘sgml-mode.el’.

That's great except these days
<a name="X"></a>
is obsolete. One should write
<a id="X"></a>.

(But bummer,
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’.
So one cannot just make C-c C-c n now C-c C-c i.)





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

* bug#37651: html-name-anchor obsolete, should be html-id-anchor
  2019-10-07 20:06 bug#37651: html-name-anchor obsolete, should be html-id-anchor 積丹尼 Dan Jacobson
@ 2019-10-14 21:07 ` Lars Ingebrigtsen
  2019-11-02 18:36   ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-14 21:07 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 37651

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> html-name-anchor is an interactive compiled Lisp function in
> ‘sgml-mode.el’.
>
> That's great except these days
> <a name="X"></a>
> is obsolete. One should write
> <a id="X"></a>.

It's obsolete in HTML5, but it's still commonly understood.  I'm not
sure what we should do in these instances.

> (But bummer,
> 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’.
> So one cannot just make C-c C-c n now C-c C-c i.)

Yeah, that's also a problem.

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





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

* bug#37651: html-name-anchor obsolete, should be html-id-anchor
  2019-10-14 21:07 ` Lars Ingebrigtsen
@ 2019-11-02 18:36   ` Juri Linkov
  2019-11-03 15:07     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2019-11-02 18:36 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 37651, 積丹尼 Dan Jacobson

>> html-name-anchor is an interactive compiled Lisp function in
>> ‘sgml-mode.el’.
>>
>> That's great except these days
>> <a name="X"></a>
>> is obsolete. One should write
>> <a id="X"></a>.
>
> It's obsolete in HTML5, but it's still commonly understood.  I'm not
> sure what we should do in these instances.
>
>> (But bummer,
>> 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’.
>> So one cannot just make C-c C-c n now C-c C-c i.)
>
> Yeah, that's also a problem.

A good mnemonic key for HTML id would be C-c C-c #





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

* bug#37651: html-name-anchor obsolete, should be html-id-anchor
  2019-11-02 18:36   ` Juri Linkov
@ 2019-11-03 15:07     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-03 15:07 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 37651, 積丹尼 Dan Jacobson

Juri Linkov <juri@linkov.net> writes:

> A good mnemonic key for HTML id would be C-c C-c #

That's a good mnemonic, so I've now added it (and the <a id...>
skeleton).

-- 
(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:[~2019-11-03 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 20:06 bug#37651: html-name-anchor obsolete, should be html-id-anchor 積丹尼 Dan Jacobson
2019-10-14 21:07 ` Lars Ingebrigtsen
2019-11-02 18:36   ` Juri Linkov
2019-11-03 15:07     ` 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).