118 KB
/srv/reproducible-results/rbuild-debian/r-b-build.KrUcKgtC/b1/yasnippet_0.14.0+git20200603.5cbdbf0d-1_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.KrUcKgtC/b2/yasnippet_0.14.0+git20200603.5cbdbf0d-1_arm64.changes
348 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·d6b23f31c58eb28b75fc2b78f5bb3a6a·532912·lisp·optional·elpa-yasnippet_0.14.0+git20200603.5cbdbf0d-1_all.deb1 ·267aab2928791c0bfe02e54be71aa53f·532900·lisp·optional·elpa-yasnippet_0.14.0+git20200603.5cbdbf0d-1_all.deb
2 ·51e29e789207e11d55779829cd1b8af4·5032·lisp·optional·yasnippet_0.14.0+git20200603.5cbdbf0d-1_all.deb2 ·51e29e789207e11d55779829cd1b8af4·5032·lisp·optional·yasnippet_0.14.0+git20200603.5cbdbf0d-1_all.deb
117 KB
elpa-yasnippet_0.14.0+git20200603.5cbdbf0d-1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-11-05·15:31:38.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-11-05·15:31:38.000000·debian-binary
2 -rw-r--r--···0········0········0·····1952·2020-11-05·15:31:38.000000·control.tar.xz2 -rw-r--r--···0········0········0·····1952·2020-11-05·15:31:38.000000·control.tar.xz
3 -rw-r--r--···0········0········0···530768·2020-11-05·15:31:38.000000·data.tar.xz3 -rw-r--r--···0········0········0···530756·2020-11-05·15:31:38.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
116 KB
data.tar.xz
116 KB
data.tar
6.33 KB
./usr/share/doc/elpa-yasnippet/html/faq.html
    
Offset 260, 55 lines modifiedOffset 260, 55 lines modified
260 </div>260 </div>
261 <div·id="content">261 <div·id="content">
262 <h1·class="title">Frequently·Asked·Questions</h1>262 <h1·class="title">Frequently·Asked·Questions</h1>
263 <div·id="table-of-contents">263 <div·id="table-of-contents">
264 <h2>Table·of·Contents</h2>264 <h2>Table·of·Contents</h2>
265 <div·id="text-table-of-contents">265 <div·id="text-table-of-contents">
266 <ul>266 <ul>
267 <li><a·href="#org881421e">Why·are·my·snippet·abbrev·keys·triggering·when·I·don't·want·them·too?</a></li>267 <li><a·href="#org72a1c49">Why·are·my·snippet·abbrev·keys·triggering·when·I·don't·want·them·too?</a></li>
268 <li><a·href="#org98095ef">Why·aren't·my·snippet·abbrev·keys·triggering·when·I·want·them·too?</a></li>268 <li><a·href="#org636996c">Why·aren't·my·snippet·abbrev·keys·triggering·when·I·want·them·too?</a></li>
269 <li><a·href="#org0146920">Why·is·there·an·extra·newline?</a></li>269 <li><a·href="#org2c88b61">Why·is·there·an·extra·newline?</a></li>
270 <li><a·href="#orgbb06a90">Why·doesn't·TAB·navigation·work·with·flyspell</a></li>270 <li><a·href="#org200aa56">Why·doesn't·TAB·navigation·work·with·flyspell</a></li>
271 <li><a·href="#org804f663">How·do·I·use·alternative·keys,·i.e.·not·TAB?</a></li>271 <li><a·href="#orge9e3d64">How·do·I·use·alternative·keys,·i.e.·not·TAB?</a></li>
272 <li><a·href="#org111a437">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</a></li>272 <li><a·href="#org5731f09">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</a></li>
273 </ul>273 </ul>
274 </div>274 </div>
275 </div>275 </div>
276 <ul·class="org-ul">276 <ul·class="org-ul">
277 <li><b>Note</b>:·In·addition·to·the·questions·and·answers·presented·here,277 <li><b>Note</b>:·In·addition·to·the·questions·and·answers·presented·here,
278 you·might·also·with·to·visit·the·list·of·<a·href="https://github.com/joaotavora/yasnippet/issues?q=label%3Asupport">solved·support·issues</a>·in278 you·might·also·with·to·visit·the·list·of·<a·href="https://github.com/joaotavora/yasnippet/issues?q=label%3Asupport">solved·support·issues</a>·in
279 the·Github·issue·tracker.··It·might·be·more·up-to-date·than·this279 the·Github·issue·tracker.··It·might·be·more·up-to-date·than·this
280 list.</li>280 list.</li>
281 </ul>281 </ul>
  
282 <div·id="outline-container-org881421e"·class="outline-2">282 <div·id="outline-container-org72a1c49"·class="outline-2">
283 <h2·id="org881421e">Why·are·my·snippet·abbrev·keys·triggering·when·I·don't·want·them·too?</h2>283 <h2·id="org72a1c49">Why·are·my·snippet·abbrev·keys·triggering·when·I·don't·want·them·too?</h2>
284 <div·class="outline-text-2"·id="text-org881421e">284 <div·class="outline-text-2"·id="text-org72a1c49">
285 <p>285 <p>
286 Expansion·of·abbrev·keys·is·controlled·by·<a·href="snippet-reference.html#yas-key-syntaxes"><code>yas-key-syntaxes</code></a>.··Try286 Expansion·of·abbrev·keys·is·controlled·by·<a·href="snippet-reference.html#yas-key-syntaxes"><code>yas-key-syntaxes</code></a>.··Try
287 removing·entries·which·correspond·to·the·abbrev·key·character·syntax.287 removing·entries·which·correspond·to·the·abbrev·key·character·syntax.
288 For·example,·if·you·have·a·snippet·with·abbrev·key·"bar",·that·you288 For·example,·if·you·have·a·snippet·with·abbrev·key·"bar",·that·you
289 don't·want·to·trigger·when·point·follows·the·text·<code>foo_bar</code>,·remove289 don't·want·to·trigger·when·point·follows·the·text·<code>foo_bar</code>,·remove
290 the·<code>"w"</code>·entry·(since·"bar"·has·only·word·syntax·characters).290 the·<code>"w"</code>·entry·(since·"bar"·has·only·word·syntax·characters).
291 </p>291 </p>
292 </div>292 </div>
293 </div>293 </div>
  
294 <div·id="outline-container-org98095ef"·class="outline-2">294 <div·id="outline-container-org636996c"·class="outline-2">
295 <h2·id="org98095ef">Why·aren't·my·snippet·abbrev·keys·triggering·when·I·want·them·too?</h2>295 <h2·id="org636996c">Why·aren't·my·snippet·abbrev·keys·triggering·when·I·want·them·too?</h2>
296 <div·class="outline-text-2"·id="text-org98095ef">296 <div·class="outline-text-2"·id="text-org636996c">
297 <p>297 <p>
298 See·previous·question,·but·in·reverse.298 See·previous·question,·but·in·reverse.
299 </p>299 </p>
300 </div>300 </div>
301 </div>301 </div>
  
302 <div·id="outline-container-org0146920"·class="outline-2">302 <div·id="outline-container-org2c88b61"·class="outline-2">
303 <h2·id="org0146920">Why·is·there·an·extra·newline?</h2>303 <h2·id="org2c88b61">Why·is·there·an·extra·newline?</h2>
304 <div·class="outline-text-2"·id="text-org0146920">304 <div·class="outline-text-2"·id="text-org2c88b61">
305 <p>305 <p>
306 If·there·is·a·newline·at·the·end·of·a·snippet·definition·file,306 If·there·is·a·newline·at·the·end·of·a·snippet·definition·file,
307 YASnippet·will·add·a·newline·when·expanding·that·snippet.·When·editing307 YASnippet·will·add·a·newline·when·expanding·that·snippet.·When·editing
308 or·saving·a·snippet·file,·please·be·careful·not·to·accidentally·add·a308 or·saving·a·snippet·file,·please·be·careful·not·to·accidentally·add·a
309 terminal·newline.309 terminal·newline.
310 </p>310 </p>
  
Offset 316, 17 lines modifiedOffset 316, 17 lines modified
316 Note·that·some·editors·will·automatically·add·a·newline·for·you.·In316 Note·that·some·editors·will·automatically·add·a·newline·for·you.·In
317 Emacs,·if·you·set·<code>require-final-newline</code>·to·<code>t</code>,·it·will·add·the317 Emacs,·if·you·set·<code>require-final-newline</code>·to·<code>t</code>,·it·will·add·the
318 final·newline·automatically.318 final·newline·automatically.
319 </p>319 </p>
320 </div>320 </div>
321 </div>321 </div>
  
322 <div·id="outline-container-orgbb06a90"·class="outline-2">322 <div·id="outline-container-org200aa56"·class="outline-2">
323 <h2·id="orgbb06a90">Why·doesn't·TAB·navigation·work·with·flyspell</h2>323 <h2·id="org200aa56">Why·doesn't·TAB·navigation·work·with·flyspell</h2>
324 <div·class="outline-text-2"·id="text-orgbb06a90">324 <div·class="outline-text-2"·id="text-org200aa56">
325 <p>325 <p>
326 This·is·<a·href="https://debbugs.gnu.org/26672">Emacs·Bug#26672</a>,·so·you·should·upgrade·to·version·25.3·or326 This·is·<a·href="https://debbugs.gnu.org/26672">Emacs·Bug#26672</a>,·so·you·should·upgrade·to·version·25.3·or
327 better.··Otherwise,·a·workaround·is·to·inhibit·flyspell·overlays·while327 better.··Otherwise,·a·workaround·is·to·inhibit·flyspell·overlays·while
328 the·snippet·is·active:328 the·snippet·is·active:
329 </p>329 </p>
  
