GNU bug report logs - #35517
27.0.50; Small improvements to HTML mode

Previous Next

Package: emacs;

Reported by: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Date: Tue, 30 Apr 2019 23:40:01 UTC

Severity: wishlist

Tags: patch

Found in version 27.0.50

Done: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Cc: 35517 <at> debbugs.gnu.org
Subject: Re: bug#35517: 27.0.50; Small improvements to HTML mode
Date: Sun, 23 Jun 2019 19:39:20 +0200
Eric Abrahamsen <eric <at> ericabrahamsen.net> writes:

>>> +	(unless (or alist quiet)
>>> +	  (message "No attributes configured."))
>>> +        (when alist
>>> +          ;; Add class and id attributes if a) the element has any
>>> +          ;; other attributes configured, and b) they're not already
>>> +          ;; present.
>>> +          (unless (assoc-string "class" alist)
>>> +            (setq alist (cons '("class") alist)))
>>> +          (unless (assoc-string "id" alist)
>>> +            (setq alist (cons '("id") alist))))
>>
>> Should <div>s always have class/id attributes?  I guess it's unusual to
>> have neither, but I find myself writing <div>s all the time with just
>> class.  Or just id...
>
> The patch changes the default value of `html-tag-alist' as well, to add
> id and class, so that's already taken care of.

I may well be misreading the patch, but doesn't the change above mean
that the user will be prompted for class/id when they insert a <div>?
That's what I was worried about...

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




This bug report was last modified 5 years and 329 days ago.

Previous Next


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