]> code.delx.au - gnu-emacs/blobdiff - lisp/cedet/ede/util.el
Update copyright year to 2015
[gnu-emacs] / lisp / cedet / ede / util.el
index fc4536ba88a41a3c6fde3285d33d0b2dc7570e99..bfde858c95621a7be98ced0a4b8b64a804c29f7c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; ede/util.el --- EDE utilities
 
-;; Copyright (C) 2000, 2005, 2009-201 Free Software Foundation, Inc.
+;; Copyright (C) 2000, 2005, 2009-2015 Free Software Foundation, Inc.
 
 ;; Author: Eric M. Ludlam <zappo@gnu.org>
 ;; Keywords: project, make
@@ -49,7 +49,7 @@ Argument NEWVERSION is the version number to use in the current project."
 (defmethod project-update-version ((ot ede-project))
   "The :version of the project OT has been updated.
 Handle saving, or other detail."
-  (error "project-update-version not supported by %s" (object-name ot)))
+  (error "project-update-version not supported by %s" (eieio-object-name ot)))
 
 (defmethod ede-update-version-in-source ((this ede-project) version)
   "Change occurrences of a version string in sources.
@@ -87,12 +87,7 @@ their sources to VERSION."
 If BUFFER isn't specified, use the current buffer."
   (save-excursion
     (if buffer (set-buffer buffer))
-    (if buffer-read-only
-       (if (and vc-mode
-                (y-or-n-p (format "Check out %s? " (buffer-file-name))))
-           (vc-toggle-read-only)
-         (if (not vc-mode)
-             (toggle-read-only -1))))))
+    (setq buffer-read-only nil)))
 
 (provide 'ede/util)