330 <div·class="org-src-container">330 <div·class="org-src-container">
Offset 335, 17 lines modifiedOffset 335, 17 lines modified
335 ··············(<span·class="org-keyword">and</span>·yas-active-field-overlay335 ··············(<span·class="org-keyword">and</span>·yas-active-field-overlay
336 ···················(overlay-buffer·yas-active-field-overlay))))336 ···················(overlay-buffer·yas-active-field-overlay))))
337 </pre>337 </pre>
338 </div>338 </div>
339 </div>339 </div>
340 </div>340 </div>
  
341 <div·id="outline-container-org804f663"·class="outline-2">341 <div·id="outline-container-orge9e3d64"·class="outline-2">
342 <h2·id="org804f663">How·do·I·use·alternative·keys,·i.e.·not·TAB?</h2>342 <h2·id="orge9e3d64">How·do·I·use·alternative·keys,·i.e.·not·TAB?</h2>
343 <div·class="outline-text-2"·id="text-org804f663">343 <div·class="outline-text-2"·id="text-orge9e3d64">
344 <p>344 <p>
345 Edit·the·keymaps·<a·href="snippet-reference.html#yas-minor-mode-map"><code>yas-minor-mode-map</code></a>·and·<a·href="snippet-reference.html#yas-keymap"><code>yas-keymap</code></a>·as·you·would345 Edit·the·keymaps·<a·href="snippet-reference.html#yas-minor-mode-map"><code>yas-minor-mode-map</code></a>·and·<a·href="snippet-reference.html#yas-keymap"><code>yas-keymap</code></a>·as·you·would
346 any·other·keymap,·but·use·<a·href="snippet-reference.html#yas-filtered-definition"><code>yas-filtered-definition</code></a>·on·the·definition346 any·other·keymap,·but·use·<a·href="snippet-reference.html#yas-filtered-definition"><code>yas-filtered-definition</code></a>·on·the·definition
347 if·you·want·to·respect·<a·href="snippet-reference.html#yas-keymap-disable-hook"><code>yas-keymap-disable-hook</code></a>:347 if·you·want·to·respect·<a·href="snippet-reference.html#yas-keymap-disable-hook"><code>yas-keymap-disable-hook</code></a>:
348 </p>348 </p>
  
349 <div·class="org-src-container">349 <div·class="org-src-container">
Offset 363, 17 lines modifiedOffset 363, 17 lines modified
363 (define-key·yas-keymap·(kbd·<span·class="org-string">"&lt;new-prev-field-key&gt;"</span>)363 (define-key·yas-keymap·(kbd·<span·class="org-string">"&lt;new-prev-field-key&gt;"</span>)
364 ··(yas-filtered-definition·'yas-prev-field))364 ··(yas-filtered-definition·'yas-prev-field))
365 </pre>365 </pre>
366 </div>366 </div>
367 </div>367 </div>
368 </div>368 </div>
  
369 <div·id="outline-container-org111a437"·class="outline-2">369 <div·id="outline-container-org5731f09"·class="outline-2">
370 <h2·id="org111a437">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</h2>370 <h2·id="org5731f09">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</h2>
371 <div·class="outline-text-2"·id="text-org111a437">371 <div·class="outline-text-2"·id="text-org5731f09">
372 <ul·class="org-ul">372 <ul·class="org-ul">
373 <li><b>Note</b>:·This·question·applies·if·you're·still·defining·snippets373 <li><b>Note</b>:·This·question·applies·if·you're·still·defining·snippets
374 whose·key·<i>is</i>·the·filename.·This·is·behavior·still·provided·by374 whose·key·<i>is</i>·the·filename.·This·is·behavior·still·provided·by
375 version·0.6·for·backward·compatibilty,·but·is·somewhat375 version·0.6·for·backward·compatibilty,·but·is·somewhat
376 deprecated&#x2026;</li>376 deprecated&#x2026;</li>
377 </ul>377 </ul>
  
23.7 KB
./usr/share/doc/elpa-yasnippet/html/snippet-development.html
    
Offset 260, 98 lines modifiedOffset 260, 98 lines modified
260 </div>260 </div>
261 <div·id="content">261 <div·id="content">
262 <h1·class="title">Writing·snippets</h1>262 <h1·class="title">Writing·snippets</h1>
263 <div·id="table-of-contents">263 <div·id="table-of-contents">
264 <h2>Table·of·Contents</h2>264 <h2>Table·of·Contents</h2>
265 <div·id="text-table-of-contents">265 <div·id="text-table-of-contents">
266 <ul>266 <ul>
267 <li><a·href="#org03ec056">Snippet·development</a>267 <li><a·href="#orge23556f">Snippet·development</a>
268 <ul>268 <ul>
269 <li><a·href="#org640192e">Quickly·finding·snippets</a></li>269 <li><a·href="#org6459b71">Quickly·finding·snippets</a></li>
270 <li><a·href="#org8a59945">Using·the·<code>snippet-mode</code>·major·mode·</a></li>270 <li><a·href="#orgc30a6a6">Using·the·<code>snippet-mode</code>·major·mode·</a></li>
271 </ul>271 </ul>
272 </li>272 </li>
273 <li><a·href="#org62885e9">File·content</a>273 <li><a·href="#org24d941d">File·content</a>
274 <ul>274 <ul>
275 <li><a·href="#orgdcbaa28"><code>#·key:</code>·snippet·abbrev</a></li>275 <li><a·href="#org43a2e91"><code>#·key:</code>·snippet·abbrev</a></li>
276 <li><a·href="#org587f3a3"><code>#·name:</code>·snippet·name</a></li>276 <li><a·href="#orgc88bbc9"><code>#·name:</code>·snippet·name</a></li>
277 <li><a·href="#orgc18f8e1"><code>#·condition:</code>·snippet·condition</a></li>277 <li><a·href="#org4398843"><code>#·condition:</code>·snippet·condition</a></li>
278 <li><a·href="#org6d0c5cd"><code>#·group:</code>·snippet·menu·grouping</a></li>278 <li><a·href="#org515c0fe"><code>#·group:</code>·snippet·menu·grouping</a></li>
279 <li><a·href="#orgd3e88d5"><code>#·expand-env:</code>·expand·environment</a></li>279 <li><a·href="#org0c2b4fa"><code>#·expand-env:</code>·expand·environment</a></li>
280 <li><a·href="#org20bf686"><code>#·binding:</code>·direct·keybinding</a></li>280 <li><a·href="#org27a3ca6"><code>#·binding:</code>·direct·keybinding</a></li>
281 <li><a·href="#org54e22dd"><code>#·type:</code>·<code>snippet</code>·or·<code>command</code></a></li>281 <li><a·href="#orgb5e5df6"><code>#·type:</code>·<code>snippet</code>·or·<code>command</code></a></li>
282 <li><a·href="#org3586e08"><code>#·uuid:</code>·unique·identifier</a></li>282 <li><a·href="#org61ef45c"><code>#·uuid:</code>·unique·identifier</a></li>
283 <li><a·href="#org7877390"><code>#·contributor:</code>·snippet·author</a></li>283 <li><a·href="#orgb844fe9"><code>#·contributor:</code>·snippet·author</a></li>
284 </ul>284 </ul>
285 </li>285 </li>
286 <li><a·href="#org9932bed">Template·Syntax</a>286 <li><a·href="#org3861ee2">Template·Syntax</a>
287 <ul>287 <ul>
288 <li><a·href="#org658c7e3">Plain·Text</a></li>288 <li><a·href="#org11ce305">Plain·Text</a></li>
289 <li><a·href="#org13b259f">Embedded·Emacs·Lisp·code</a>289 <li><a·href="#org38a0e29">Embedded·Emacs·Lisp·code</a>
290 <ul>290 <ul>
291 <li><a·href="#orgd2526fa">Note:·backquote·expressions·should·not·modify·the·buffer</a></li>291 <li><a·href="#orgeefa3fa">Note:·backquote·expressions·should·not·modify·the·buffer</a></li>
292 </ul>292 </ul>
293 </li>293 </li>
294 <li><a·href="#orgbe89089">Tab·stop·fields</a></li>294 <li><a·href="#org1a7b73e">Tab·stop·fields</a></li>
295 <li><a·href="#org145d687">Placeholder·fields</a></li>295 <li><a·href="#org93b0c58">Placeholder·fields</a></li>
296 <li><a·href="#orge8954a8">Mirrors·</a></li>296 <li><a·href="#org5ce1f56">Mirrors·</a></li>
297 <li><a·href="#orgf4b85a2">Mirrors·with·transformations·</a></li>297 <li><a·href="#org125c246">Mirrors·with·transformations·</a></li>
298 <li><a·href="#orga96e8b5">Fields·with·transformations</a></li>298 <li><a·href="#org6dcfee7">Fields·with·transformations</a></li>
299 <li><a·href="#org1955dfd">Choosing·fields·value·from·a·list·and·other·tricks</a></li>299 <li><a·href="#orgb27ba86">Choosing·fields·value·from·a·list·and·other·tricks</a></li>
300 <li><a·href="#org40fe562">Nested·placeholder·fields</a></li>300 <li><a·href="#org955a1a2">Nested·placeholder·fields</a></li>
301 <li><a·href="#org5442383">Indentation·markers</a></li>301 <li><a·href="#org38abfea">Indentation·markers</a></li>
302 </ul>302 </ul>
303 </li>303 </li>
304 </ul>304 </ul>
305 </div>305 </div>
306 </div>306 </div>
  
307 <div·id="outline-container-org03ec056"·class="outline-2">307 <div·id="outline-container-orge23556f"·class="outline-2">
308 <h2·id="org03ec056">Snippet·development</h2>308 <h2·id="orge23556f">Snippet·development</h2>
309 <div·class="outline-text-2"·id="text-org03ec056">309 <div·class="outline-text-2"·id="text-orge23556f">
310 </div>310 </div>
311 <div·id="outline-container-org640192e"·class="outline-3">311 <div·id="outline-container-org6459b71"·class="outline-3">
312 <h3·id="org640192e">Quickly·finding·snippets</h3>312 <h3·id="org6459b71">Quickly·finding·snippets</h3>
313 <div·class="outline-text-3"·id="text-org640192e">313 <div·class="outline-text-3"·id="text-org6459b71">
314 <p>314 <p>
315 There·are·some·ways·you·can·quickly·find·a·snippet·file·or·create·a·new·one:315 There·are·some·ways·you·can·quickly·find·a·snippet·file·or·create·a·new·one:
316 </p>316 </p>
  
317 <ul·class="org-ul">317 <ul·class="org-ul">
318 <li><p>318 <li><p>
319 <code>M-x·yas-new-snippet</code>,·key·binding:·<code>C-c·&amp;·C-n</code>319 <code>M-x·yas-new-snippet</code>,·key·binding:·<code>C-c·&amp;·C-n</code>
320 </p>320 </p>
  
321 <p>321 <p>
322 Creates·a·new·buffer·with·a·template·for·making·a·new·snippet.··The322 Creates·a·new·buffer·with·a·template·for·making·a·new·snippet.··The
323 buffer·is·in·<code>snippet-mode</code>·(see·<a·href="#org5be5f23">below</a>).··When·you·are·done·editing323 buffer·is·in·<code>snippet-mode</code>·(see·<a·href="#org16d80fc">below</a>).··When·you·are·done·editing
324 the·new·snippet,·use·<a·href="#org53be5df"><code>C-c·C-c</code></a>·to·save·it.324 the·new·snippet,·use·<a·href="#org7f99b88"><code>C-c·C-c</code></a>·to·save·it.
325 </p></li>325 </p></li>
  
326 <li><p>326 <li><p>
327 <code>M-x·yas-visit-snippet-file</code>,·key·binding:·<code>C-c·&amp;·C-v</code>327 <code>M-x·yas-visit-snippet-file</code>,·key·binding:·<code>C-c·&amp;·C-v</code>
328 </p>328 </p>
  
329 <p>329 <p>
330 Prompts·you·for·possible·snippet·expansions·like330 Prompts·you·for·possible·snippet·expansions·like
331 <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>,·but·instead·of·expanding·it,·takes·you·directly331 <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>,·but·instead·of·expanding·it,·takes·you·directly
332 to·the·snippet·definition's·file,·if·it·exists.332 to·the·snippet·definition's·file,·if·it·exists.
333 </p></li>333 </p></li>
334 </ul>334 </ul>
  
335 <p>335 <p>
336 Once·you·find·this·file·it·will·be·set·to·<code>snippet-mode</code>·(see·<a·href="#org5be5f23">ahead</a>)336 Once·you·find·this·file·it·will·be·set·to·<code>snippet-mode</code>·(see·<a·href="#org16d80fc">ahead</a>)
337 and·you·can·start·editing·your·snippet.337 and·you·can·start·editing·your·snippet.
338 </p>338 </p>
339 </div>339 </div>
340 </div>340 </div>
  
341 <div·id="outline-container-org8a59945"·class="outline-3">341 <div·id="outline-container-orgc30a6a6"·class="outline-3">
342 <h3·id="org8a59945">Using·the·<code>snippet-mode</code>·major·mode·<a·id="org5be5f23"></a></h3>342 <h3·id="orgc30a6a6">Using·the·<code>snippet-mode</code>·major·mode·<a·id="org16d80fc"></a></h3>
343 <div·class="outline-text-3"·id="text-org8a59945">343 <div·class="outline-text-3"·id="text-orgc30a6a6">
344 <p>344 <p>
345 There·is·a·major·mode·<code>snippet-mode</code>·to·edit·snippets.·You·can·set·the345 There·is·a·major·mode·<code>snippet-mode</code>·to·edit·snippets.·You·can·set·the
346 buffer·to·this·mode·with·<code>M-x·snippet-mode</code>.·It·provides·reasonably346 buffer·to·this·mode·with·<code>M-x·snippet-mode</code>.·It·provides·reasonably
347 useful·syntax·highlighting.347 useful·syntax·highlighting.
348 </p>348 </p>
  
349 <p>349 <p>
Offset 366, 15 lines modifiedOffset 366, 15 lines modified
366 <p>366 <p>
367 Prompts·for·a·snippet·table·(with·a·default·based·on·snippet's367 Prompts·for·a·snippet·table·(with·a·default·based·on·snippet's
368 major·mode)·and·loads·the·snippet·currently·being·edited.368 major·mode)·and·loads·the·snippet·currently·being·edited.
369 </p></li>369 </p></li>
  
