changeset 38611:7f82c0bbe525

(smerge-mode): Check if `font-lock-mode' is bound before accessing it.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 31 Jul 2001 08:28:43 +0000
parents 6e7efdd1cadc
children f76ec0e54ac2
files lisp/smerge-mode.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/smerge-mode.el	Mon Jul 30 19:09:07 2001 +0000
+++ b/lisp/smerge-mode.el	Tue Jul 31 08:28:43 2001 +0000
@@ -1,10 +1,10 @@
 ;;; smerge-mode.el --- Minor mode to resolve diff3 conflicts
 
-;; Copyright (C) 1999, 2000  Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2000, 2001  Free Software Foundation, Inc.
 
 ;; Author: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: merge diff3 cvs conflict
-;; Revision: $Id: smerge-mode.el,v 1.12 2001/03/07 00:16:29 monnier Exp $
+;; Revision: $Id: smerge-mode.el,v 1.13 2001/07/31 08:26:47 gerd Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -465,7 +465,7 @@
   "Minor mode to simplify editing output from the diff3 program.
 \\{smerge-mode-map}"
   nil " SMerge" nil
-  (when font-lock-mode
+  (when (and (boundp 'font-lock-mode) font-lock-mode)
     (set (make-local-variable 'font-lock-multiline) t)
     (save-excursion
       (if smerge-mode