GNU bug report logs - #36247
[PATCH] Handle 'code' tag in shr.el

Previous Next

Package: emacs;

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

Date: Sun, 16 Jun 2019 15:13:02 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36247 in the body.
You can then email your comments to 36247 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36247; Package emacs. (Sun, 16 Jun 2019 15:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicholas Drozd <nicholasdrozd <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 16 Jun 2019 15:13:02 GMT) Full text and rfc822 format available.

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

From: Nicholas Drozd <nicholasdrozd <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Handle 'code' tag in shr.el
Date: Sun, 16 Jun 2019 10:11:37 -0500
* lisp/net/shr.el: Add 'code' tag handling.

* etc/NEWS: Announce change in shr behavior.
---
 etc/NEWS        | 2 ++
 lisp/net/shr.el | 6 +++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index 723f0a0fb0..5b1191467a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -916,6 +916,8 @@ This attribute is meant to tell screen readers to
ignore a tag.
 ---
 *** 'shr-tag-ol' now respects the ordered list 'start' attribute.

+*** 'code' tag is now handled.
+
 ** Htmlfontify

 *** The functions 'hfy-color', 'hfy-color-vals' and
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index a014c56948..7fdb3212d4 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1401,10 +1401,14 @@ shr-tag-strong
 (defun shr-tag-u (dom)
   (shr-fontize-dom dom 'underline))

-(defun shr-tag-tt (dom)
+(defun shr-tag-code (dom)
   (let ((shr-current-font 'default))
     (shr-generic dom)))

+(defun shr-tag-tt (dom)
+  ;; The `tt' tag is deprecated in favor of `code'.
+  (shr-tag-code dom))
+
 (defun shr-tag-ins (cont)
   (let* ((start (point))
          (color "green")




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36247; Package emacs. (Sat, 22 Jun 2019 11:48:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nicholas Drozd <nicholasdrozd <at> gmail.com>
Cc: 36247 <at> debbugs.gnu.org
Subject: Re: bug#36247: [PATCH] Handle 'code' tag in shr.el
Date: Sat, 22 Jun 2019 13:47:17 +0200
Nicholas Drozd <nicholasdrozd <at> gmail.com> writes:

> * lisp/net/shr.el: Add 'code' tag handling.
>
> * etc/NEWS: Announce change in shr behavior.

Looks good, but the patch has been mangled by Gmail and doesn't apply.
Can you resend with the patch in an attachment?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36247; Package emacs. (Sat, 22 Jun 2019 17:07:01 GMT) Full text and rfc822 format available.

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

From: Nicholas Drozd <nicholasdrozd <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 36247 <at> debbugs.gnu.org
Subject: Re: bug#36247: [PATCH] Handle 'code' tag in shr.el
Date: Sat, 22 Jun 2019 12:06:24 -0500
[Message part 1 (text/plain, inline)]
Btw Lars, Eww is one of the "but can your editor do this" features I
use to show off Emacs to non-users.

On Sat, Jun 22, 2019 at 6:47 AM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> Nicholas Drozd <nicholasdrozd <at> gmail.com> writes:
>
> > * lisp/net/shr.el: Add 'code' tag handling.
> >
> > * etc/NEWS: Announce change in shr behavior.
>
> Looks good, but the patch has been mangled by Gmail and doesn't apply.
> Can you resend with the patch in an attachment?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
[0001-Handle-code-tag-in-shr.el.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36247; Package emacs. (Sun, 23 Jun 2019 12:21:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nicholas Drozd <nicholasdrozd <at> gmail.com>
Cc: 36247 <at> debbugs.gnu.org
Subject: Re: bug#36247: [PATCH] Handle 'code' tag in shr.el
Date: Sun, 23 Jun 2019 14:20:03 +0200
Nicholas Drozd <nicholasdrozd <at> gmail.com> writes:

> Btw Lars, Eww is one of the "but can your editor do this" features I
> use to show off Emacs to non-users.

:-)

Thanks for the patch; now applied to the trunk.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 12:21:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 36247 <at> debbugs.gnu.org and Nicholas Drozd <nicholasdrozd <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 12:21:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Jul 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 273 days ago.

Previous Next


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