370 <li><p>370 <li><p>
371 <code>M-x·yas-load-snippet-buffer-and-close</code>,·key·binding:·<code>C-c·C-c</code>371 <code>M-x·yas-load-snippet-buffer-and-close</code>,·key·binding:·<code>C-c·C-c</code>
372 <a·id="org53be5df"></a>372 <a·id="org7f99b88"></a>
373 </p>373 </p>
  
374 <p>374 <p>
375 Like·<code>yas-load-snippet-buffer</code>,·but·also·saves·the·snippet·and375 Like·<code>yas-load-snippet-buffer</code>,·but·also·saves·the·snippet·and
376 calls·<code>quit-window</code>.··The·destination·is·decided·based·on·the376 calls·<code>quit-window</code>.··The·destination·is·decided·based·on·the
377 chosen·snippet·table·and·snippet·collection·directly·(defaulting·to377 chosen·snippet·table·and·snippet·collection·directly·(defaulting·to
378 the·first·directory·in·<code>yas-snippet-dirs</code>·(see·<a·href="snippet-organization.html">Organizing·Snippets</a>378 the·first·directory·in·<code>yas-snippet-dirs</code>·(see·<a·href="snippet-organization.html">Organizing·Snippets</a>
Offset 396, 17 lines modifiedOffset 396, 17 lines modified
396 There·are·also·<i>snippets·for·writing·snippets</i>:·<code>vars</code>,·<code>$f</code>·and·<code>$m</code>396 There·are·also·<i>snippets·for·writing·snippets</i>:·<code>vars</code>,·<code>$f</code>·and·<code>$m</code>
397 :-).397 :-).
398 </p>398 </p>
399 </div>399 </div>
400 </div>400 </div>
401 </div>401 </div>
  
402 <div·id="outline-container-org62885e9"·class="outline-2">402 <div·id="outline-container-org24d941d"·class="outline-2">
403 <h2·id="org62885e9">File·content</h2>403 <h2·id="org24d941d">File·content</h2>
404 <div·class="outline-text-2"·id="text-org62885e9">404 <div·class="outline-text-2"·id="text-org24d941d">
405 <p>405 <p>
406 A·file·defining·a·snippet·generally·contains·the·template·to·be406 A·file·defining·a·snippet·generally·contains·the·template·to·be
Max diff block lines reached; 16739/24199 bytes (69.17%) of diff not shown.
15.4 KB
./usr/share/doc/elpa-yasnippet/html/snippet-expansion.html
    
Offset 260, 42 lines modifiedOffset 260, 42 lines modified
260 </div>260 </div>
261 <div·id="content">261 <div·id="content">
262 <h1·class="title">Expanding·snippets</h1>262 <h1·class="title">Expanding·snippets</h1>
263 <div·id="table-of-contents">263 <div·id="table-of-contents">
264 <h2>Table·of·Contents</h2>264 <h2>Table·of·Contents</h2>
265 <div·id="text-table-of-contents">265 <div·id="text-table-of-contents">
266 <ul>266 <ul>
267 <li><a·href="#orgf923425">Triggering·expansion</a>267 <li><a·href="#org2d12241">Triggering·expansion</a>
268 <ul>268 <ul>
269 <li><a·href="#orgf45c4c7">Trigger·key</a>269 <li><a·href="#org3ba21e0">Trigger·key</a>
270 <ul>270 <ul>
271 <li><a·href="#orgdc7c4bf">Fallback·behaviour</a></li>271 <li><a·href="#org2b675fe">Fallback·behaviour</a></li>
272 </ul>272 </ul>
273 </li>273 </li>
274 <li><a·href="#org5895b67">Insert·at·point</a>274 <li><a·href="#org4195f21">Insert·at·point</a>
275 <ul>275 <ul>
276 <li><a·href="#orgc865039">Inserting·region·or·register·contents·into·snippet</a></li>276 <li><a·href="#org98cc14c">Inserting·region·or·register·contents·into·snippet</a></li>
277 </ul>277 </ul>
278 </li>278 </li>
279 <li><a·href="#org7fde638">Snippet·keybinding</a></li>279 <li><a·href="#orgdb64cd7">Snippet·keybinding</a></li>
280 <li><a·href="#org010e7d7">Expanding·from·the·menu</a></li>280 <li><a·href="#org0286b92">Expanding·from·the·menu</a></li>
281 <li><a·href="#orgcf4cc35">Expanding·with·<code>hippie-expand</code></a></li>281 <li><a·href="#orgeca3b60">Expanding·with·<code>hippie-expand</code></a></li>
282 <li><a·href="#orgff8f494">Expanding·from·emacs-lisp·code</a></li>282 <li><a·href="#org1a68d0d">Expanding·from·emacs-lisp·code</a></li>
283 </ul>283 </ul>
284 </li>284 </li>
285 <li><a·href="#orga7532a7">Controlling·expansion</a>285 <li><a·href="#orgfa00bad">Controlling·expansion</a>
286 <ul>286 <ul>
287 <li><a·href="#org9b4ffe5">Eligible·snippets</a></li>287 <li><a·href="#orgeae9bf0">Eligible·snippets</a></li>
288 <li><a·href="#org485169f">The·condition·system·</a></li>288 <li><a·href="#orgf1c628b">The·condition·system·</a></li>
289 <li><a·href="#org5684f73">Multiples·snippet·with·the·same·key</a>289 <li><a·href="#org27cc473">Multiples·snippet·with·the·same·key</a>
290 <ul>290 <ul>
291 <li><a·href="#org5a34b0e">Use·the·X·window·system</a></li>291 <li><a·href="#orgd17ea36">Use·the·X·window·system</a></li>
292 <li><a·href="#orgfee9403">Minibuffer·prompting</a></li>292 <li><a·href="#org7687f7d">Minibuffer·prompting</a></li>
293 <li><a·href="#orgde8f05f">Use·<code>dropdown-menu.el</code></a></li>293 <li><a·href="#orgb1a3fe4">Use·<code>dropdown-menu.el</code></a></li>
294 <li><a·href="#org814b247">Roll·your·own</a></li>294 <li><a·href="#orge4468e2">Roll·your·own</a></li>
295 </ul>295 </ul>
296 </li>296 </li>
297 </ul>297 </ul>
298 </li>298 </li>
299 </ul>299 </ul>
300 </div>300 </div>
301 </div>301 </div>
Offset 304, 17 lines modifiedOffset 304, 17 lines modified
304 </p>304 </p>
  
305 <p>305 <p>
306 Maybe,·you'll·want·some·snippets·to·be·expanded·in·a·particular306 Maybe,·you'll·want·some·snippets·to·be·expanded·in·a·particular
307 mode,·or·only·under·certain·conditions,·or·be·prompted·using307 mode,·or·only·under·certain·conditions,·or·be·prompted·using
308 </p>308 </p>
  
309 <div·id="outline-container-orgf923425"·class="outline-2">309 <div·id="outline-container-org2d12241"·class="outline-2">
310 <h2·id="orgf923425">Triggering·expansion</h2>310 <h2·id="org2d12241">Triggering·expansion</h2>
311 <div·class="outline-text-2"·id="text-orgf923425">311 <div·class="outline-text-2"·id="text-org2d12241">
312 <p>312 <p>
313 You·can·use·YASnippet·to·expand·snippets·in·different·ways:313 You·can·use·YASnippet·to·expand·snippets·in·different·ways:
314 </p>314 </p>
  
315 <ul·class="org-ul">315 <ul·class="org-ul">
316 <li>When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active:316 <li>When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active:
317 <ul·class="org-ul">317 <ul·class="org-ul">
Offset 334, 17 lines modifiedOffset 334, 17 lines modified
334 <li>Use·m2m's·excellent·auto-complete334 <li>Use·m2m's·excellent·auto-complete
335 TODO:·example·for·this</li>335 TODO:·example·for·this</li>
  
336 <li>Expanding·from·emacs-lisp·code</li>336 <li>Expanding·from·emacs-lisp·code</li>
337 </ul>337 </ul>
338 </div>338 </div>
  
339 <div·id="outline-container-orgf45c4c7"·class="outline-3">339 <div·id="outline-container-org3ba21e0"·class="outline-3">
340 <h3·id="orgf45c4c7">Trigger·key</h3>340 <h3·id="org3ba21e0">Trigger·key</h3>
341 <div·class="outline-text-3"·id="text-orgf45c4c7">341 <div·class="outline-text-3"·id="text-org3ba21e0">
342 <p>342 <p>
343 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·tries·to·expand·a·<i>snippet·abbrev</i>·(also·known·as343 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·tries·to·expand·a·<i>snippet·abbrev</i>·(also·known·as
344 <i>snippet·key</i>)·before·point.··YASnippet·also·provides·a·<i>conditional344 <i>snippet·key</i>)·before·point.··YASnippet·also·provides·a·<i>conditional
345 binding</i>·for·this·command:·the·variable·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·contains·a345 binding</i>·for·this·command:·the·variable·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·contains·a
346 special·value·which,·when·bound·in·a·keymap,·tells·Emacs·to·call346 special·value·which,·when·bound·in·a·keymap,·tells·Emacs·to·call
347 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·if·and·only·if·there·is·a·snippet·abbrev·before·point.347 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·if·and·only·if·there·is·a·snippet·abbrev·before·point.
348 If·there·is·no·snippet·to·expand,·Emacs·will·behave·as·if·<a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>348 If·there·is·no·snippet·to·expand,·Emacs·will·behave·as·if·<a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>
Offset 392, 29 lines modifiedOffset 392, 29 lines modified
392 <p>392 <p>
393 When·you·use·<a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·you·can·also·selectively·disable393 When·you·use·<a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·you·can·also·selectively·disable
394 YASnippet·in·some·buffers·by·calling·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·with·a·negative394 YASnippet·in·some·buffers·by·calling·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·with·a·negative
395 argument·in·the·buffer's·mode·hook.395 argument·in·the·buffer's·mode·hook.
396 </p>396 </p>
397 </div>397 </div>
  
398 <div·id="outline-container-orgdc7c4bf"·class="outline-4">398 <div·id="outline-container-org2b675fe"·class="outline-4">
399 <h4·id="orgdc7c4bf">Fallback·behaviour</h4>399 <h4·id="org2b675fe">Fallback·behaviour</h4>
400 <div·class="outline-text-4"·id="text-orgdc7c4bf">400 <div·class="outline-text-4"·id="text-org2b675fe">
401 <p>401 <p>
402 YASnippet·used·to·support·a·more·complicated·way·of·sharing402 YASnippet·used·to·support·a·more·complicated·way·of·sharing
403 keybindings·before·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·was·added.··This·is·now403 keybindings·before·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·was·added.··This·is·now
404 obsolete.404 obsolete.
405 </p>405 </p>
406 </div>406 </div>
407 </div>407 </div>
408 </div>408 </div>
  
409 <div·id="outline-container-org5895b67"·class="outline-3">409 <div·id="outline-container-org4195f21"·class="outline-3">
410 <h3·id="org5895b67">Insert·at·point</h3>410 <h3·id="org4195f21">Insert·at·point</h3>
411 <div·class="outline-text-3"·id="text-org5895b67">411 <div·class="outline-text-3"·id="text-org4195f21">
412 <p>412 <p>
413 The·command·<a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>·lets·you·insert·snippets·at·point413 The·command·<a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>·lets·you·insert·snippets·at·point
414 <i>for·your·current·major·mode</i>.·It·prompts·you·for·the·snippet·key414 <i>for·your·current·major·mode</i>.·It·prompts·you·for·the·snippet·key
415 first,·and·then·for·a·snippet·template·if·more·than·one·template415 first,·and·then·for·a·snippet·template·if·more·than·one·template
416 exists·for·the·same·key.416 exists·for·the·same·key.
417 </p>417 </p>
  
Offset 426, 17 lines modifiedOffset 426, 17 lines modified
  
426 <p>426 <p>
427 The·prompting·methods·used·are·again·controlled·by427 The·prompting·methods·used·are·again·controlled·by
428 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.428 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.
429 </p>429 </p>
430 </div>430 </div>
  
431 <div·id="outline-container-orgc865039"·class="outline-4">431 <div·id="outline-container-org98cc14c"·class="outline-4">
432 <h4·id="orgc865039">Inserting·region·or·register·contents·into·snippet</h4>432 <h4·id="org98cc14c">Inserting·region·or·register·contents·into·snippet</h4>
433 <div·class="outline-text-4"·id="text-orgc865039">433 <div·class="outline-text-4"·id="text-org98cc14c">
434 <p>434 <p>
435 It's·often·useful·to·inject·already·written·text·in·the·middle·of·a435 It's·often·useful·to·inject·already·written·text·in·the·middle·of·a
436 snippet.··The·variable·<a·href="snippet-reference.html#yas-wrap-around-region"><code>yas-wrap-around-region</code></a>·when·to·t·substitute436 snippet.··The·variable·<a·href="snippet-reference.html#yas-wrap-around-region"><code>yas-wrap-around-region</code></a>·when·to·t·substitute
437 the·region·contents·into·the·<code>$0</code>·placeholder·of·a·snippet·expanded·by437 the·region·contents·into·the·<code>$0</code>·placeholder·of·a·snippet·expanded·by
438 <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>.··Setting·it·to·a·character·value·(e.g.·<code>?0</code>)438 <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>.··Setting·it·to·a·character·value·(e.g.·<code>?0</code>)
439 will·insert·the·contents·of·corresponding·register.439 will·insert·the·contents·of·corresponding·register.
440 </p>440 </p>
Offset 447, 49 lines modifiedOffset 447, 49 lines modified
Max diff block lines reached; 8958/15704 bytes (57.04%) of diff not shown.
4.25 KB
./usr/share/doc/elpa-yasnippet/html/snippet-menu.html
    
Offset 260, 19 lines modifiedOffset 260, 19 lines modified
260 </div>260 </div>
261 <div·id="content">261 <div·id="content">
262 <h1·class="title">YASnippet·menu</h1>262 <h1·class="title">YASnippet·menu</h1>
263 <div·id="table-of-contents">263 <div·id="table-of-contents">
264 <h2>Table·of·Contents</h2>264 <h2>Table·of·Contents</h2>
265 <div·id="text-table-of-contents">265 <div·id="text-table-of-contents">
266 <ul>266 <ul>
267 <li><a·href="#org8eabb4a">Loading·snippets·from·menu</a></li>267 <li><a·href="#org12678e9">Loading·snippets·from·menu</a></li>
268 <li><a·href="#org0154b62">Snippet·menu·behavior</a></li>268 <li><a·href="#org694a911">Snippet·menu·behavior</a></li>
269 <li><a·href="#org948337d">Controlling·indenting</a></li>269 <li><a·href="#org22be4d1">Controlling·indenting</a></li>
270 <li><a·href="#org79e6da9">Prompting·method</a></li>270 <li><a·href="#orgf2d795d">Prompting·method</a></li>
271 <li><a·href="#org35aa498">Misc</a></li>271 <li><a·href="#orgf95512f">Misc</a></li>
272 </ul>272 </ul>
273 </div>273 </div>
274 </div>274 </div>
275 <p>275 <p>
276 When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active,·YASnippet·will·setup·a·menu·just·after276 When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active,·YASnippet·will·setup·a·menu·just·after
277 the·"Buffers"·menu·in·the·menubar.277 the·"Buffers"·menu·in·the·menubar.
278 </p>278 </p>
Offset 295, 33 lines modifiedOffset 295, 33 lines modified
  
  
295 <div·class="figure">295 <div·class="figure">
296 <p><img·src="./images/menu-1.png"·alt="menu-1.png"·/>296 <p><img·src="./images/menu-1.png"·alt="menu-1.png"·/>
297 </p>297 </p>
298 </div>298 </div>
  
299 <div·id="outline-container-org8eabb4a"·class="outline-2">299 <div·id="outline-container-org12678e9"·class="outline-2">
300 <h2·id="org8eabb4a">Loading·snippets·from·menu</h2>300 <h2·id="org12678e9">Loading·snippets·from·menu</h2>
301 <div·class="outline-text-2"·id="text-org8eabb4a">301 <div·class="outline-text-2"·id="text-org12678e9">
302 <p>302 <p>
303 Invoking·"Load·snippets&#x2026;"·from·the·menu·invokes·<a·href="snippet-reference.html#yas-load-directory"><code>yas-load-directory</code></a>303 Invoking·"Load·snippets&#x2026;"·from·the·menu·invokes·<a·href="snippet-reference.html#yas-load-directory"><code>yas-load-directory</code></a>
304 and·prompts·you·for·a·snippet·directory·hierarchy·to·load.304 and·prompts·you·for·a·snippet·directory·hierarchy·to·load.
305 </p>305 </p>
  
306 <p>306 <p>
307 Also·useful·is·the·"Reload·everything"·item·to·invoke·<a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>307 Also·useful·is·the·"Reload·everything"·item·to·invoke·<a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>
308 which·uncondionally·reloads·all·the·snippets·directories·defined·in308 which·uncondionally·reloads·all·the·snippets·directories·defined·in
309 <a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·and·rebuilds·the·menus.309 <a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·and·rebuilds·the·menus.
310 </p>310 </p>
311 </div>311 </div>
312 </div>312 </div>
  
313 <div·id="outline-container-org0154b62"·class="outline-2">313 <div·id="outline-container-org694a911"·class="outline-2">
314 <h2·id="org0154b62">Snippet·menu·behavior</h2>314 <h2·id="org694a911">Snippet·menu·behavior</h2>
315 <div·class="outline-text-2"·id="text-org0154b62">315 <div·class="outline-text-2"·id="text-org694a911">
316 <p>316 <p>
317 YASnippet·will·list·in·this·section·all·the·loaded·snippet·definitions317 YASnippet·will·list·in·this·section·all·the·loaded·snippet·definitions
318 organized·by·snippet·table·name.318 organized·by·snippet·table·name.
319 </p>319 </p>
  
320 <p>320 <p>
321 You·can·use·this·section·to·explore·currently·loaded·snippets.·If·you321 You·can·use·this·section·to·explore·currently·loaded·snippets.·If·you
Offset 349, 38 lines modifiedOffset 349, 38 lines modified
349 <p>349 <p>
350 These·customizations·can·also·be·found·in·the·menu·itself,·under·the350 These·customizations·can·also·be·found·in·the·menu·itself,·under·the
351 "Snippet·menu·behavior"·submenu.351 "Snippet·menu·behavior"·submenu.
352 </p>352 </p>
353 </div>353 </div>
354 </div>354 </div>
  
355 <div·id="outline-container-org948337d"·class="outline-2">355 <div·id="outline-container-org22be4d1"·class="outline-2">
356 <h2·id="org948337d">Controlling·indenting</h2>356 <h2·id="org22be4d1">Controlling·indenting</h2>
357 <div·class="outline-text-2"·id="text-org948337d">357 <div·class="outline-text-2"·id="text-org22be4d1">
358 <p>358 <p>
359 The·"Indenting"·submenu·contains·options·to·control·the·values·of359 The·"Indenting"·submenu·contains·options·to·control·the·values·of
360 <a·href="snippet-reference.html#yas-indent-line"><code>yas-indent-line</code></a>·and·<a·href="snippet-reference.html#yas-also-auto-indent-first-line"><code>yas-also-auto-indent-first-line</code></a>.·See360 <a·href="snippet-reference.html#yas-indent-line"><code>yas-indent-line</code></a>·and·<a·href="snippet-reference.html#yas-also-auto-indent-first-line"><code>yas-also-auto-indent-first-line</code></a>.·See
361 <a·href="./snippet-development.html">Writing·snippets</a>.361 <a·href="./snippet-development.html">Writing·snippets</a>.
362 </p>362 </p>
363 </div>363 </div>
364 </div>364 </div>
  
365 <div·id="outline-container-org79e6da9"·class="outline-2">365 <div·id="outline-container-orgf2d795d"·class="outline-2">
366 <h2·id="org79e6da9">Prompting·method</h2>366 <h2·id="orgf2d795d">Prompting·method</h2>
367 <div·class="outline-text-2"·id="text-org79e6da9">367 <div·class="outline-text-2"·id="text-orgf2d795d">
368 <p>368 <p>
369 The·"Prompting·method"·submenu·contains·options·to·control·the·value·of369 The·"Prompting·method"·submenu·contains·options·to·control·the·value·of
370 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.·See·<a·href="./snippet-expansion.html">Expanding·snippets</a>.370 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.·See·<a·href="./snippet-expansion.html">Expanding·snippets</a>.
371 </p>371 </p>
372 </div>372 </div>
373 </div>373 </div>
  
374 <div·id="outline-container-org35aa498"·class="outline-2">374 <div·id="outline-container-orgf95512f"·class="outline-2">
375 <h2·id="org35aa498">Misc</h2>375 <h2·id="orgf95512f">Misc</h2>
376 <div·class="outline-text-2"·id="text-org35aa498">376 <div·class="outline-text-2"·id="text-orgf95512f">
377 <p>377 <p>
378 The·"Misc"·submenu·contains·options·to·control·the·values·of·more378 The·"Misc"·submenu·contains·options·to·control·the·values·of·more
379 variables.379 variables.
380 </p>380 </p>
381 </div>381 </div>
382 </div>382 </div>
383 </div>383 </div>
6.55 KB
./usr/share/doc/elpa-yasnippet/html/snippet-organization.html
    
Offset 260, 28 lines modifiedOffset 260, 28 lines modified
260 </div>260 </div>
261 <div·id="content">261 <div·id="content">
262 <h1·class="title">Organizing·snippets</h1>262 <h1·class="title">Organizing·snippets</h1>
263 <div·id="table-of-contents">263 <div·id="table-of-contents">
264 <h2>Table·of·Contents</h2>264 <h2>Table·of·Contents</h2>
265 <div·id="text-table-of-contents">265 <div·id="text-table-of-contents">
266 <ul>266 <ul>
267 <li><a·href="#org6f8bd87">Basic·structure</a></li>267 <li><a·href="#org381b336">Basic·structure</a></li>
268 <li><a·href="#org046d9b8">Setting·up·<code>yas-snippet-dirs</code></a></li>268 <li><a·href="#org5611f2b">Setting·up·<code>yas-snippet-dirs</code></a></li>
269 <li><a·href="#orga5dd3c8">The·<code>.yas-parents</code>·file</a></li>269 <li><a·href="#org81d7364">The·<code>.yas-parents</code>·file</a></li>
270 <li><a·href="#org03c5477"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</a></li>270 <li><a·href="#org642822b"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</a></li>
271 <li><a·href="#orgcfab24b">The·<code>.yas-setup.el</code>·file</a></li>271 <li><a·href="#org65279bd">The·<code>.yas-setup.el</code>·file</a></li>
272 <li><a·href="#orgcba62d2">The·<code>.yas-compiled-snippet.el</code>·file</a></li>272 <li><a·href="#orgbe4fd9d">The·<code>.yas-compiled-snippet.el</code>·file</a></li>
273 <li><a·href="#orgeb03280">The·<code>.yas-skip</code>·file</a></li>273 <li><a·href="#org71db3e0">The·<code>.yas-skip</code>·file</a></li>
274 </ul>274 </ul>
275 </div>275 </div>
276 </div>276 </div>
  
277 <div·id="outline-container-org6f8bd87"·class="outline-2">277 <div·id="outline-container-org381b336"·class="outline-2">
278 <h2·id="org6f8bd87">Basic·structure</h2>278 <h2·id="org381b336">Basic·structure</h2>
279 <div·class="outline-text-2"·id="text-org6f8bd87">279 <div·class="outline-text-2"·id="text-org381b336">
280 <p>280 <p>
281 Snippet·collections·can·be·stored·in·plain·text·files.·They·are281 Snippet·collections·can·be·stored·in·plain·text·files.·They·are
282 arranged·by·sub-directories·naming·<b>snippet·tables</b>.··These·mostly282 arranged·by·sub-directories·naming·<b>snippet·tables</b>.··These·mostly
283 name·Emacs·major·mode·names.283 name·Emacs·major·mode·names.
284 </p>284 </p>
  
285 <pre·class="example">285 <pre·class="example">
Offset 299, 17 lines modifiedOffset 299, 17 lines modified
299 The·collections·are·loaded·into·<b>snippet·tables</b>·which·the299 The·collections·are·loaded·into·<b>snippet·tables</b>·which·the
300 triggering·mechanism·(see·<a·href="snippet-expansion.html">Expanding·Snippets</a>)·looks·up·and300 triggering·mechanism·(see·<a·href="snippet-expansion.html">Expanding·Snippets</a>)·looks·up·and
301 (hopefully)·causes·the·right·snippet·to·be·expanded·for·you.301 (hopefully)·causes·the·right·snippet·to·be·expanded·for·you.
302 </p>302 </p>
303 </div>303 </div>
304 </div>304 </div>
  
305 <div·id="outline-container-org046d9b8"·class="outline-2">305 <div·id="outline-container-org5611f2b"·class="outline-2">
306 <h2·id="org046d9b8">Setting·up·<code>yas-snippet-dirs</code></h2>306 <h2·id="org5611f2b">Setting·up·<code>yas-snippet-dirs</code></h2>
307 <div·class="outline-text-2"·id="text-org046d9b8">307 <div·class="outline-text-2"·id="text-org5611f2b">
308 <p>308 <p>
309 The·emacs·variable·<a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·tells·YASnippet309 The·emacs·variable·<a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·tells·YASnippet
310 which·collections·to·consider.·It's·used·when·you·activate310 which·collections·to·consider.·It's·used·when·you·activate
311 <a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·or·call311 <a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·or·call
312 <a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>·interactively.312 <a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>·interactively.
313 </p>313 </p>
  
Offset 343, 17 lines modifiedOffset 343, 17 lines modified
343 Collections·appearing·earlier·in·the·list·override·snippets·with·same·names343 Collections·appearing·earlier·in·the·list·override·snippets·with·same·names
344 appearing·in·collections·later·in·the·list.·<a·href="snippet-reference.html#yas-new-snippet"><code>yas-new-snippet</code></a>·always·stores344 appearing·in·collections·later·in·the·list.·<a·href="snippet-reference.html#yas-new-snippet"><code>yas-new-snippet</code></a>·always·stores
345 snippets·in·the·first·collection.345 snippets·in·the·first·collection.
346 </p>346 </p>
347 </div>347 </div>
348 </div>348 </div>
  
349 <div·id="outline-container-orga5dd3c8"·class="outline-2">349 <div·id="outline-container-org81d7364"·class="outline-2">
350 <h2·id="orga5dd3c8">The·<code>.yas-parents</code>·file</h2>350 <h2·id="org81d7364">The·<code>.yas-parents</code>·file</h2>
351 <div·class="outline-text-2"·id="text-orga5dd3c8">351 <div·class="outline-text-2"·id="text-org81d7364">
352 <p>352 <p>
353 It's·very·useful·to·have·certain·modes·share·snippets·between353 It's·very·useful·to·have·certain·modes·share·snippets·between
354 themselves.·To·do·this,·choose·a·mode·subdirectory·and·place·a354 themselves.·To·do·this,·choose·a·mode·subdirectory·and·place·a
355 <code>.yas-parents</code>·containing·a·whitespace-separated·list·of·other·mode355 <code>.yas-parents</code>·containing·a·whitespace-separated·list·of·other·mode
356 names.·When·you·reload·those·modes·become·parents·of·the·original356 names.·When·you·reload·those·modes·become·parents·of·the·original
357 mode.357 mode.
358 </p>358 </p>
Offset 373, 17 lines modifiedOffset 373, 17 lines modified
373 ····|--·email373 ····|--·email
374 ····`--·time374 ····`--·time
375 </pre>375 </pre>
376 </div>376 </div>
377 </div>377 </div>
  
  
378 <div·id="outline-container-org03c5477"·class="outline-2">378 <div·id="outline-container-org642822b"·class="outline-2">
379 <h2·id="org03c5477"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</h2>379 <h2·id="org642822b"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</h2>
380 <div·class="outline-text-2"·id="text-org03c5477">380 <div·class="outline-text-2"·id="text-org642822b">
381 <p>381 <p>
382 If·you·place·an·empty·plain·text·file·<code>.yas-make-groups</code>·inside·one382 If·you·place·an·empty·plain·text·file·<code>.yas-make-groups</code>·inside·one
383 of·the·mode·directories,·the·names·of·these·sub-directories·are383 of·the·mode·directories,·the·names·of·these·sub-directories·are
384 considered·groups·of·snippets·and·<a·href="snippet-menu.html">the·menu</a>·is·organized·much·more384 considered·groups·of·snippets·and·<a·href="snippet-menu.html">the·menu</a>·is·organized·much·more
385 cleanly:385 cleanly:
386 </p>386 </p>
  
Offset 417, 28 lines modifiedOffset 417, 28 lines modified
417 <p>417 <p>
418 Yet·another·way·to·create·a·nice·snippet·menu·is·to·write·into418 Yet·another·way·to·create·a·nice·snippet·menu·is·to·write·into
419 <code>.yas-make-groups</code>·a·menu·definition.·TODO419 <code>.yas-make-groups</code>·a·menu·definition.·TODO
420 </p>420 </p>
421 </div>421 </div>
422 </div>422 </div>
  
423 <div·id="outline-container-orgcfab24b"·class="outline-2">423 <div·id="outline-container-org65279bd"·class="outline-2">
424 <h2·id="orgcfab24b">The·<code>.yas-setup.el</code>·file</h2>424 <h2·id="org65279bd">The·<code>.yas-setup.el</code>·file</h2>
425 <div·class="outline-text-2"·id="text-orgcfab24b">425 <div·class="outline-text-2"·id="text-org65279bd">
426 <p>426 <p>
427 If·there·is·file·named·<code>.yas-setup.el</code>·in·a·mode's·snippet427 If·there·is·file·named·<code>.yas-setup.el</code>·in·a·mode's·snippet
428 subdirectory,·it·is·loaded·along·with·the·snippets.··Utility428 subdirectory,·it·is·loaded·along·with·the·snippets.··Utility
429 functions·used·by·the·snippets·can·be·put·here.429 functions·used·by·the·snippets·can·be·put·here.
430 </p>430 </p>
431 </div>431 </div>
432 </div>432 </div>
  
433 <div·id="outline-container-orgcba62d2"·class="outline-2">433 <div·id="outline-container-orgbe4fd9d"·class="outline-2">
434 <h2·id="orgcba62d2">The·<code>.yas-compiled-snippet.el</code>·file</h2>434 <h2·id="orgbe4fd9d">The·<code>.yas-compiled-snippet.el</code>·file</h2>
435 <div·class="outline-text-2"·id="text-orgcba62d2">435 <div·class="outline-text-2"·id="text-orgbe4fd9d">
436 <p>436 <p>
437 You·may·compile·a·top-level·snippet·directory·with·the437 You·may·compile·a·top-level·snippet·directory·with·the
438 <code>yas-compile-directory</code>·function,·which·will·create·a438 <code>yas-compile-directory</code>·function,·which·will·create·a
439 <code>.yas-compiled-snippets.el</code>·file·under·each·mode·subdirectory,439 <code>.yas-compiled-snippets.el</code>·file·under·each·mode·subdirectory,
440 which·contains·definitions·for·all·snippets·in·the·subdirectory.440 which·contains·definitions·for·all·snippets·in·the·subdirectory.
441 Compilation·helps·improve·loading·time.441 Compilation·helps·improve·loading·time.
442 </p>442 </p>
Offset 446, 17 lines modifiedOffset 446, 17 lines modified
446 <p>446 <p>
447 Alternatively,·you·may·compile·all·directories·in·the·list447 Alternatively,·you·may·compile·all·directories·in·the·list
448 <code>yas-snippet-dirs</code>·with·the·<code>yas-recompile-all</code>·function.448 <code>yas-snippet-dirs</code>·with·the·<code>yas-recompile-all</code>·function.
449 </p>449 </p>
450 </div>450 </div>
451 </div>451 </div>
  
452 <div·id="outline-container-orgeb03280"·class="outline-2">452 <div·id="outline-container-org71db3e0"·class="outline-2">
453 <h2·id="orgeb03280">The·<code>.yas-skip</code>·file</h2>453 <h2·id="org71db3e0">The·<code>.yas-skip</code>·file</h2>
454 <div·class="outline-text-2"·id="text-orgeb03280">454 <div·class="outline-text-2"·id="text-org71db3e0">
455 <p>455 <p>
456 A·<code>.yas-skip</code>·file·in·a·mode's·snippet·subdirectory·tells·YASnippet456 A·<code>.yas-skip</code>·file·in·a·mode's·snippet·subdirectory·tells·YASnippet
457 not·to·load·snippets·from·there.457 not·to·load·snippets·from·there.
458 </p>458 </p>
459 </div>459 </div>
Max diff block lines reached; 8/6582 bytes (0.12%) of diff not shown.
60.1 KB
./usr/share/doc/elpa-yasnippet/html/snippet-reference.html
    
Offset 260, 15 lines modifiedOffset 260, 15 lines modified
260 </div>260 </div>
261 <div·id="content">261 <div·id="content">
262 <h1·class="title">Reference</h1>262 <h1·class="title">Reference</h1>
263 <div·id="table-of-contents">263 <div·id="table-of-contents">
264 <h2>Table·of·Contents</h2>264 <h2>Table·of·Contents</h2>
265 <div·id="text-table-of-contents">265 <div·id="text-table-of-contents">
266 <ul>266 <ul>
267 <li><a·href="#org4099463">Interactive·functions</a>267 <li><a·href="#orgf2c1b43">Interactive·functions</a>
268 <ul>268 <ul>
269 <li><a·href="#yas-load-snippet-buffer-and-close"><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&amp;optional</i>·<code>kill</code>)</a></li>269 <li><a·href="#yas-load-snippet-buffer-and-close"><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&amp;optional</i>·<code>kill</code>)</a></li>
270 <li><a·href="#yas-expand-from-trigger-key"><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>270 <li><a·href="#yas-expand-from-trigger-key"><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>
271 <li><a·href="#yas-skip-and-clear-or-delete-char"><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>271 <li><a·href="#yas-skip-and-clear-or-delete-char"><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>
272 <li><a·href="#yas-clear-field"><code·class='function'>yas-clear-field</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>272 <li><a·href="#yas-clear-field"><code·class='function'>yas-clear-field</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>
273 <li><a·href="#yas-global-mode"><code·class='function'>yas-global-mode</code>·(<i>&amp;optional</i>·<code>arg</code>)</a></li>273 <li><a·href="#yas-global-mode"><code·class='function'>yas-global-mode</code>·(<i>&amp;optional</i>·<code>arg</code>)</a></li>
274 <li><a·href="#yas-recompile-all"><code·class='function'>yas-recompile-all</code>·()</a></li>274 <li><a·href="#yas-recompile-all"><code·class='function'>yas-recompile-all</code>·()</a></li>
Offset 295, 15 lines modifiedOffset 295, 15 lines modified
295 <li><a·href="#yas-skip-and-clear-field"><code·class='function'>yas-skip-and-clear-field</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>295 <li><a·href="#yas-skip-and-clear-field"><code·class='function'>yas-skip-and-clear-field</code>·(<i>&amp;optional</i>·<code>field</code>)</a></li>
296 <li><a·href="#yas-compile-directory"><code·class='function'>yas-compile-directory</code>·(<code>top-level-dir</code>)</a></li>296 <li><a·href="#yas-compile-directory"><code·class='function'>yas-compile-directory</code>·(<code>top-level-dir</code>)</a></li>
297 <li><a·href="#yas-load-directory"><code·class='function'>yas-load-directory</code>·(<code>top-level-dir</code>·<i>&amp;optional</i>·<code>use-jit</code>·<code>interactive</code>)</a></li>297 <li><a·href="#yas-load-directory"><code·class='function'>yas-load-directory</code>·(<code>top-level-dir</code>·<i>&amp;optional</i>·<code>use-jit</code>·<code>interactive</code>)</a></li>
298 <li><a·href="#yas-describe-table-by-namehash"><code·class='function'>yas-describe-table-by-namehash</code>·()</a></li>298 <li><a·href="#yas-describe-table-by-namehash"><code·class='function'>yas-describe-table-by-namehash</code>·()</a></li>
299 <li><a·href="#yas-tryout-snippet"><code·class='function'>yas-tryout-snippet</code>·(<i>&amp;optional</i>·<code>debug</code>)</a></li>299 <li><a·href="#yas-tryout-snippet"><code·class='function'>yas-tryout-snippet</code>·(<i>&amp;optional</i>·<code>debug</code>)</a></li>
300 </ul>300 </ul>
301 </li>301 </li>
302 <li><a·href="#org8b9d602">Customization·variables</a>302 <li><a·href="#org8040669">Customization·variables</a>
303 <ul>303 <ul>
304 <li><a·href="#yas-expand-only-for-last-commands"><code·class='variable'>yas-expand-only-for-last-commands</code></a></li>304 <li><a·href="#yas-expand-only-for-last-commands"><code·class='variable'>yas-expand-only-for-last-commands</code></a></li>
305 <li><a·href="#yas-wrap-around-region"><code·class='variable'>yas-wrap-around-region</code></a></li>305 <li><a·href="#yas-wrap-around-region"><code·class='variable'>yas-wrap-around-region</code></a></li>
306 <li><a·href="#yas-new-snippet-default"><code·class='variable'>yas-new-snippet-default</code></a></li>306 <li><a·href="#yas-new-snippet-default"><code·class='variable'>yas-new-snippet-default</code></a></li>
307 <li><a·href="#yas-choose-keys-first"><code·class='variable'>yas-choose-keys-first</code></a></li>307 <li><a·href="#yas-choose-keys-first"><code·class='variable'>yas-choose-keys-first</code></a></li>
308 <li><a·href="#yas-triggers-in-field"><code·class='variable'>yas-triggers-in-field</code></a></li>308 <li><a·href="#yas-triggers-in-field"><code·class='variable'>yas-triggers-in-field</code></a></li>
309 <li><a·href="#yas-use-menu"><code·class='variable'>yas-use-menu</code></a></li>309 <li><a·href="#yas-use-menu"><code·class='variable'>yas-use-menu</code></a></li>
Offset 320, 15 lines modifiedOffset 320, 15 lines modified
320 <li><a·href="#yas-also-indent-empty-lines"><code·class='variable'>yas-also-indent-empty-lines</code></a></li>320 <li><a·href="#yas-also-indent-empty-lines"><code·class='variable'>yas-also-indent-empty-lines</code></a></li>
321 <li><a·href="#yas-also-auto-indent-first-line"><code·class='variable'>yas-also-auto-indent-first-line</code></a></li>321 <li><a·href="#yas-also-auto-indent-first-line"><code·class='variable'>yas-also-auto-indent-first-line</code></a></li>
322 <li><a·href="#yas-indent-line"><code·class='variable'>yas-indent-line</code></a></li>322 <li><a·href="#yas-indent-line"><code·class='variable'>yas-indent-line</code></a></li>
323 <li><a·href="#yas-alias-to-yas/prefix-p"><code·class='variable'>yas-alias-to-yas/prefix-p</code></a></li>323 <li><a·href="#yas-alias-to-yas/prefix-p"><code·class='variable'>yas-alias-to-yas/prefix-p</code></a></li>
324 <li><a·href="#yas-inhibit-overlay-modification-protection"><code·class='variable'>yas-inhibit-overlay-modification-protection</code></a></li>324 <li><a·href="#yas-inhibit-overlay-modification-protection"><code·class='variable'>yas-inhibit-overlay-modification-protection</code></a></li>
325 </ul>325 </ul>
326 </li>326 </li>
327 <li><a·href="#org189f997">Useful·functions</a>327 <li><a·href="#orgb8f8373">Useful·functions</a>
328 <ul>328 <ul>
329 <li><a·href="#yas-expand-snippet"><code·class='function'>yas-expand-snippet</code>·(<code>snippet</code>·<i>&amp;optional</i>·<code>start</code>·<code>end</code>·<code>expand-env</code>)</a></li>329 <li><a·href="#yas-expand-snippet"><code·class='function'>yas-expand-snippet</code>·(<code>snippet</code>·<i>&amp;optional</i>·<code>start</code>·<code>end</code>·<code>expand-env</code>)</a></li>
330 <li><a·href="#yas-define-snippets"><code·class='function'>yas-define-snippets</code>·(<code>mode</code>·<code>snippets</code>)</a></li>330 <li><a·href="#yas-define-snippets"><code·class='function'>yas-define-snippets</code>·(<code>mode</code>·<code>snippets</code>)</a></li>
331 <li><a·href="#yas-completing-prompt"><code·class='function'>yas-completing-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&amp;optional</i>·<code>display-fn</code>·<code>completion-fn</code>)</a></li>331 <li><a·href="#yas-completing-prompt"><code·class='function'>yas-completing-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&amp;optional</i>·<code>display-fn</code>·<code>completion-fn</code>)</a></li>
332 <li><a·href="#yas-maybe-expand-abbrev-key-filter"><code·class='function'>yas-maybe-expand-abbrev-key-filter</code>·(<code>cmd</code>)</a></li>332 <li><a·href="#yas-maybe-expand-abbrev-key-filter"><code·class='function'>yas-maybe-expand-abbrev-key-filter</code>·(<code>cmd</code>)</a></li>
333 <li><a·href="#yas-inside-string"><code·class='function'>yas-inside-string</code>·()</a></li>333 <li><a·href="#yas-inside-string"><code·class='function'>yas-inside-string</code>·()</a></li>
334 <li><a·href="#yas-lookup-snippet"><code·class='function'>yas-lookup-snippet</code>·(<code>name</code>·<i>&amp;optional</i>·<code>mode</code>·<code>noerror</code>)</a></li>334 <li><a·href="#yas-lookup-snippet"><code·class='function'>yas-lookup-snippet</code>·(<code>name</code>·<i>&amp;optional</i>·<code>mode</code>·<code>noerror</code>)</a></li>
Offset 366, 15 lines modifiedOffset 366, 15 lines modified
366 <li><a·href="#yas-default-from-field"><code·class='function'>yas-default-from-field</code>·(<code>number</code>)</a></li>366 <li><a·href="#yas-default-from-field"><code·class='function'>yas-default-from-field</code>·(<code>number</code>)</a></li>
367 <li><a·href="#yas-key-to-value"><code·class='function'>yas-key-to-value</code>·(<code>alist</code>)</a></li>367 <li><a·href="#yas-key-to-value"><code·class='function'>yas-key-to-value</code>·(<code>alist</code>)</a></li>
368 <li><a·href="#yas-throw"><code·class='function'>yas-throw</code>·(<code>text</code>)</a></li>368 <li><a·href="#yas-throw"><code·class='function'>yas-throw</code>·(<code>text</code>)</a></li>
369 <li><a·href="#yas-hippie-try-expand"><code·class='function'>yas-hippie-try-expand</code>·(<code>first-time?</code>)</a></li>369 <li><a·href="#yas-hippie-try-expand"><code·class='function'>yas-hippie-try-expand</code>·(<code>first-time?</code>)</a></li>
370 <li><a·href="#yas-maybe-load-snippet-buffer"><code·class='function'>yas-maybe-load-snippet-buffer</code>·()</a></li>370 <li><a·href="#yas-maybe-load-snippet-buffer"><code·class='function'>yas-maybe-load-snippet-buffer</code>·()</a></li>
371 </ul>371 </ul>
372 </li>372 </li>
373 <li><a·href="#org2d7f0c7">Useful·variables</a>373 <li><a·href="#org6d1452b">Useful·variables</a>
374 <ul>374 <ul>
375 <li><a·href="#yas-key-syntaxes"><code·class='variable'>yas-key-syntaxes</code></a></li>375 <li><a·href="#yas-key-syntaxes"><code·class='variable'>yas-key-syntaxes</code></a></li>
376 <li><a·href="#yas-modified-p"><code·class='variable'>yas-modified-p</code></a></li>376 <li><a·href="#yas-modified-p"><code·class='variable'>yas-modified-p</code></a></li>
377 <li><a·href="#yas-dont-activate-functions"><code·class='variable'>yas-dont-activate-functions</code></a></li>377 <li><a·href="#yas-dont-activate-functions"><code·class='variable'>yas-dont-activate-functions</code></a></li>
378 <li><a·href="#yas-maybe-clear-field"><code·class='variable'>yas-maybe-clear-field</code></a></li>378 <li><a·href="#yas-maybe-clear-field"><code·class='variable'>yas-maybe-clear-field</code></a></li>
379 <li><a·href="#yas-before-expand-snippet-hook"><code·class='variable'>yas-before-expand-snippet-hook</code></a></li>379 <li><a·href="#yas-before-expand-snippet-hook"><code·class='variable'>yas-before-expand-snippet-hook</code></a></li>
380 <li><a·href="#yas-maybe-skip-and-clear-field"><code·class='variable'>yas-maybe-skip-and-clear-field</code></a></li>380 <li><a·href="#yas-maybe-skip-and-clear-field"><code·class='variable'>yas-maybe-skip-and-clear-field</code></a></li>
Offset 396, 19 lines modifiedOffset 396, 19 lines modified
396 <li><a·href="#yas-global-mode-buffers"><code·class='variable'>yas-global-mode-buffers</code></a></li>396 <li><a·href="#yas-global-mode-buffers"><code·class='variable'>yas-global-mode-buffers</code></a></li>
397 </ul>397 </ul>
398 </li>398 </li>
399 </ul>399 </ul>
400 </div>400 </div>
401 </div>401 </div>
  
