diff options
| author | Joakim Verona | 2013-06-12 12:32:25 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-06-12 12:32:25 +0200 |
| commit | e6fa6da6899bf1b4877b96c450eae3934085d560 (patch) | |
| tree | 48e6fda463d24a792ec8428fb8044a250ee2ff82 /lisp/cedet/srecode | |
| parent | 4f0994366d33f8f76db4662cc126720866df3461 (diff) | |
| parent | 84d6f46535554f9f51aae3314313112e8d755c65 (diff) | |
| download | emacs-e6fa6da6899bf1b4877b96c450eae3934085d560.tar.gz emacs-e6fa6da6899bf1b4877b96c450eae3934085d560.zip | |
Merge branch 'trunk' into xwidget
Conflicts:
src/Makefile.in
src/keyboard.c
src/termhooks.h
Diffstat (limited to 'lisp/cedet/srecode')
| -rw-r--r-- | lisp/cedet/srecode/args.el | 1 | ||||
| -rw-r--r-- | lisp/cedet/srecode/compile.el | 28 | ||||
| -rw-r--r-- | lisp/cedet/srecode/java.el | 1 | ||||
| -rw-r--r-- | lisp/cedet/srecode/srt-wy.el | 6 |
4 files changed, 23 insertions, 13 deletions
diff --git a/lisp/cedet/srecode/args.el b/lisp/cedet/srecode/args.el index d6798f7523d..6bc78295fa7 100644 --- a/lisp/cedet/srecode/args.el +++ b/lisp/cedet/srecode/args.el | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | ;; a set of simple arguments for srecode templates. | 26 | ;; a set of simple arguments for srecode templates. |
| 27 | 27 | ||
| 28 | (require 'srecode/dictionary) | 28 | (require 'srecode/dictionary) |
| 29 | (require 'ede) | ||
| 29 | 30 | ||
| 30 | ;;; Code: | 31 | ;;; Code: |
| 31 | 32 | ||
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el index 0d68036c433..542fd49f8e5 100644 --- a/lisp/cedet/srecode/compile.el +++ b/lisp/cedet/srecode/compile.el | |||
| @@ -200,10 +200,11 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | |||
| 200 | "Compile a semantic recode template file into a mode-local variable." | 200 | "Compile a semantic recode template file into a mode-local variable." |
| 201 | (interactive) | 201 | (interactive) |
| 202 | (unless (semantic-active-p) | 202 | (unless (semantic-active-p) |
| 203 | (error "You have to activate semantic-mode to compile SRecode templates.")) | 203 | (error "You have to activate semantic-mode to compile SRecode templates")) |
| 204 | (require 'srecode/insert) | 204 | (require 'srecode/insert) |
| 205 | (message "Compiling template %s..." | 205 | (when (called-interactively-p 'interactive) |
| 206 | (file-name-nondirectory (buffer-file-name))) | 206 | (message "Compiling template %s..." |
| 207 | (file-name-nondirectory (buffer-file-name)))) | ||
| 207 | (let ((tags (semantic-fetch-tags)) | 208 | (let ((tags (semantic-fetch-tags)) |
| 208 | (tag nil) | 209 | (tag nil) |
| 209 | (class nil) | 210 | (class nil) |
| @@ -288,10 +289,11 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | |||
| 288 | ) | 289 | ) |
| 289 | ;; Continue | 290 | ;; Continue |
| 290 | (setq tags (cdr tags))) | 291 | (setq tags (cdr tags))) |
| 291 | 292 | ||
| 292 | ;; MSG - Before install since nreverse whacks our list. | 293 | ;; MSG - Before install since nreverse whacks our list. |
| 293 | (message "%d templates compiled for %s" | 294 | (when (called-interactively-p 'interactive) |
| 294 | (length table) mode) | 295 | (message "%d templates compiled for %s" |
| 296 | (length table) mode)) | ||
| 295 | 297 | ||
| 296 | ;; | 298 | ;; |
| 297 | ;; APPLY TO MODE | 299 | ;; APPLY TO MODE |
| @@ -316,12 +318,14 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | |||
| 316 | (if (stringp project) | 318 | (if (stringp project) |
| 317 | (setq priority (+ 50 defaultdelta)) | 319 | (setq priority (+ 50 defaultdelta)) |
| 318 | (setq priority (+ 80 defaultdelta)))) | 320 | (setq priority (+ 80 defaultdelta)))) |
| 319 | (message "Templates %s has estimated priority of %d" | 321 | (when (called-interactively-p 'interactive) |
| 320 | (file-name-nondirectory (buffer-file-name)) | 322 | (message "Templates %s has estimated priority of %d" |
| 321 | priority)) | 323 | (file-name-nondirectory (buffer-file-name)) |
| 322 | (message "Compiling templates %s priority %d... done!" | 324 | priority))) |
| 323 | (file-name-nondirectory (buffer-file-name)) | 325 | (when (called-interactively-p 'interactive) |
| 324 | priority)) | 326 | (message "Compiling templates %s priority %d... done!" |
| 327 | (file-name-nondirectory (buffer-file-name)) | ||
| 328 | priority))) | ||
| 325 | 329 | ||
| 326 | ;; Save it up! | 330 | ;; Save it up! |
| 327 | (srecode-compile-template-table table mode priority application framework project vars) | 331 | (srecode-compile-template-table table mode priority application framework project vars) |
diff --git a/lisp/cedet/srecode/java.el b/lisp/cedet/srecode/java.el index 29a8465c45c..1b8922c2746 100644 --- a/lisp/cedet/srecode/java.el +++ b/lisp/cedet/srecode/java.el | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | (require 'srecode/dictionary) | 28 | (require 'srecode/dictionary) |
| 29 | (require 'semantic/find) | 29 | (require 'semantic/find) |
| 30 | (require 'ede) | ||
| 30 | 31 | ||
| 31 | ;;;###autoload | 32 | ;;;###autoload |
| 32 | (defun srecode-semantic-handle-:java (dict) | 33 | (defun srecode-semantic-handle-:java (dict) |
diff --git a/lisp/cedet/srecode/srt-wy.el b/lisp/cedet/srecode/srt-wy.el index 5560d35a70c..450f57d943c 100644 --- a/lisp/cedet/srecode/srt-wy.el +++ b/lisp/cedet/srecode/srt-wy.el | |||
| @@ -131,6 +131,10 @@ | |||
| 131 | ((SET symbol insertable-string-list newline) | 131 | ((SET symbol insertable-string-list newline) |
| 132 | (wisent-raw-tag | 132 | (wisent-raw-tag |
| 133 | (semantic-tag-new-variable $2 nil $3))) | 133 | (semantic-tag-new-variable $2 nil $3))) |
| 134 | ((SET symbol number newline) | ||
| 135 | (wisent-raw-tag | ||
| 136 | (semantic-tag-new-variable $2 nil | ||
| 137 | (list $3)))) | ||
| 134 | ((SHOW symbol newline) | 138 | ((SHOW symbol newline) |
| 135 | (wisent-raw-tag | 139 | (wisent-raw-tag |
| 136 | (semantic-tag-new-variable $2 nil t)))) | 140 | (semantic-tag-new-variable $2 nil t)))) |
| @@ -290,8 +294,8 @@ It ignores whitespace, newlines and comments." | |||
| 290 | srecode-template-separator-block | 294 | srecode-template-separator-block |
| 291 | srecode-template-wy--<keyword>-keyword-analyzer | 295 | srecode-template-wy--<keyword>-keyword-analyzer |
| 292 | srecode-template-property-analyzer | 296 | srecode-template-property-analyzer |
| 293 | srecode-template-wy--<symbol>-regexp-analyzer | ||
| 294 | srecode-template-wy--<number>-regexp-analyzer | 297 | srecode-template-wy--<number>-regexp-analyzer |
| 298 | srecode-template-wy--<symbol>-regexp-analyzer | ||
| 295 | srecode-template-wy--<string>-sexp-analyzer | 299 | srecode-template-wy--<string>-sexp-analyzer |
| 296 | srecode-template-wy--<punctuation>-string-analyzer | 300 | srecode-template-wy--<punctuation>-string-analyzer |
| 297 | semantic-lex-default-action | 301 | semantic-lex-default-action |