summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/lex-spp.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-10-21 14:04:00 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-10-21 14:04:00 +0000
commit8d106ea001f5a258da2a36a70587cc8fc9695b1c (patch)
tree5d15a723f963ef7c5b9909508139c247fe03fecf /lisp/cedet/semantic/lex-spp.el
parentfc754ea1a40ae58dba2dbd4a9e9e11bb04f71a38 (diff)
downloademacs-8d106ea001f5a258da2a36a70587cc8fc9695b1c.tar.gz
emacs-8d106ea001f5a258da2a36a70587cc8fc9695b1c.tar.bz2
emacs-8d106ea001f5a258da2a36a70587cc8fc9695b1c.zip
* cedet/semantic/bovine/c.el (semantic-c-debug-mode-init)
(semantic-c-debug-mode-init-pch): New functions. (semantic-c-debug-mode-init-last-mode): New var. (semantic-c-parse-lexical-token): Use them. * cedet/semantic/lex-spp.el (semantic-lex-spp-anlyzer-do-replace): When extracting the argument list, limit only by point-max.
Diffstat (limited to 'lisp/cedet/semantic/lex-spp.el')
-rw-r--r--lisp/cedet/semantic/lex-spp.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/cedet/semantic/lex-spp.el b/lisp/cedet/semantic/lex-spp.el
index 03b54ab6240..b078a25b28e 100644
--- a/lisp/cedet/semantic/lex-spp.el
+++ b/lisp/cedet/semantic/lex-spp.el
@@ -697,7 +697,14 @@ Argument BEG and END specify the bounds of SYM in the buffer."
(goto-char end)
(setq arg-parsed
(semantic-lex-spp-one-token-and-move-for-macro
- (point-at-eol)))
+ ;; NOTE: This used to be (point-at-eol), but
+ ;; that was too close for multi-line arguments
+ ;; to a macro. Point max may be too far if there
+ ;; is a typo in the buffer.
+ ;;
+ ;; Look here for performance issues while a user is typing
+ ;; incomplete code.
+ (point-max)))
(setq end (semantic-lex-token-end arg-parsed))
(when (and (listp arg-parsed) (eq (car arg-parsed) 'semantic-list))