X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d7a0267c8d6be2a9885de797b25ec8f4a61b8895..bd78fa1d5442e6e023a16d407741ec899d57d3cd:/lisp/progmodes/cwarn.el diff --git a/lisp/progmodes/cwarn.el b/lisp/progmodes/cwarn.el index b1b22ed353..00c11086ce 100644 --- a/lisp/progmodes/cwarn.el +++ b/lisp/progmodes/cwarn.el @@ -1,19 +1,19 @@ ;;; cwarn.el --- highlight suspicious C and C++ constructions -;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 ;; Free Software Foundation, Inc. ;; Author: Anders Lindgren ;; Keywords: c, languages, faces ;; X-Url: http://www.andersl.com/emacs -;; Version: 1.3.1 1999-12-13 +;; Version: 1.3.1 ;; This file is part of GNU Emacs. -;; GNU Emacs is free software; you can redistribute it and/or modify +;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 2, or (at your option) -;; any later version. +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -21,9 +21,7 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301, USA. +;; along with GNU Emacs. If not, see . ;;; Commentary: @@ -189,6 +187,8 @@ deactivated." (define-minor-mode cwarn-mode "Minor mode that highlights suspicious C and C++ constructions. +Suspicious constructs are highlighted using `font-lock-warning-face'. + Note, in addition to enabling this minor mode, the major mode must be included in the variable `cwarn-configuration'. By default C and C++ modes are included. @@ -372,7 +372,7 @@ The mode is turned if some feature is enabled for the current (if (cwarn-is-enabled major-mode) (turn-on-cwarn-mode))) ;;;###autoload -(define-global-minor-mode global-cwarn-mode +(define-globalized-minor-mode global-cwarn-mode cwarn-mode turn-on-cwarn-mode-if-enabled) (provide 'cwarn) @@ -381,5 +381,5 @@ The mode is turned if some feature is enabled for the current ;;}}} -;;; arch-tag: 225fb5e2-0838-4eb1-88ce-3811c5e4d738 +;; arch-tag: 225fb5e2-0838-4eb1-88ce-3811c5e4d738 ;;; cwarn.el ends here