Mercurial > emacs
diff lisp/progmodes/cwarn.el @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | 811bba65a69f |
children |
line wrap: on
line diff
--- a/lisp/progmodes/cwarn.el Sun Jan 15 23:02:10 2006 +0000 +++ b/lisp/progmodes/cwarn.el Mon Jan 16 00:03:54 2006 +0000 @@ -1,6 +1,7 @@ ;;; cwarn.el --- highlight suspicious C and C++ constructions -;; Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +;; Free Software Foundation, Inc. ;; Author: Anders Lindgren <andersl@andersl.com> ;; Keywords: c, languages, faces @@ -21,8 +22,8 @@ ;; 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., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Commentary: @@ -193,7 +194,7 @@ C++ modes are included. With ARG, turn CWarn mode on if and only if arg is positive." - nil cwarn-mode-text nil + :group 'cwarn :lighter cwarn-mode-text (cwarn-font-lock-keywords cwarn-mode) (if font-lock-mode (font-lock-fontify-buffer))) @@ -371,8 +372,8 @@ (if (cwarn-is-enabled major-mode) (turn-on-cwarn-mode))) ;;;###autoload -(easy-mmode-define-global-mode global-cwarn-mode cwarn-mode - turn-on-cwarn-mode-if-enabled) +(define-global-minor-mode global-cwarn-mode + cwarn-mode turn-on-cwarn-mode-if-enabled) (provide 'cwarn) @@ -380,4 +381,5 @@ ;;}}} +;;; arch-tag: 225fb5e2-0838-4eb1-88ce-3811c5e4d738 ;;; cwarn.el ends here