GNU bug report logs - #36475
[PATCH] Handle 'abbr' and 'acronym' tags in shr.el

Previous Next

Package: emacs;

Reported by: Nicholas Drozd <nicholasdrozd <at> gmail.com>

Date: Tue, 2 Jul 2019 14:08:02 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Nicholas Drozd <nicholasdrozd <at> gmail.com>
Cc: 36475 <at> debbugs.gnu.org
Subject: Re: bug#36475: [PATCH] Handle 'abbr' and 'acronym' tags in shr.el
Date: Tue, 02 Jul 2019 20:26:02 +0200
Nicholas Drozd <nicholasdrozd <at> gmail.com> writes:

> +(defun shr-tag-abbr (dom)
> +  (let ((title (dom-attr dom 'title))
> +	(start (point)))
> +    (shr-generic dom)
> +    (shr-add-font start (point) 'diary)
> +    (add-text-properties
> +     start (point)
> +     (list
> +      'help-echo title
> +      'mouse-face 'highlight))))
> +
> +(defun shr-tag-acronym (dom)
> +  ;; `acronym' is deprecated in favor of `abbr'.
> +  (shr-tag-abbr dom))

Couldn't this be a defalias?

Best regards, Michael.




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

Previous Next


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