diff options
| author | Joakim Verona | 2015-01-11 18:40:21 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-11 18:40:21 +0100 |
| commit | cc7cb20d6abc0f862e5513b24831bba0eaecaa5f (patch) | |
| tree | afc2fc05401504aa0c28699dc3bc155c5b0d7f58 /lisp/cedet/srecode | |
| parent | d972b504f30ff4300ba368940751e8736dddf0b4 (diff) | |
| parent | 9a57bda31569294ecaf8138a06e5edda9c0d87e3 (diff) | |
| download | emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.tar.gz emacs-cc7cb20d6abc0f862e5513b24831bba0eaecaa5f.zip | |
merge master, fix conflicts
Diffstat (limited to 'lisp/cedet/srecode')
| -rw-r--r-- | lisp/cedet/srecode/compile.el | 8 | ||||
| -rw-r--r-- | lisp/cedet/srecode/fields.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/insert.el | 10 | ||||
| -rw-r--r-- | lisp/cedet/srecode/map.el | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el index d899b42b1e1..782121ef5b5 100644 --- a/lisp/cedet/srecode/compile.el +++ b/lisp/cedet/srecode/compile.el | |||
| @@ -87,10 +87,10 @@ for push, pop, and peek for the active template.") | |||
| 87 | Useful if something goes wrong in SRecode, and the active template | 87 | Useful if something goes wrong in SRecode, and the active template |
| 88 | stack is broken." | 88 | stack is broken." |
| 89 | (interactive) | 89 | (interactive) |
| 90 | (if (oref srecode-template active) | 90 | (if (oref-default 'srecode-template active) |
| 91 | (when (y-or-n-p (format "%d active templates. Flush? " | 91 | (when (y-or-n-p (format "%d active templates. Flush? " |
| 92 | (length (oref srecode-template active)))) | 92 | (length (oref-default 'srecode-template active)))) |
| 93 | (oset-default srecode-template active nil)) | 93 | (oset-default 'srecode-template active nil)) |
| 94 | (message "No active templates to flush.")) | 94 | (message "No active templates to flush.")) |
| 95 | ) | 95 | ) |
| 96 | 96 | ||
| @@ -514,7 +514,7 @@ to the inserter constructor." | |||
| 514 | ;;(message "Compile: %s %S" name props) | 514 | ;;(message "Compile: %s %S" name props) |
| 515 | (if (not key) | 515 | (if (not key) |
| 516 | (apply 'srecode-template-inserter-variable name props) | 516 | (apply 'srecode-template-inserter-variable name props) |
| 517 | (let ((classes (eieio-class-children srecode-template-inserter)) | 517 | (let ((classes (eieio-class-children 'srecode-template-inserter)) |
| 518 | (new nil)) | 518 | (new nil)) |
| 519 | ;; Loop over the various subclasses and | 519 | ;; Loop over the various subclasses and |
| 520 | ;; create the correct inserter. | 520 | ;; create the correct inserter. |
diff --git a/lisp/cedet/srecode/fields.el b/lisp/cedet/srecode/fields.el index 20852f78b41..f473a0d8261 100644 --- a/lisp/cedet/srecode/fields.el +++ b/lisp/cedet/srecode/fields.el | |||
| @@ -237,7 +237,7 @@ If SET-TO is a string, then replace the text of OLAID wit SET-TO." | |||
| 237 | 237 | ||
| 238 | (defsubst srecode-active-template-region () | 238 | (defsubst srecode-active-template-region () |
| 239 | "Return the active region for template fields." | 239 | "Return the active region for template fields." |
| 240 | (oref srecode-template-inserted-region active-region)) | 240 | (oref-default 'srecode-template-inserted-region active-region)) |
| 241 | 241 | ||
| 242 | (defun srecode-field-post-command () | 242 | (defun srecode-field-post-command () |
| 243 | "Srecode field handler in the post command hook." | 243 | "Srecode field handler in the post command hook." |
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index f1f23bc6f1d..78ec1658859 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -211,7 +211,7 @@ insertions." | |||
| 211 | (propertize " (most recent at bottom)" 'face '(:slant italic)) | 211 | (propertize " (most recent at bottom)" 'face '(:slant italic)) |
| 212 | ":\n") | 212 | ":\n") |
| 213 | (data-debug-insert-stuff-list | 213 | (data-debug-insert-stuff-list |
| 214 | (reverse (oref srecode-template active)) "> ") | 214 | (reverse (oref-default 'srecode-template active)) "> ") |
| 215 | ;; Show the current dictionary. | 215 | ;; Show the current dictionary. |
| 216 | (insert (propertize "Dictionary" 'face '(:weight bold)) "\n") | 216 | (insert (propertize "Dictionary" 'face '(:weight bold)) "\n") |
| 217 | (data-debug-insert-thing dictionary "" "> ") | 217 | (data-debug-insert-thing dictionary "" "> ") |
| @@ -396,7 +396,7 @@ Specify the :blank argument to enable this inserter.") | |||
| 396 | (pm (point-marker))) | 396 | (pm (point-marker))) |
| 397 | (when (and inbuff | 397 | (when (and inbuff |
| 398 | ;; Don't do this if we are not the active template. | 398 | ;; Don't do this if we are not the active template. |
| 399 | (= (length (oref srecode-template active)) 1)) | 399 | (= (length (oref-default 'srecode-template active)) 1)) |
| 400 | 400 | ||
| 401 | (when (and (eq i t) inbuff (not (eq (oref sti where) 'begin))) | 401 | (when (and (eq i t) inbuff (not (eq (oref sti where) 'begin))) |
| 402 | (indent-according-to-mode) | 402 | (indent-according-to-mode) |
| @@ -773,7 +773,7 @@ generalized marker will do something else. See | |||
| 773 | ;; valid. Compare this to the actual template nesting depth and | 773 | ;; valid. Compare this to the actual template nesting depth and |
| 774 | ;; maybe use the override function which is stored in the cdr. | 774 | ;; maybe use the override function which is stored in the cdr. |
| 775 | (if (and srecode-template-inserter-point-override | 775 | (if (and srecode-template-inserter-point-override |
| 776 | (<= (length (oref srecode-template active)) | 776 | (<= (length (oref-default 'srecode-template active)) |
| 777 | (car srecode-template-inserter-point-override))) | 777 | (car srecode-template-inserter-point-override))) |
| 778 | ;; Disable the old override while we do this. | 778 | ;; Disable the old override while we do this. |
| 779 | (let ((over (cdr srecode-template-inserter-point-override)) | 779 | (let ((over (cdr srecode-template-inserter-point-override)) |
| @@ -943,7 +943,7 @@ this template instance." | |||
| 943 | ;; Calculate and store the discovered template | 943 | ;; Calculate and store the discovered template |
| 944 | (let ((tmpl (srecode-template-get-table (srecode-table) | 944 | (let ((tmpl (srecode-template-get-table (srecode-table) |
| 945 | templatenamepart)) | 945 | templatenamepart)) |
| 946 | (active (oref srecode-template active)) | 946 | (active (oref-default 'srecode-template active)) |
| 947 | ctxt) | 947 | ctxt) |
| 948 | (when (not tmpl) | 948 | (when (not tmpl) |
| 949 | ;; If it isn't just available, scan back through | 949 | ;; If it isn't just available, scan back through |
| @@ -1053,7 +1053,7 @@ template where a ^ inserter occurs." | |||
| 1053 | (lexical-let ((inserter1 sti)) | 1053 | (lexical-let ((inserter1 sti)) |
| 1054 | (cons | 1054 | (cons |
| 1055 | ;; DEPTH | 1055 | ;; DEPTH |
| 1056 | (+ (length (oref srecode-template active)) 1) | 1056 | (+ (length (oref-default 'srecode-template active)) 1) |
| 1057 | ;; FUNCTION | 1057 | ;; FUNCTION |
| 1058 | (lambda (dict) | 1058 | (lambda (dict) |
| 1059 | (let ((srecode-template-inserter-point-override nil)) | 1059 | (let ((srecode-template-inserter-point-override nil)) |
diff --git a/lisp/cedet/srecode/map.el b/lisp/cedet/srecode/map.el index 7224d5942f6..cc0c4ae4427 100644 --- a/lisp/cedet/srecode/map.el +++ b/lisp/cedet/srecode/map.el | |||
| @@ -298,7 +298,7 @@ if that file is NEW, otherwise assume the mode has not changed." | |||
| 298 | (when (not srecode-current-map) | 298 | (when (not srecode-current-map) |
| 299 | (condition-case nil | 299 | (condition-case nil |
| 300 | (setq srecode-current-map | 300 | (setq srecode-current-map |
| 301 | (eieio-persistent-read srecode-map-save-file srecode-map)) | 301 | (eieio-persistent-read srecode-map-save-file 'srecode-map)) |
| 302 | (error | 302 | (error |
| 303 | ;; There was an error loading the old map. Create a new one. | 303 | ;; There was an error loading the old map. Create a new one. |
| 304 | (setq srecode-current-map | 304 | (setq srecode-current-map |