diff options
| author | Lars Ingebrigtsen | 2019-06-14 15:29:17 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-14 15:29:17 +0200 |
| commit | 98df06c19ea3bb20f116c3776dc339a66c442ff5 (patch) | |
| tree | ece16a6d07a7b91ef043cc0f01d949b7872d3517 /lisp/cedet | |
| parent | 595e12c2da7b5053f56f57ba59a6156ac239bbf0 (diff) | |
| download | emacs-98df06c19ea3bb20f116c3776dc339a66c442ff5.tar.gz emacs-98df06c19ea3bb20f116c3776dc339a66c442ff5.zip | |
srecode-inserter-prin-example compilation fix
* lisp/cedet/srecode/insert.el (srecode-inserter-prin-example):
Move prin1 example to file that defines the structure it prints.
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/srecode/compile.el | 12 | ||||
| -rw-r--r-- | lisp/cedet/srecode/insert.el | 13 |
2 files changed, 13 insertions, 12 deletions
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el index ff640c020f3..586ed0ab0e8 100644 --- a/lisp/cedet/srecode/compile.el +++ b/lisp/cedet/srecode/compile.el | |||
| @@ -131,18 +131,6 @@ STATE is the current compilation state." | |||
| 131 | "For the template inserter INS, apply information from STATE." | 131 | "For the template inserter INS, apply information from STATE." |
| 132 | nil) | 132 | nil) |
| 133 | 133 | ||
| 134 | (cl-defmethod srecode-inserter-prin-example ((ins (subclass srecode-template-inserter)) | ||
| 135 | escape-start escape-end) | ||
| 136 | "Insert an example using inserter INS. | ||
| 137 | Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | ||
| 138 | (princ " ") | ||
| 139 | (princ escape-start) | ||
| 140 | (when (and (slot-exists-p ins 'key) (oref ins key)) | ||
| 141 | (princ (format "%c" (oref ins key)))) | ||
| 142 | (princ "VARNAME") | ||
| 143 | (princ escape-end) | ||
| 144 | (terpri) | ||
| 145 | ) | ||
| 146 | 134 | ||
| 147 | 135 | ||
| 148 | ;;; Compile State | 136 | ;;; Compile State |
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index d23597ec479..53518cd20dd 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -1063,6 +1063,19 @@ template where a ^ inserter occurs." | |||
| 1063 | ;; place. | 1063 | ;; place. |
| 1064 | (cl-call-next-method))) | 1064 | (cl-call-next-method))) |
| 1065 | 1065 | ||
| 1066 | (cl-defmethod srecode-inserter-prin-example ((ins (subclass srecode-template-inserter)) | ||
| 1067 | escape-start escape-end) | ||
| 1068 | "Insert an example using inserter INS. | ||
| 1069 | Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | ||
| 1070 | (princ " ") | ||
| 1071 | (princ escape-start) | ||
| 1072 | (when (and (slot-exists-p ins 'key) (oref ins key)) | ||
| 1073 | (princ (format "%c" (oref ins key)))) | ||
| 1074 | (princ "VARNAME") | ||
| 1075 | (princ escape-end) | ||
| 1076 | (terpri) | ||
| 1077 | ) | ||
| 1078 | |||
| 1066 | (provide 'srecode/insert) | 1079 | (provide 'srecode/insert) |
| 1067 | 1080 | ||
| 1068 | ;; Local variables: | 1081 | ;; Local variables: |