From: Nicholas Drozd <nicholasdrozd@gmail.com>
To: 36247@debbugs.gnu.org
Subject: bug#36247: [PATCH] Handle 'code' tag in shr.el
Date: Sun, 16 Jun 2019 10:11:37 -0500 [thread overview]
Message-ID: <CABAiW0q-SqAMw=L6Q_UhzDA1=DKFDux0SQZJMNZ1AsiyEBCZAA@mail.gmail.com> (raw)
* 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")
next reply other threads:[~2019-06-16 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-16 15:11 Nicholas Drozd [this message]
2019-06-22 11:47 ` bug#36247: [PATCH] Handle 'code' tag in shr.el Lars Ingebrigtsen
2019-06-22 17:06 ` Nicholas Drozd
2019-06-23 12:20 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABAiW0q-SqAMw=L6Q_UhzDA1=DKFDux0SQZJMNZ1AsiyEBCZAA@mail.gmail.com' \
--to=nicholasdrozd@gmail.com \
--cc=36247@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).