]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/cc-compat.el
(glasses-separator): Doc fix.
[gnu-emacs] / lisp / progmodes / cc-compat.el
index 3fcda12c51caec8e3a1b3418148657b6bc76faf0..0cd7973857c76e615cf7cda4cd04b5a62a527067 100644 (file)
@@ -1,11 +1,13 @@
 ;;; cc-compat.el --- cc-mode compatibility with c-mode.el confusion
 
-;; Copyright (C) 1985,87,92,93,94,95,96,97 Free Software Foundation, Inc.
+;; Copyright (C) 1985,1987,1992-2003, 2004, 2005, 2006
+;; Free Software Foundation, Inc.
 
-;; Author:     1994-1997 Barry A. Warsaw
-;; Maintainer: cc-mode-help@python.org
+;; Authors:    1998- Martin Stjernholm
+;;            1994-1999 Barry A. Warsaw
+;; Maintainer: bug-cc-mode@gnu.org
 ;; Created:    August 1994, split from cc-mode.el
-;; Version:    5.18
+;; Version:    See cc-mode.el
 ;; Keywords:   c languages oop
 
 ;; This file is part of GNU Emacs.
@@ -21,9 +23,9 @@
 ;; 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., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; along with this program; see the file COPYING.  If not, write to
+;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
 
 ;;; Commentary:
 ;;
 ;;
 ;; (require 'cc-compat)
 ;; (c-set-style "BOCM")
+;;
+;; This file is completely unsupported!  Although it has been patched
+;; superficially to keep pace with the rest of CC Mode, it hasn't been
+;; tested for a long time.
 
 ;;; Code:
 
 (eval-when-compile
-  (require 'cc-styles)
-  (require 'cc-engine))
+  (let ((load-path
+        (if (and (boundp 'byte-compile-dest-file)
+                 (stringp byte-compile-dest-file))
+            (cons (file-name-directory byte-compile-dest-file) load-path)
+          load-path)))
+    (load "cc-bytecomp" nil t)))
+
+(cc-require 'cc-defs)
+(cc-require 'cc-vars)
+(cc-require 'cc-styles)
+(cc-require 'cc-engine)
 
 \f
 ;; In case c-mode.el isn't loaded
@@ -114,7 +129,7 @@ This is in addition to c-continued-statement-offset.")
              ;; line
              (progn
                (if (eq (char-before) ?\))
-                   (forward-sexp -1))
+                   (c-forward-sexp -1))
                ;; Get initial indentation of the line we are on.
                (current-indentation)))))
       (- bocm-lossage curcol))))
@@ -145,5 +160,7 @@ This is in addition to c-continued-statement-offset.")
   (+ c-continued-statement-offset c-continued-brace-offset))
 
 \f
-(provide 'cc-compat)
+(cc-provide 'cc-compat)
+
+;;; arch-tag: 564dab2f-e6ad-499c-a4a3-fedec3ecc192
 ;;; cc-compat.el ends here