402 <div·id="outline-container-org4099463"·class="outline-2">402 <div·id="outline-container-orgf2c1b43"·class="outline-2">
403 <h2·id="org4099463">Interactive·functions</h2>403 <h2·id="orgf2c1b43">Interactive·functions</h2>
404 <div·class="outline-text-2"·id="text-org4099463">404 <div·class="outline-text-2"·id="text-orgf2c1b43">
405 </div>405 </div>
406 <div·id="outline-container-org73995be"·class="outline-3">406 <div·id="outline-container-orgc5f3829"·class="outline-3">
407 <h3·id="yas-load-snippet-buffer-and-close"><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&amp;optional</i>·<code>kill</code>)</h3>407 <h3·id="yas-load-snippet-buffer-and-close"><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&amp;optional</i>·<code>kill</code>)</h3>
408 <div·class="outline-text-3"·id="text-yas-load-snippet-buffer-and-close">408 <div·class="outline-text-3"·id="text-yas-load-snippet-buffer-and-close">
409 <p>409 <p>
410 Load·and·save·the·snippet,·then·<code>quit-window</code>·if·saved.410 Load·and·save·the·snippet,·then·<code>quit-window</code>·if·saved.
411 Loading·is·performed·by·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>.··If·the411 Loading·is·performed·by·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>.··If·the
412 snippet·is·new,·ask·the·user·whether·(and·where)·to·save·it.··If412 snippet·is·new,·ask·the·user·whether·(and·where)·to·save·it.··If
413 the·snippet·already·has·a·file,·just·save·it.413 the·snippet·already·has·a·file,·just·save·it.
Offset 421, 15 lines modifiedOffset 421, 15 lines modified
421 <p>421 <p>
422 Don't·use·this·from·a·Lisp·program,·call·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>422 Don't·use·this·from·a·Lisp·program,·call·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>
423 and·<code>kill-buffer</code>·instead.423 and·<code>kill-buffer</code>·instead.
424 </p>424 </p>
425 </div>425 </div>
426 </div>426 </div>
  
