[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 4bd3d98 16/60: Merge pull request #599 from zmwangx/snippe

From: João Távora
Subject: [elpa] master 4bd3d98 16/60: Merge pull request #599 from zmwangx/snippet-compilation-doc
Date: Thu, 21 Jan 2016 22:35:53 +0000

branch: master
commit 4bd3d98b68a96ccfc02317ac922b25dad7bcc7aa
Merge: c91a588 0ada0fc
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Merge pull request #599 from zmwangx/snippet-compilation-doc
    Add documentation for snippet compilation
 doc/snippet-organization.org |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/doc/snippet-organization.org b/doc/snippet-organization.org
index abe62ad..68ee059 100644
--- a/doc/snippet-organization.org
+++ b/doc/snippet-organization.org
@@ -112,9 +112,24 @@
 ** TODO
-* TODO The =.yas-compiled-snippet.el= file
-** TODO
+* The =.yas-compiled-snippet.el= file
+   You may compile a top-level snippet directory with the
+   =yas-compile-directory= function, which will create a
+   =.yas-compiled-snippets.el= file under each mode subdirectory,
+   which contains definitions for all snippets in the subdirectory.
+   Compilation helps improve loading time.
+   Alternatively, you may compile all directories in the list
+   =yas-snippet-dirs= with the =yas-recompile-all= function.
+   *Caveat.* At the moment, when you try to use the
+   =yas-visit-snippet-file= function to edit a compiled snippet loaded
+   from a =.yas-compiled-snippets.el= file, the content of the snippet
+   will be opened in a buffer, but it might not be a verbatim copy of
+   your original snippet, and =yas-load-snippet-buffer-and-close=
+   won't offer to save to the original snippet file. See
+   [[https://github.com/capitaomorte/yasnippet/issues/597][#597]].
 * TODO The =.yas-skip= file

reply via email to

[Prev in Thread] Current Thread [Next in Thread]