unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: emacs-devel@gnu.org
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
	Ted Zlatanov <tzz@lifelogs.com>
Subject: [PATCH 5/5] eww: Check for `html-mode' using `fboundp'.
Date: Fri, 20 Dec 2013 00:44:57 +0100	[thread overview]
Message-ID: <12849804.WjzT18nX1T@descartes> (raw)
In-Reply-To: <cover.1387496431.git.ruediger@c-plusplus.de>

`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  <tzz@lifelogs.com>
 
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




      parent reply	other threads:[~2013-12-19 23:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1387496431.git.ruediger@c-plusplus.de>
2013-12-19 23:44 ` [PATCH 1/5] eww: Use `user-error' Rüdiger Sonderfeld
2013-12-19 23:44 ` [PATCH 2/5] eww: Add menu for `eww-bookmark-mode' Rüdiger Sonderfeld
2013-12-19 23:44 ` [PATCH 3/5] eww: Use `setq-local' Rüdiger Sonderfeld
2013-12-19 23:44 ` [PATCH 4/5] eww: Add tool bar support Rüdiger Sonderfeld
2013-12-19 23:44 ` Rüdiger Sonderfeld [this message]

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=12849804.WjzT18nX1T@descartes \
    --to=ruediger@c-plusplus.de \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=tzz@lifelogs.com \
    /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).