427 <div·id="outline-container-orgc77d778"·class="outline-3">427 <div·id="outline-container-org119e319"·class="outline-3">
428 <h3·id="yas-expand-from-trigger-key"><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>428 <h3·id="yas-expand-from-trigger-key"><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>
429 <div·class="outline-text-3"·id="text-yas-expand-from-trigger-key">429 <div·class="outline-text-3"·id="text-yas-expand-from-trigger-key">
430 <p>430 <p>
431 Expand·a·snippet·before·point.431 Expand·a·snippet·before·point.
432 </p>432 </p>
  
433 <p>433 <p>
Offset 440, 37 lines modifiedOffset 440, 37 lines modified
440 <p>440 <p>
441 Optional·argument·<code>field</code>·is·for·non-interactive·use·and·is·an441 Optional·argument·<code>field</code>·is·for·non-interactive·use·and·is·an
442 object·satisfying·<code>yas--field-p</code>·to·restrict·the·expansion·to.442 object·satisfying·<code>yas--field-p</code>·to·restrict·the·expansion·to.
443 </p>443 </p>
444 </div>444 </div>
445 </div>445 </div>
  
446 <div·id="outline-container-org3c1c194"·class="outline-3">446 <div·id="outline-container-org2603da8"·class="outline-3">
447 <h3·id="yas-skip-and-clear-or-delete-char"><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>447 <h3·id="yas-skip-and-clear-or-delete-char"><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>
448 <div·class="outline-text-3"·id="text-yas-skip-and-clear-or-delete-char">448 <div·class="outline-text-3"·id="text-yas-skip-and-clear-or-delete-char">
449 <p>449 <p>
450 Clears·unmodified·field·if·at·field·start,·skips·to·next·tab.450 Clears·unmodified·field·if·at·field·start,·skips·to·next·tab.
451 </p>451 </p>
  
452 <p>452 <p>
453 Otherwise·deletes·a·character·normally·by·calling·<code>delete-char</code>.453 Otherwise·deletes·a·character·normally·by·calling·<code>delete-char</code>.
454 </p>454 </p>
455 </div>455 </div>
456 </div>456 </div>
  
457 <div·id="outline-container-org231b56f"·class="outline-3">457 <div·id="outline-container-org0ee4e36"·class="outline-3">
458 <h3·id="yas-clear-field"><code·class='function'>yas-clear-field</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>458 <h3·id="yas-clear-field"><code·class='function'>yas-clear-field</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>
459 <div·class="outline-text-3"·id="text-yas-clear-field">459 <div·class="outline-text-3"·id="text-yas-clear-field">
460 <p>460 <p>
461 Clears·unmodified·<code>field</code>·if·at·field·start.461 Clears·unmodified·<code>field</code>·if·at·field·start.
462 </p>462 </p>
463 </div>463 </div>
Max diff block lines reached; 52920/61378 bytes (86.22%) of diff not shown.