diff options
Diffstat (limited to 'lisp/cedet/srecode/insert.el')
| -rw-r--r-- | lisp/cedet/srecode/insert.el | 13 |
1 files changed, 13 insertions, 0 deletions
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: |