X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ac3d262560b0182146962f183d32725602d82f3c..8d9cc0b7ea1893059df8788129998e9a71ec07f3:/lisp/progmodes/icon.el diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 694eea1285..77a38f6016 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el @@ -1,6 +1,7 @@ ;;; icon.el --- mode for editing Icon code -;; Copyright (C) 1989 Free Software Foundation, Inc. +;; Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, 2006, 2007 +;; Free Software Foundation, Inc. ;; Author: Chris Smith ;; Created: 15 Feb 89 @@ -10,7 +11,7 @@ ;; 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) +;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. ;; GNU Emacs is distributed in the hope that it will be useful, @@ -20,8 +21,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: @@ -83,6 +84,7 @@ (defgroup icon nil "Mode for editing Icon code." + :link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces) :group 'languages) (defcustom icon-indent-level 4 @@ -177,7 +179,7 @@ with no args, if that value is non-nil." (make-local-variable 'indent-line-function) (setq indent-line-function 'icon-indent-line) (make-local-variable 'require-final-newline) - (setq require-final-newline t) + (setq require-final-newline mode-require-final-newline) (make-local-variable 'comment-start) (setq comment-start "# ") (make-local-variable 'comment-end) @@ -205,7 +207,7 @@ with no args, if that value is non-nil." (cons '(icon-mode "\\" "\\" nil icon-forward-sexp-function) hs-special-modes-alist))) - (run-hooks 'icon-mode-hook)) + (run-mode-hooks 'icon-mode-hook)) ;; This is used by indent-for-comment to decide how much to ;; indent a comment in Icon code based on its context.