[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b1ca219 12/51: Remove submodules (snippet and yasmate)
From: |
Noam Postavsky |
Subject: |
[elpa] master b1ca219 12/51: Remove submodules (snippet and yasmate) |
Date: |
Sun, 13 May 2018 13:11:40 -0400 (EDT) |
branch: master
commit b1ca2197062340d4c9e78442ea38957a96f968d4
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Remove submodules (snippet and yasmate)
* snippets:
* yasmate: Remove.
* README.mdown: Suggest yasnippet-snippets and yasmate as possible
things to download rather than submodules.
* yasnippet.el (yas-installed-snippets-dirn): Mark obsolete.
(yas-snippet-dirs): Remove `yas-installed-snippets-dir' from
default value.
---
.gitmodules | 7 -------
README.mdown | 20 ++++++--------------
snippets | 1 -
yasmate | 1 -
yasnippet.el | 10 ++++------
5 files changed, 10 insertions(+), 29 deletions(-)
diff --git a/.gitmodules b/.gitmodules
index a8cc391..e69de29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,7 +0,0 @@
-[submodule "snippets"]
- path = snippets
- url = https://github.com/AndreaCrotti/yasnippet-snippets.git
- branch = master
-[submodule "yasmate"]
- path = yasmate
- url = https://github.com/capitaomorte/yasmate.git
diff --git a/README.mdown b/README.mdown
index e3d99f7..2b25bdb 100644
--- a/README.mdown
+++ b/README.mdown
@@ -58,22 +58,15 @@ where you want YASnippet enabled.
Yasnippet no longer bundles snippets directly, but it's very easy to
get some!
-If you git-cloned yasnippet with the `--recursive` option you'll also
-download "git submodules" and find two subdirs under the main tree.
-
-1. `snippets/`
-
- Points to [yasnippet-snippets] the snippet collection of
+1. [yasnippet-snippets] - a snippet collection package maintained by
[AndreaCrotti](https://github.com/AndreaCrotti).
- The default configuraiton already points to this dir, so to use
- them, just make sure the submodule really was downloaded
- (i.e. there are some files under `snippets/`)
-
-2. `yasmate/`
+ It can be installed with `M-x install-package RET
+ yasnippet-snippets` if you have added MELPA to your package
+ sources.
- Points to a github repo of the [yasmate] tool, which is dedicated
- to converting textmate bundles into yasnippet snippets.
+2. [yasmate] a tool which is dedicated to converting textmate bundles
+ into yasnippet snippets.
To use these snippets you have to run the tool first, so
[see its doc][yasmate]), and then point the `yas-snippet-dirs`
@@ -96,7 +89,6 @@ should be added like this to `yas-snippet-dirs`:
'("~/.emacs.d/snippets" ;; personal snippets
"/path/to/some/collection/" ;; foo-mode and bar-mode
snippet collection
"/path/to/yasnippet/yasmate/snippets" ;; the yasmate collection
- "/path/to/yasnippet/snippets" ;; the default collection
))
(yas-global-mode 1) ;; or M-x yas-reload-all if you've started YASnippet
already.
diff --git a/snippets b/snippets
deleted file mode 160000
index 3226ab8..0000000
--- a/snippets
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 3226ab8d879d2b892ec0a269d0cca4ae086aa7c3
diff --git a/yasmate b/yasmate
deleted file mode 160000
index 0543618..0000000
--- a/yasmate
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 0543618bd34a6715918992f01161c118f136bb37
diff --git a/yasnippet.el b/yasnippet.el
index 760b224..8b71083 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -157,16 +157,14 @@
(file-name-directory (or load-file-name buffer-file-name))
"Directory that yasnippet was loaded from.")
-(defvar yas-installed-snippets-dir nil)
-(setq yas-installed-snippets-dir
- (expand-file-name "snippets" yas--loaddir))
+(defconst yas-installed-snippets-dir (expand-file-name "snippets"
yas--loaddir))
+(make-obsolete-variable 'yas-installed-snippets-dir "\
+Yasnippet no longer comes with installed snippets" "0.13")
(defconst yas--default-user-snippets-dir
(expand-file-name "snippets" user-emacs-directory))
-(defcustom yas-snippet-dirs (remove nil
- (list yas--default-user-snippets-dir
- 'yas-installed-snippets-dir))
+(defcustom yas-snippet-dirs (list yas--default-user-snippets-dir)
"List of top-level snippet directories.
Each element, a string or a symbol whose value is a string,
- [elpa] master updated (04889dc -> e64297e), Noam Postavsky, 2018/05/13
- [elpa] master ba4e5c1 01/51: * yasnippet-debug.el (yas-debug-snippet): Handle non-numbered fields., Noam Postavsky, 2018/05/13
- [elpa] master 1fc3426 02/51: Add test relying on overlay hook inhibition in `yas-expand-snippet', Noam Postavsky, 2018/05/13
- [elpa] master ece7935 07/51: * yasnippet.el (yas--message): Fix invalid docstring reference., Noam Postavsky, 2018/05/13
- [elpa] master 4ab9cb5 04/51: Set test to fail with newer org version, Noam Postavsky, 2018/05/13
- [elpa] master 0b8d434 05/51: Unset autoload-compute-prefixes for utility files, Noam Postavsky, 2018/05/13
- [elpa] master acec3ba 06/51: * doc/faq.org: Fix typo., Noam Postavsky, 2018/05/13
- [elpa] master ee81da9 11/51: Allow "# --" end-of-header marker to have trailing space, Noam Postavsky, 2018/05/13
- [elpa] master b1ca219 12/51: Remove submodules (snippet and yasmate),
Noam Postavsky <=
- [elpa] master 35a4df7 03/51: Let whitespace-global-mode work in new snippet buffers, Noam Postavsky, 2018/05/13
- [elpa] master d806b04 15/51: * yasnippet.el (snippet-mode): Derive from prog-mode., Noam Postavsky, 2018/05/13
- [elpa] master 1292cd2 10/51: Refactor undo tests, Noam Postavsky, 2018/05/13
- [elpa] master 203059a 17/51: * yasnippet.el (yas-key-syntaxes): Prefer the longest key., Noam Postavsky, 2018/05/13
- [elpa] master 7ea1305 09/51: Fix undo when first line indentation moves snippet forward, Noam Postavsky, 2018/05/13
- [elpa] master 6ffd1c7 22/51: ; .travis.yml: Test with 25.3 and 26 prelease., Noam Postavsky, 2018/05/13
- [elpa] master 2e69471 24/51: ; yasnippet-debug.el: macroexp-progn is not avaiable in Emacs 23., Noam Postavsky, 2018/05/13
- [elpa] master 3d7cafc 34/51: Make yas-snippet-mode-buffer-p robust against symlinks, Noam Postavsky, 2018/05/13
- [elpa] master ba73f20 27/51: Bind field skip and clear command conditionally, Noam Postavsky, 2018/05/13
- [elpa] master ce11fd6 13/51: * yasnippet.el (yas-reload-all): Mention if no snippets were found., Noam Postavsky, 2018/05/13