aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2010-09-30 13:31:53 +0900
committerKenichi Handa2010-09-30 13:31:53 +0900
commit39e266f9bb060e76f58e719d6860afb5daed4ece (patch)
treeec0c9a2e78b201e98f660b0b7a5e41af8d92ca8d
parentfcaf88782ba68e7c0618a663db51cf4a26cb3926 (diff)
parent5d2e937703a5ccc2b3c731fe227915c0d8bc8315 (diff)
downloademacs-39e266f9bb060e76f58e719d6860afb5daed4ece.tar.gz
emacs-39e266f9bb060e76f58e719d6860afb5daed4ece.zip
merge emacs-23
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/cedet/ChangeLog29
-rw-r--r--lisp/cedet/semantic/bovine/c-by.el115
-rw-r--r--lisp/cedet/semantic/bovine/el.el2
-rw-r--r--lisp/cedet/semantic/db-typecache.el2
-rw-r--r--lisp/cedet/semantic/fw.el2
-rw-r--r--lisp/cedet/semantic/grammar.el2
-rw-r--r--lisp/cedet/semantic/imenu.el2
-rw-r--r--lisp/cedet/semantic/lex-spp.el33
-rw-r--r--lisp/cedet/semantic/mru-bookmark.el2
-rw-r--r--lisp/cedet/semantic/tag.el3
-rw-r--r--lisp/server.el2
12 files changed, 133 insertions, 65 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 87520c2721b..22cc8f3a3ed 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-09-29 Juanma Barranquero <lekktu@gmail.com>
2
3 * server.el (server-process-filter): Doc fix.
4
12010-09-27 Drew Adams <drew.adams@oracle.com> 52010-09-27 Drew Adams <drew.adams@oracle.com>
2 6
3 * dired.el (dired-save-positions): Doc fix. (Bug#7119) 7 * dired.el (dired-save-positions): Doc fix. (Bug#7119)
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 5b75dfb5048..c0d96e795cc 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,32 @@
12010-09-30 Chong Yidong <cyd@stupidchicken.com>
2
3 * semantic/bovine/el.el:
4 * semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode):
5 Fix require statements.
6
72010-09-29 Chong Yidong <cyd@stupidchicken.com>
8
9 * semantic/tag.el (semantic-tag-version): Bump to 2.0.
10
11 * semantic/db-typecache.el (semanticdb-typecache-find-default):
12 * semantic/imenu.el (semantic-create-imenu-index):
13 * semantic/grammar.el (semantic--grammar-macro-function-tag):
14 * semantic/fw.el (semanticdb-without-unloaded-file-searches): Fix
15 require. Suggested by David Engster.
16
17 * semantic/bovine/c-by.el: Regenerate.
18
192010-09-29 Eric Ludlam <zappo@gnu.org>
20
21 * semantic/lex-spp.el (semantic-lex-spp-debug-symbol): New var.
22 (semantic-lex-spp-enable-debug-symbol): New command
23 (semantic-lex-spp-value-valid-p)
24 (semantic-lex-spp-validate-value): New functions
25 (semantic-lex-spp-symbol-set)
26 (semantic-lex-spp-symbol-push): Add call to validate value.
27 (semantic-lex-spp-table-write-slot-value): Instead of erroring on
28 invalid values during save, just save a nil.
29
12010-09-25 Chong Yidong <cyd@stupidchicken.com> 302010-09-25 Chong Yidong <cyd@stupidchicken.com>
2 31
3 * ede/linux.el (ede-project-class-files): 32 * ede/linux.el (ede-project-class-files):
diff --git a/lisp/cedet/semantic/bovine/c-by.el b/lisp/cedet/semantic/bovine/c-by.el
index 09fb42261a4..c33f3fb67f5 100644
--- a/lisp/cedet/semantic/bovine/c-by.el
+++ b/lisp/cedet/semantic/bovine/c-by.el
@@ -1240,7 +1240,9 @@
1240 (nth 7 vals)) 1240 (nth 7 vals))
1241 (nth 0 vals) 1241 (nth 0 vals)
1242 (nth 10 vals) 1242 (nth 10 vals)
1243 (nth 4 vals)) 1243 (list
1244 (nth 4 vals))
1245 (nth 9 vals))
1244 ) 1246 )
1245 (opt-stars 1247 (opt-stars
1246 opt-class 1248 opt-class
@@ -1262,7 +1264,9 @@
1262 (nth 6 vals)) 1264 (nth 6 vals))
1263 (nth 0 vals) 1265 (nth 0 vals)
1264 (nth 9 vals) 1266 (nth 9 vals)
1265 (nth 4 vals)) 1267 (list
1268 (nth 4 vals))
1269 (nth 8 vals))
1266 ) 1270 )
1267 ) ;; end func-decl 1271 ) ;; end func-decl
1268 1272
@@ -1433,13 +1437,11 @@
1433 namespace-symbol 1437 namespace-symbol
1434 opt-bits 1438 opt-bits
1435 opt-array 1439 opt-array
1436 opt-assign
1437 ,(semantic-lambda 1440 ,(semantic-lambda
1438 (nth 2 vals) 1441 (nth 2 vals)
1439 (nth 0 vals) 1442 (nth 0 vals)
1440 (nth 3 vals) 1443 (nth 3 vals)
1441 (nth 4 vals) 1444 (nth 4 vals))
1442 (nth 5 vals))
1443 ) 1445 )
1444 ) ;; end varname 1446 ) ;; end varname
1445 1447
@@ -1484,19 +1486,28 @@
1484 ) 1486 )
1485 ) ;; end variablearg-opt-name 1487 ) ;; end variablearg-opt-name
1486 1488
1489 (varname-opt-initializer
1490 (semantic-list)
1491 (opt-assign)
1492 ( ;;EMPTY
1493 )
1494 ) ;; end varname-opt-initializer
1495
1487 (varnamelist 1496 (varnamelist
1488 (opt-ref 1497 (opt-ref
1489 varname 1498 varname
1499 varname-opt-initializer
1490 punctuation 1500 punctuation
1491 "\\`[,]\\'" 1501 "\\`[,]\\'"
1492 varnamelist 1502 varnamelist
1493 ,(semantic-lambda 1503 ,(semantic-lambda
1494 (cons 1504 (cons
1495 (nth 1 vals) 1505 (nth 1 vals)
1496 (nth 3 vals))) 1506 (nth 4 vals)))
1497 ) 1507 )
1498 (opt-ref 1508 (opt-ref
1499 varname 1509 varname
1510 varname-opt-initializer
1500 ,(semantic-lambda 1511 ,(semantic-lambda
1501 (list 1512 (list
1502 (nth 1 vals))) 1513 (nth 1 vals)))
@@ -2108,74 +2119,64 @@
2108 "\\`[&]\\'") 2119 "\\`[&]\\'")
2109 ) ;; end expr-start 2120 ) ;; end expr-start
2110 2121
2122 (expr-binop
2123 (punctuation
2124 "\\`[-]\\'")
2125 (punctuation
2126 "\\`[+]\\'")
2127 (punctuation
2128 "\\`[*]\\'")
2129 (punctuation
2130 "\\`[/]\\'")
2131 (punctuation
2132 "\\`[&]\\'"
2133 punctuation
2134 "\\`[&]\\'")
2135 (punctuation
2136 "\\`[&]\\'")
2137 (punctuation
2138 "\\`[|]\\'"
2139 punctuation
2140 "\\`[|]\\'")
2141 (punctuation
2142 "\\`[|]\\'")
2143 ) ;; end expr-binop
2144
2111 (expression 2145 (expression
2112 (number 2146 (unaryexpression
2147 expr-binop
2148 unaryexpression
2113 ,(semantic-lambda 2149 ,(semantic-lambda
2114 (list 2150 (list
2115 (identity start) 2151 (identity start)
2116 (identity end))) 2152 (identity end)))
2117 ) 2153 )
2118 (multi-stage-dereference 2154 (unaryexpression
2119 ,(semantic-lambda 2155 ,(semantic-lambda
2120 (list 2156 (list
2121 (identity start) 2157 (identity start)
2122 (identity end))) 2158 (identity end)))
2123 ) 2159 )
2160 ) ;; end expression
2161
2162 (unaryexpression
2163 (number)
2164 (multi-stage-dereference)
2124 (NEW 2165 (NEW
2125 multi-stage-dereference 2166 multi-stage-dereference)
2126 ,(semantic-lambda
2127 (list
2128 (identity start)
2129 (identity end)))
2130 )
2131 (NEW 2167 (NEW
2132 builtintype-types 2168 builtintype-types
2133 semantic-list 2169 semantic-list)
2134 ,(semantic-lambda 2170 (namespace-symbol)
2135 (list 2171 (string-seq)
2136 (identity start)
2137 (identity end)))
2138 )
2139 (namespace-symbol
2140 ,(semantic-lambda
2141 (list
2142 (identity start)
2143 (identity end)))
2144 )
2145 (string-seq
2146 ,(semantic-lambda
2147 (list
2148 (identity start)
2149 (identity end)))
2150 )
2151 (type-cast 2172 (type-cast
2152 expression 2173 expression)
2153 ,(semantic-lambda
2154 (list
2155 (identity start)
2156 (identity end)))
2157 )
2158 (semantic-list
2159 expression
2160 ,(semantic-lambda
2161 (list
2162 (identity start)
2163 (identity end)))
2164 )
2165 (semantic-list 2174 (semantic-list
2166 ,(semantic-lambda 2175 expression)
2167 (list 2176 (semantic-list)
2168 (identity start)
2169 (identity end)))
2170 )
2171 (expr-start 2177 (expr-start
2172 expression 2178 expression)
2173 ,(semantic-lambda 2179 ) ;; end unaryexpression
2174 (list
2175 (identity start)
2176 (identity end)))
2177 )
2178 ) ;; end expression
2179 ) 2180 )
2180 "Parser table.") 2181 "Parser table.")
2181 2182
diff --git a/lisp/cedet/semantic/bovine/el.el b/lisp/cedet/semantic/bovine/el.el
index 5b5a5660b7d..ed1f74c590f 100644
--- a/lisp/cedet/semantic/bovine/el.el
+++ b/lisp/cedet/semantic/bovine/el.el
@@ -958,7 +958,7 @@ ELisp variables can be pretty long, so track this one too.")
958(add-hook 'lisp-mode-hook 'semantic-default-elisp-setup) 958(add-hook 'lisp-mode-hook 'semantic-default-elisp-setup)
959 959
960(eval-after-load "semanticdb" 960(eval-after-load "semanticdb"
961 '(require 'semanticdb-el) 961 '(require 'semantic/db-el)
962 ) 962 )
963 963
964(provide 'semantic/bovine/el) 964(provide 'semantic/bovine/el)
diff --git a/lisp/cedet/semantic/db-typecache.el b/lisp/cedet/semantic/db-typecache.el
index 71b15fdf82a..59ba83fe9d0 100644
--- a/lisp/cedet/semantic/db-typecache.el
+++ b/lisp/cedet/semantic/db-typecache.el
@@ -403,7 +403,7 @@ TYPE is the datatype to find.
403PATH is the search path, which should be one table object. 403PATH is the search path, which should be one table object.
404If FIND-FILE-MATCH is non-nil, then force the file belonging to the 404If FIND-FILE-MATCH is non-nil, then force the file belonging to the
405found tag to be loaded." 405found tag to be loaded."
406 (if (not (and (featurep 'semanticdb) semanticdb-current-database)) 406 (if (not (and (featurep 'semantic/db) semanticdb-current-database))
407 nil ;; No DB, no search 407 nil ;; No DB, no search
408 (save-excursion 408 (save-excursion
409 (semanticdb-typecache-find-method (or path semanticdb-current-table) 409 (semanticdb-typecache-find-method (or path semanticdb-current-table)
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 49790861632..811508377b8 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -315,7 +315,7 @@ FILE, NOWARN, RAWFILE, and WILDCARDS are passed into `find-file-noselect'"
315(defmacro semanticdb-without-unloaded-file-searches (forms) 315(defmacro semanticdb-without-unloaded-file-searches (forms)
316 "Execute FORMS with `unloaded' removed from the current throttle." 316 "Execute FORMS with `unloaded' removed from the current throttle."
317 `(let ((semanticdb-find-default-throttle 317 `(let ((semanticdb-find-default-throttle
318 (if (featurep 'semanticdb-find) 318 (if (featurep 'semantic/db-find)
319 (remq 'unloaded semanticdb-find-default-throttle) 319 (remq 'unloaded semanticdb-find-default-throttle)
320 nil))) 320 nil)))
321 ,forms)) 321 ,forms))
diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el
index 65365768f98..d99ae0cb0ac 100644
--- a/lisp/cedet/semantic/grammar.el
+++ b/lisp/cedet/semantic/grammar.el
@@ -1519,7 +1519,7 @@ Return the tag found or nil if not found."
1519 (car (semantic-find-tags-by-class 1519 (car (semantic-find-tags-by-class
1520 'function 1520 'function
1521 (or (semantic-find-tags-by-name name (current-buffer)) 1521 (or (semantic-find-tags-by-name name (current-buffer))
1522 (and (featurep 'semanticdb) 1522 (and (featurep 'semantic/db)
1523 semanticdb-current-database 1523 semanticdb-current-database
1524 (cdar (semanticdb-find-tags-by-name name nil t))))))) 1524 (cdar (semanticdb-find-tags-by-name name nil t)))))))
1525 1525
diff --git a/lisp/cedet/semantic/imenu.el b/lisp/cedet/semantic/imenu.el
index e38b50bcd57..465a93a16dd 100644
--- a/lisp/cedet/semantic/imenu.el
+++ b/lisp/cedet/semantic/imenu.el
@@ -235,7 +235,7 @@ Optional argument STREAM is an optional stream of tags used to create menus."
235 (setq imenu-default-goto-function 'semantic-imenu-goto-function) 235 (setq imenu-default-goto-function 'semantic-imenu-goto-function)
236 (prog1 236 (prog1
237 (if (and semantic-imenu-index-directory 237 (if (and semantic-imenu-index-directory
238 (featurep 'semanticdb) 238 (featurep 'semantic/db)
239 (semanticdb-minor-mode-p)) 239 (semanticdb-minor-mode-p))
240 (semantic-create-imenu-directory-index 240 (semantic-create-imenu-directory-index
241 (or stream (semantic-fetch-tags-fast))) 241 (or stream (semantic-fetch-tags-fast)))
diff --git a/lisp/cedet/semantic/lex-spp.el b/lisp/cedet/semantic/lex-spp.el
index 88b77e50e1d..0b4fa930b1b 100644
--- a/lisp/cedet/semantic/lex-spp.el
+++ b/lisp/cedet/semantic/lex-spp.el
@@ -173,10 +173,42 @@ The search priority is:
173 (setq semantic-lex-spp-dynamic-macro-symbol-obarray-stack 173 (setq semantic-lex-spp-dynamic-macro-symbol-obarray-stack
174 (make-vector 13 0)))) 174 (make-vector 13 0))))
175 175
176(defun semantic-lex-spp-value-valid-p (value)
177 "Return non-nil if VALUE is valid."
178 (or (null value)
179 (stringp value)
180 (and (consp value)
181 (or (semantic-lex-token-p (car value))
182 (eq (car (car value)) 'spp-arg-list)))))
183
184(defvar semantic-lex-spp-debug-symbol nil
185 "A symbol to break on if it is being set somewhere.")
186
187(defun semantic-lex-spp-enable-debug-symbol (sym)
188 "Enable debugging for symbol SYM.
189Disable debugging by entering nothing."
190 (interactive "sSymbol: ")
191 (if (string= sym "")
192 (setq semantic-lex-spp-debug-symbol nil)
193 (setq semantic-lex-spp-debug-symbol sym)))
194
195(defmacro semantic-lex-spp-validate-value (name value)
196 "Validate the NAME and VALUE of a macro before it is set."
197; `(progn
198; (when (not (semantic-lex-spp-value-valid-p ,value))
199; (error "Symbol \"%s\" with bogus value %S" ,name ,value))
200; (when (and semantic-lex-spp-debug-symbol
201; (string= semantic-lex-spp-debug-symbol name))
202; (debug))
203; )
204 nil
205 )
206
176(defun semantic-lex-spp-symbol-set (name value &optional obarray-in) 207(defun semantic-lex-spp-symbol-set (name value &optional obarray-in)
177 "Set value of spp symbol with NAME to VALUE and return VALUE. 208 "Set value of spp symbol with NAME to VALUE and return VALUE.
178If optional OBARRAY-IN is non-nil, then use that obarray instead of 209If optional OBARRAY-IN is non-nil, then use that obarray instead of
179the dynamic map." 210the dynamic map."
211 (semantic-lex-spp-validate-value name value)
180 (if (and (stringp value) (string= value "")) (setq value nil)) 212 (if (and (stringp value) (string= value "")) (setq value nil))
181 (set (intern name (or obarray-in 213 (set (intern name (or obarray-in
182 (semantic-lex-spp-dynamic-map))) 214 (semantic-lex-spp-dynamic-map)))
@@ -192,6 +224,7 @@ the dynamic map."
192(defun semantic-lex-spp-symbol-push (name value) 224(defun semantic-lex-spp-symbol-push (name value)
193 "Push macro NAME with VALUE into the map. 225 "Push macro NAME with VALUE into the map.
194Reverse with `semantic-lex-spp-symbol-pop'." 226Reverse with `semantic-lex-spp-symbol-pop'."
227 (semantic-lex-spp-validate-value name value)
195 (let* ((map (semantic-lex-spp-dynamic-map)) 228 (let* ((map (semantic-lex-spp-dynamic-map))
196 (stack (semantic-lex-spp-dynamic-map-stack)) 229 (stack (semantic-lex-spp-dynamic-map-stack))
197 (mapsym (intern name map)) 230 (mapsym (intern name map))
diff --git a/lisp/cedet/semantic/mru-bookmark.el b/lisp/cedet/semantic/mru-bookmark.el
index 1982f81cbad..2a6ac8f9b10 100644
--- a/lisp/cedet/semantic/mru-bookmark.el
+++ b/lisp/cedet/semantic/mru-bookmark.el
@@ -246,7 +246,7 @@ been edited, and you can re-visit them with \\[semantic-mrub-switch-tags]."
246 :group 'semantic 246 :group 'semantic
247 :group 'semantic-modes 247 :group 'semantic-modes
248 :type 'boolean 248 :type 'boolean
249 :require 'semantic-util-modes 249 :require 'semantic/util-modes
250 :initialize 'custom-initialize-default 250 :initialize 'custom-initialize-default
251 :set (lambda (sym val) 251 :set (lambda (sym val)
252 (global-semantic-mru-bookmark-mode (if val 1 -1)))) 252 (global-semantic-mru-bookmark-mode (if val 1 -1))))
diff --git a/lisp/cedet/semantic/tag.el b/lisp/cedet/semantic/tag.el
index e9094fcb051..0195a29b66e 100644
--- a/lisp/cedet/semantic/tag.el
+++ b/lisp/cedet/semantic/tag.el
@@ -53,7 +53,7 @@
53(declare-function semantic-fetch-tags "semantic") 53(declare-function semantic-fetch-tags "semantic")
54(declare-function semantic-clear-toplevel-cache "semantic") 54(declare-function semantic-clear-toplevel-cache "semantic")
55 55
56(defconst semantic-tag-version "2.0pre7" 56(defconst semantic-tag-version "2.0"
57 "Version string of semantic tags made with this code.") 57 "Version string of semantic tags made with this code.")
58 58
59(defconst semantic-tag-incompatible-version "1.0" 59(defconst semantic-tag-incompatible-version "1.0"
@@ -221,6 +221,7 @@ See also the function `semantic-ctxt-current-mode'."
221 ;; beginning of TAG. 221 ;; beginning of TAG.
222 (or (and (>= (point) start) (< (point) end)) 222 (or (and (>= (point) start) (< (point) end))
223 (goto-char start)) 223 (goto-char start))
224 (require 'semantic/ctxt)
224 (semantic-ctxt-current-mode))))) 225 (semantic-ctxt-current-mode)))))
225 226
226(defsubst semantic--tag-attributes-cdr (tag) 227(defsubst semantic--tag-attributes-cdr (tag)
diff --git a/lisp/server.el b/lisp/server.el
index e8a0125f554..265b422e957 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -857,7 +857,7 @@ The following commands are accepted by the client:
857 returned by -eval. 857 returned by -eval.
858 858
859`-error DESCRIPTION' 859`-error DESCRIPTION'
860 Signal an error (but continue processing). 860 Signal an error and delete process PROC.
861 861
862`-suspend' 862`-suspend'
863 Suspend this terminal, i.e., stop the client process. 863 Suspend this terminal, i.e., stop the client process.