From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel Subject: [PATCH 5/5] eww: Check for `html-mode' using `fboundp'. Date: Fri, 20 Dec 2013 00:44:57 +0100 Message-ID: <12849804.WjzT18nX1T@descartes> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1387496742 13787 80.91.229.3 (19 Dec 2013 23:45:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Dec 2013 23:45:42 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Ted Zlatanov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 20 00:45:47 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VtnHk-0002q8-Qa for ged-emacs-devel@m.gmane.org; Fri, 20 Dec 2013 00:45:44 +0100 Original-Received: from localhost ([::1]:46916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtnHk-0002YE-Ej for ged-emacs-devel@m.gmane.org; Thu, 19 Dec 2013 18:45:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtnHC-0001cu-Dg for emacs-devel@gnu.org; Thu, 19 Dec 2013 18:45:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtnH6-0002tx-Ka for emacs-devel@gnu.org; Thu, 19 Dec 2013 18:45:10 -0500 Original-Received: from ptmx.org ([178.63.28.110]:33870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtnH6-0002t4-FM for emacs-devel@gnu.org; Thu, 19 Dec 2013 18:45:04 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id DC9B322ACD; Fri, 20 Dec 2013 00:45:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XKN2apqx79iY; Fri, 20 Dec 2013 00:45:02 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 7238822ACB; Fri, 20 Dec 2013 00:45:02 +0100 (CET) User-Agent: KMail/4.11.2 (Linux/3.11.0-14-generic; KDE/4.11.2; x86_64; ; ) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:166634 Archived-At: `html-mode' is provided by `sgml-mode' in GNU Emacs. Therefore it should be checked for with `fboundp' instead of `featurep'. * lisp/net/eww.el (eww-view-source): Check for `html-mode' with `fboundp'. --- lisp/ChangeLog | 1 + lisp/net/eww.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 14d539d..c57620c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -9,6 +9,7 @@ (eww-render, eww-mode): Use `setq-local'. (eww-tool-bar-map): New variable. (eww-mode): Set `tool-bar-map'. + (eww-view-source): Check for `html-mode' with `fboundp'. 2013-12-19 Teodor Zlatanov diff --git a/lisp/net/eww.el b/lisp/net/eww.el index cae5cfd..df53d80 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -388,7 +388,7 @@ (defun eww-view-source () (delete-region (point-min) (point-max)) (insert (or eww-current-source "no source")) (goto-char (point-min)) - (when (featurep 'html-mode) + (when (fboundp 'html-mode) (html-mode))) (view-buffer buf))) -- 1.8.5