From ec7605b4b13776c1079a25891b82b2401a584632 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sat, 10 Jan 2015 17:54:24 +0100 Subject: [PATCH] (shr-urlify): Don't bother the user about invalidly-encoded display strings --- lisp/ChangeLog | 5 +++++ lisp/net/shr.el | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5bebd09b15b..674b26716a4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-01-10 Lars Magne Ingebrigtsen + + * net/shr.el (shr-urlify): Don't bother the user about + invalidly-encoded display strings. + 2015-01-10 Ivan Shmakov * net/shr.el (shr-urlify): Decode URLs before using them as titles diff --git a/lisp/net/shr.el b/lisp/net/shr.el index a2bad81ee44..feb934c7190 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -894,8 +894,7 @@ START, and END. Note that START and END should be markers." (add-text-properties start (point) (list 'shr-url url - 'help-echo (let ((iri (or (with-demoted-errors - "shr-urlify: %s" + 'help-echo (let ((iri (or (ignore-errors (decode-coding-string (url-unhex-string url) 'utf-8 t)) -- 2.39.2