aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet
diff options
context:
space:
mode:
authorPaul Eggert2011-10-22 23:38:24 -0700
committerPaul Eggert2011-10-22 23:38:24 -0700
commitcfc09582247ffef6a46b6249e2fba9136a62d21e (patch)
tree50e102f64a2b88c692d9110990abd416c78c32f0 /lisp/cedet
parent92c938895c639463681ae1c58a944cae62b70b87 (diff)
parent86c606818495d9411fd5d6b1477f9a097eb18020 (diff)
downloademacs-cfc09582247ffef6a46b6249e2fba9136a62d21e.tar.gz
emacs-cfc09582247ffef6a46b6249e2fba9136a62d21e.zip
Merge from trunk.
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/ChangeLog17
-rw-r--r--lisp/cedet/ede.el20
-rw-r--r--lisp/cedet/ede/project-am.el6
-rw-r--r--lisp/cedet/ede/util.el7
-rw-r--r--lisp/cedet/semantic.el6
5 files changed, 28 insertions, 28 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 093e592c475..3dd0e6f78fd 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,20 @@
12011-10-23 Chong Yidong <cyd@gnu.org>
2
3 * ede.el (ede-maybe-checkout): Function deleted;
4 vc-toggle-read-only does not do version control now.
5
6 * ede/util.el (ede-make-buffer-writable): Don't use
7 vc-toggle-read-only.
8
9 * ede/project-am.el (project-remove-file, project-add-file)
10 (project-new-target): Don't call ede-maybe-checkout.
11
122011-10-19 Chong Yidong <cyd@gnu.org>
13
14 * ede.el (ede-minor-mode,global-ede-mode):
15 * semantic.el (semantic-mode): Doc fix to reflect new
16 define-minor-mode calling behavior.
17
12011-07-30 Chong Yidong <cyd@stupidchicken.com> 182011-07-30 Chong Yidong <cyd@stupidchicken.com>
2 19
3 * semantic/grammar.el (semantic-grammar-insert-defanalyzers): Fix 20 * semantic/grammar.el (semantic-grammar-insert-defanalyzers): Fix
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el
index 307ccfdadd7..14f09517b1d 100644
--- a/lisp/cedet/ede.el
+++ b/lisp/cedet/ede.el
@@ -398,8 +398,9 @@ To be used in hook functions."
398 398
399(define-minor-mode ede-minor-mode 399(define-minor-mode ede-minor-mode
400 "Toggle EDE (Emacs Development Environment) minor mode. 400 "Toggle EDE (Emacs Development Environment) minor mode.
401With non-nil argument ARG, enable EDE minor mode if ARG is 401With a prefix argument ARG, enable EDE minor mode if ARG is
402positive; otherwise, disable it. 402positive, and disable it otherwise. If called from Lisp, enable
403EDE minor mode if ARG is omitted or nil.
403 404
404If this file is contained, or could be contained in an EDE 405If this file is contained, or could be contained in an EDE
405controlled project, then this mode is activated automatically 406controlled project, then this mode is activated automatically
@@ -458,8 +459,9 @@ ONOFF indicates enabling or disabling the mode."
458;;;###autoload 459;;;###autoload
459(define-minor-mode global-ede-mode 460(define-minor-mode global-ede-mode
460 "Toggle global EDE (Emacs Development Environment) mode. 461 "Toggle global EDE (Emacs Development Environment) mode.
461With non-nil argument ARG, enable global EDE mode if ARG is 462With a prefix argument ARG, enable global EDE mode if ARG is
462positive; otherwise, disable it. 463positive, and disable it otherwise. If called from Lisp, enable
464the mode if ARG is omitted or nil.
463 465
464This global minor mode enables `ede-minor-mode' in all buffers in 466This global minor mode enables `ede-minor-mode' in all buffers in
465an EDE controlled project." 467an EDE controlled project."
@@ -1177,16 +1179,6 @@ See also `ede-map-subprojects'."
1177Return the first non-nil value returned by PROC." 1179Return the first non-nil value returned by PROC."
1178 (eval (cons 'or (ede-map-targets this proc)))) 1180 (eval (cons 'or (ede-map-targets this proc))))
1179 1181
1180;;; VC Handling
1181;;
1182(defun ede-maybe-checkout (&optional buffer)
1183 "Check BUFFER out of VC if necessary."
1184 (save-excursion
1185 (if buffer (set-buffer buffer))
1186 (if (and buffer-read-only vc-mode
1187 (y-or-n-p "Checkout Makefile.am from VC? "))
1188 (vc-toggle-read-only))))
1189
1190 1182
1191;;; Some language specific methods. 1183;;; Some language specific methods.
1192;; 1184;;
diff --git a/lisp/cedet/ede/project-am.el b/lisp/cedet/ede/project-am.el
index 88cf67e22ed..ec54d8151bc 100644
--- a/lisp/cedet/ede/project-am.el
+++ b/lisp/cedet/ede/project-am.el
@@ -214,7 +214,6 @@ OT is the object target. DIR is the directory to start in."
214 target (project-am-preferred-target-type (buffer-file-name))))) 214 target (project-am-preferred-target-type (buffer-file-name)))))
215 (ede-with-projectfile ot 215 (ede-with-projectfile ot
216 (makefile-move-to-macro (project-am-macro ot)) 216 (makefile-move-to-macro (project-am-macro ot))
217 (ede-maybe-checkout)
218 (makefile-end-of-command) 217 (makefile-end-of-command)
219 (insert " " ofn) 218 (insert " " ofn)
220 (makefile-fill-paragraph nil) 219 (makefile-fill-paragraph nil)
@@ -226,10 +225,6 @@ OT is the object target. DIR is the directory to start in."
226 "Remove the current buffer from any project targets." 225 "Remove the current buffer from any project targets."
227 (ede-with-projectfile ot 226 (ede-with-projectfile ot
228 (makefile-move-to-macro (project-am-macro ot)) 227 (makefile-move-to-macro (project-am-macro ot))
229 (if (and buffer-read-only vc-mode
230 (y-or-n-p "Checkout Makefile.am from VC? "))
231 (vc-toggle-read-only t))
232 (ede-maybe-checkout)
233 (makefile-navigate-macro (concat " *" (regexp-quote (ede-name fnnd)))) 228 (makefile-navigate-macro (concat " *" (regexp-quote (ede-name fnnd))))
234 (replace-match "" t t nil 0) 229 (replace-match "" t t nil 0)
235 (makefile-fill-paragraph nil) 230 (makefile-fill-paragraph nil)
@@ -271,7 +266,6 @@ buffer being in order to provide a smart default target type."
271 (if (not ot) (error "Error creating target object %S" ntype)) 266 (if (not ot) (error "Error creating target object %S" ntype))
272 (ede-with-projectfile ot 267 (ede-with-projectfile ot
273 (goto-char (point-min)) 268 (goto-char (point-min))
274 (ede-maybe-checkout)
275 (makefile-next-dependency) 269 (makefile-next-dependency)
276 (if (= (point) (point-min)) 270 (if (= (point) (point-min))
277 (goto-char (point-max)) 271 (goto-char (point-max))
diff --git a/lisp/cedet/ede/util.el b/lisp/cedet/ede/util.el
index fc4536ba88a..053180d4a8b 100644
--- a/lisp/cedet/ede/util.el
+++ b/lisp/cedet/ede/util.el
@@ -87,12 +87,7 @@ their sources to VERSION."
87If BUFFER isn't specified, use the current buffer." 87If BUFFER isn't specified, use the current buffer."
88 (save-excursion 88 (save-excursion
89 (if buffer (set-buffer buffer)) 89 (if buffer (set-buffer buffer))
90 (if buffer-read-only 90 (toggle-read-only -1)))
91 (if (and vc-mode
92 (y-or-n-p (format "Check out %s? " (buffer-file-name))))
93 (vc-toggle-read-only)
94 (if (not vc-mode)
95 (toggle-read-only -1))))))
96 91
97(provide 'ede/util) 92(provide 'ede/util)
98 93
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index ce9af0e12b5..34d886b6807 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -1055,8 +1055,10 @@ The possible elements of this list include the following:
1055 1055
1056;;;###autoload 1056;;;###autoload
1057(define-minor-mode semantic-mode 1057(define-minor-mode semantic-mode
1058 "Toggle Semantic mode. 1058 "Toggle parser features (Semantic mode).
1059With ARG, turn Semantic mode on if ARG is positive, off otherwise. 1059With a prefix argument ARG, enable Semantic mode if ARG is
1060positive, and disable it otherwise. If called from Lisp, enable
1061Semantic mode if ARG is omitted or nil.
1060 1062
1061In Semantic mode, Emacs parses the buffers you visit for their 1063In Semantic mode, Emacs parses the buffers you visit for their
1062semantic content. This information is used by a variety of 1064semantic content. This information is used by a variety of