diff options
| author | Kenichi Handa | 2013-04-05 23:17:55 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2013-04-05 23:17:55 +0900 |
| commit | b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f (patch) | |
| tree | f32c8cce416e346d2953f063a0f22e95382cf57e /etc/srecode | |
| parent | 251e91474c91e16b101502c2ed7c05fc13e4ecea (diff) | |
| parent | 73931ad14ad7a51d91f10b19ae9ca8cadb256916 (diff) | |
| download | emacs-b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f.tar.gz emacs-b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f.zip | |
merge trunk
Diffstat (limited to 'etc/srecode')
| -rw-r--r-- | etc/srecode/c.srt | 6 | ||||
| -rw-r--r-- | etc/srecode/ede-autoconf.srt | 34 | ||||
| -rw-r--r-- | etc/srecode/ede-make.srt | 3 | ||||
| -rw-r--r-- | etc/srecode/java.srt | 21 |
4 files changed, 42 insertions, 22 deletions
diff --git a/etc/srecode/c.srt b/etc/srecode/c.srt index 6c7139f3184..479f5c9b33d 100644 --- a/etc/srecode/c.srt +++ b/etc/srecode/c.srt | |||
| @@ -46,12 +46,12 @@ template empty :time :user :file :c | |||
| 46 | 46 | ||
| 47 | template header_guard :file :blank | 47 | template header_guard :file :blank |
| 48 | ---- | 48 | ---- |
| 49 | #ifndef {{FILENAME_SYMBOL}} | 49 | #ifndef {{FILENAME_SYMBOL:upcase}} |
| 50 | #define {{FILENAME_SYMBOL}} 1 | 50 | #define {{FILENAME_SYMBOL:upcase}} 1 |
| 51 | 51 | ||
| 52 | {{^}} | 52 | {{^}} |
| 53 | 53 | ||
| 54 | #endif // {{FILENAME_SYMBOL}} | 54 | #endif // {{FILENAME_SYMBOL:upcase}} |
| 55 | ---- | 55 | ---- |
| 56 | 56 | ||
| 57 | context misc | 57 | context misc |
diff --git a/etc/srecode/ede-autoconf.srt b/etc/srecode/ede-autoconf.srt index d2ec61a0a93..5eb2d2d24e5 100644 --- a/etc/srecode/ede-autoconf.srt +++ b/etc/srecode/ede-autoconf.srt | |||
| @@ -1,21 +1,23 @@ | |||
| 1 | ;; ede/templates/autoconf.srt --- Templates for autoconf used by EDE. | 1 | ;;; ede/templates/autoconf.srt --- Templates for autoconf used by EDE |
| 2 | ;; | 2 | |
| 3 | ;; Copyright (C) 2010 Eric M. Ludlam | 3 | ;; Copyright (C) 2010, 2012-2013 Free Software Foundation, Inc. |
| 4 | ;; | 4 | |
| 5 | ;; Author: Eric M. Ludlam <eric@siege-engine.com> | 5 | ;; Author: Eric M. Ludlam <eric@siege-engine.com> |
| 6 | ;; | ||
| 7 | ;; This program is free software; you can redistribute it and/or | ||
| 8 | ;; modify it under the terms of the GNU General Public License as | ||
| 9 | ;; published by the Free Software Foundation; either version 2, or (at | ||
| 10 | ;; your option) any later version. | ||
| 11 | 6 | ||
| 12 | ;; This program is distributed in the hope that it will be useful, but | 7 | ;; This file is part of GNU Emacs. |
| 13 | ;; WITHOUT ANY WARRANTY; without even the implied warranty of | 8 | |
| 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 9 | ;; GNU Emacs is free software: you can redistribute it and/or modify |
| 15 | ;; General Public License for more details. | 10 | ;; it under the terms of the GNU General Public License as published by |
| 11 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 12 | ;; (at your option) any later version. | ||
| 13 | |||
| 14 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 15 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | ;; GNU General Public License for more details. | ||
| 16 | 18 | ||
| 17 | ;; You should have received a copy of the GNU General Public License | 19 | ;; You should have received a copy of the GNU General Public License |
| 18 | ;; along with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
| 19 | 21 | ||
| 20 | set mode "autoconf-mode" | 22 | set mode "autoconf-mode" |
| 21 | set escape_start "{{" | 23 | set escape_start "{{" |
| @@ -26,7 +28,7 @@ set application "ede" | |||
| 26 | 28 | ||
| 27 | context file | 29 | context file |
| 28 | 30 | ||
| 29 | template ede-empty | 31 | template ede-empty :project |
| 30 | "Start a new EDE generated configure.in/ac file." | 32 | "Start a new EDE generated configure.in/ac file." |
| 31 | ---- | 33 | ---- |
| 32 | {{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE. | 34 | {{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE. |
| @@ -40,7 +42,7 @@ template ede-empty | |||
| 40 | {{comment_prefix}} | 42 | {{comment_prefix}} |
| 41 | {{comment_prefix}} Process this file with autoconf to produce a configure script | 43 | {{comment_prefix}} Process this file with autoconf to produce a configure script |
| 42 | 44 | ||
| 43 | AC_INIT({{TEST_FILE}}) | 45 | AC_INIT({{PROJECT_NAME}}, {{PROJECT_VERSION}}) |
| 44 | AM_INIT_AUTOMAKE([{{PROGRAM}}], 0) | 46 | AM_INIT_AUTOMAKE([{{PROGRAM}}], 0) |
| 45 | AM_CONFIG_HEADER(config.h) | 47 | AM_CONFIG_HEADER(config.h) |
| 46 | 48 | ||
diff --git a/etc/srecode/ede-make.srt b/etc/srecode/ede-make.srt index f12744e89b7..36bae085cc9 100644 --- a/etc/srecode/ede-make.srt +++ b/etc/srecode/ede-make.srt | |||
| @@ -26,10 +26,11 @@ set application "ede" | |||
| 26 | 26 | ||
| 27 | context file | 27 | context file |
| 28 | 28 | ||
| 29 | template ede-empty :file | 29 | template ede-empty :file :project |
| 30 | ---- | 30 | ---- |
| 31 | # Automatically Generated {{FILE}} by EDE. | 31 | # Automatically Generated {{FILE}} by EDE. |
| 32 | # For use with: {{MAKETYPE}} | 32 | # For use with: {{MAKETYPE}} |
| 33 | # Relative File Name: {{PROJECT_FILENAME}} | ||
| 33 | # | 34 | # |
| 34 | # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST. | 35 | # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST. |
| 35 | # EDE is the Emacs Development Environment. | 36 | # EDE is the Emacs Development Environment. |
diff --git a/etc/srecode/java.srt b/etc/srecode/java.srt index a4a6fc2e863..e1fbb50eff6 100644 --- a/etc/srecode/java.srt +++ b/etc/srecode/java.srt | |||
| @@ -43,6 +43,23 @@ package {{FILENAME_AS_PACKAGE}}; | |||
| 43 | ---- | 43 | ---- |
| 44 | bind "e" | 44 | bind "e" |
| 45 | 45 | ||
| 46 | template empty-main :file :user :time :java :indent | ||
| 47 | "Fill out an empty file with a class having a static main method" | ||
| 48 | sectiondictionary "CLASSSECTION" | ||
| 49 | set NAME macro "FILENAME_AS_CLASS" | ||
| 50 | ---- | ||
| 51 | {{>:filecomment}} | ||
| 52 | |||
| 53 | package {{FILENAME_AS_PACKAGE}}; | ||
| 54 | |||
| 55 | {{<CLASSSECTION:declaration:class}} | ||
| 56 | public static void main(String args[]) { | ||
| 57 | {{^}} | ||
| 58 | } | ||
| 59 | {{/CLASSSECTION}} | ||
| 60 | ---- | ||
| 61 | bind "l" | ||
| 62 | |||
| 46 | context declaration | 63 | context declaration |
| 47 | 64 | ||
| 48 | template import :blank :indent | 65 | template import :blank :indent |
| @@ -74,8 +91,8 @@ Override this to affect applications, or the outer class structure for | |||
| 74 | the user-facing template." | 91 | the user-facing template." |
| 75 | ---- | 92 | ---- |
| 76 | {{>:declaration:javadoc-class}} | 93 | {{>:declaration:javadoc-class}} |
| 77 | public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} | 94 | public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} |
| 78 | { | 95 | { |
| 79 | {{^}} | 96 | {{^}} |
| 80 | }; | 97 | }; |
| 81 | ---- | 98 | ---- |