130 KB
/srv/reproducible-results/rbuild-debian/tmp.LMhUoUZAtG/b1/yasnippet_0.13.0-2_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/tmp.LMhUoUZAtG/b2/yasnippet_0.13.0-2_amd64.changes
285 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·e5d8ec28db7e9c3069f44c5a0e11b94d·531760·lisp·optional·elpa-yasnippet_0.13.0-2_all.deb1 ·3932c4274033bfc45cd3d72cc3b4eee6·531788·lisp·optional·elpa-yasnippet_0.13.0-2_all.deb
2 ·cf1a94599179fdcb62573fb432f5fa3f·4728·lisp·optional·yasnippet_0.13.0-2_all.deb2 ·cf1a94599179fdcb62573fb432f5fa3f·4728·lisp·optional·yasnippet_0.13.0-2_all.deb
129 KB
elpa-yasnippet_0.13.0-2_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2018-08-02·02:10:25.000000·debian-binary1 -rw-r--r--···0········0········0········4·2018-08-02·02:10:25.000000·debian-binary
2 -rw-r--r--···0········0········0·····1932·2018-08-02·02:10:25.000000·control.tar.xz2 -rw-r--r--···0········0········0·····1932·2018-08-02·02:10:25.000000·control.tar.xz
3 -rw-r--r--···0········0········0···529636·2018-08-02·02:10:25.000000·data.tar.xz3 -rw-r--r--···0········0········0···529664·2018-08-02·02:10:25.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
129 KB
data.tar.xz
129 KB
data.tar
5.65 KB
./usr/share/doc/elpa-yasnippet/html/faq.html
    
Offset 247, 32 lines modifiedOffset 247, 32 lines modified
247 </div>247 </div>
248 <div·id="content">248 <div·id="content">
249 <h1·class="title">Frequently·Asked·Questions</h1>249 <h1·class="title">Frequently·Asked·Questions</h1>
250 <div·id="table-of-contents">250 <div·id="table-of-contents">
251 <h2>Table·of·Contents</h2>251 <h2>Table·of·Contents</h2>
252 <div·id="text-table-of-contents">252 <div·id="text-table-of-contents">
253 <ul>253 <ul>
254 <li><a·href="#org66025cd">Why·is·there·an·extra·newline?</a></li>254 <li><a·href="#org14f8d30">Why·is·there·an·extra·newline?</a></li>
255 <li><a·href="#orgea8883d">Why·doesn't·TAB·navigation·work·with·flyspell</a></li>255 <li><a·href="#org2903d41">Why·doesn't·TAB·navigation·work·with·flyspell</a></li>
256 <li><a·href="#orgdc03885">How·do·I·use·alternative·keys,·i.e.·not·TAB?</a></li>256 <li><a·href="#orgcd20b43">How·do·I·use·alternative·keys,·i.e.·not·TAB?</a></li>
257 <li><a·href="#orgea8fe82">How·do·I·turn·off·the·minor·mode·where·in·some·buffers?</a></li>257 <li><a·href="#org9ac4f1f">How·do·I·turn·off·the·minor·mode·where·in·some·buffers?</a></li>
258 <li><a·href="#org99bf437">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</a></li>258 <li><a·href="#orge777517">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</a></li>
259 </ul>259 </ul>
260 </div>260 </div>
261 </div>261 </div>
262 <ul·class="org-ul">262 <ul·class="org-ul">
263 <li><b>Note</b>:·In·addition·to·the·questions·and·answers·presented·here,263 <li><b>Note</b>:·In·addition·to·the·questions·and·answers·presented·here,
264 you·might·also·with·to·visit·the·list·of·<a·href="https://github.com/joaotavora/yasnippet/issues?q=label:support">solved·support·issues</a>·in264 you·might·also·with·to·visit·the·list·of·<a·href="https://github.com/joaotavora/yasnippet/issues?q=label:support">solved·support·issues</a>·in
265 the·Github·issue·tracker.··It·might·be·more·up-to-date·than·this265 the·Github·issue·tracker.··It·might·be·more·up-to-date·than·this
266 list.</li>266 list.</li>
267 </ul>267 </ul>
  
268 <div·id="outline-container-org66025cd"·class="outline-2">268 <div·id="outline-container-org14f8d30"·class="outline-2">
269 <h2·id="org66025cd">Why·is·there·an·extra·newline?</h2>269 <h2·id="org14f8d30">Why·is·there·an·extra·newline?</h2>
270 <div·class="outline-text-2"·id="text-org66025cd">270 <div·class="outline-text-2"·id="text-org14f8d30">
271 <p>271 <p>
272 If·there·is·a·newline·at·the·end·of·a·snippet·definition·file,272 If·there·is·a·newline·at·the·end·of·a·snippet·definition·file,
273 YASnippet·will·add·a·newline·when·expanding·that·snippet.·When·editing273 YASnippet·will·add·a·newline·when·expanding·that·snippet.·When·editing
274 or·saving·a·snippet·file,·please·be·careful·not·to·accidentally·add·a274 or·saving·a·snippet·file,·please·be·careful·not·to·accidentally·add·a
275 terminal·newline.275 terminal·newline.
276 </p>276 </p>
  
Offset 280, 17 lines modifiedOffset 280, 17 lines modified
280 Note·that·some·editors·will·automatically·add·a·newline·for·you.·In280 Note·that·some·editors·will·automatically·add·a·newline·for·you.·In
281 Emacs,·if·you·set·<code>require-final-newline</code>·to·<code>t</code>,·it·will·add·the281 Emacs,·if·you·set·<code>require-final-newline</code>·to·<code>t</code>,·it·will·add·the
282 final·newline·automatically.282 final·newline·automatically.
283 </p>283 </p>
284 </div>284 </div>
285 </div>285 </div>
  
286 <div·id="outline-container-orgea8883d"·class="outline-2">286 <div·id="outline-container-org2903d41"·class="outline-2">
287 <h2·id="orgea8883d">Why·doesn't·TAB·navigation·work·with·flyspell</h2>287 <h2·id="org2903d41">Why·doesn't·TAB·navigation·work·with·flyspell</h2>
288 <div·class="outline-text-2"·id="text-orgea8883d">288 <div·class="outline-text-2"·id="text-org2903d41">
289 <p>289 <p>
290 A·workaround·is·to·inhibit·flyspell·overlays·while·the·snippet·is290 A·workaround·is·to·inhibit·flyspell·overlays·while·the·snippet·is
291 active:291 active:
292 </p>292 </p>
  
293 <div·class="org-src-container">293 <div·class="org-src-container">
294 <pre·class="src·src-emacs-lisp">(add-hook·'flyspell-incorrect-hook294 <pre·class="src·src-emacs-lisp">(add-hook·'flyspell-incorrect-hook
Offset 307, 17 lines modifiedOffset 307, 17 lines modified
307 <code>priority</code>·property·to·something·big.·If·you·know·emacs-lisp·and·can307 <code>priority</code>·property·to·something·big.·If·you·know·emacs-lisp·and·can
308 solve·this·problem,·drop·a·line·in·the308 solve·this·problem,·drop·a·line·in·the
309 <a·href="http://groups.google.com/group/smart-snippet">discussion·group</a>.309 <a·href="http://groups.google.com/group/smart-snippet">discussion·group</a>.
310 </p>310 </p>
311 </div>311 </div>
312 </div>312 </div>
  
313 <div·id="outline-container-orgdc03885"·class="outline-2">313 <div·id="outline-container-orgcd20b43"·class="outline-2">
314 <h2·id="orgdc03885">How·do·I·use·alternative·keys,·i.e.·not·TAB?</h2>314 <h2·id="orgcd20b43">How·do·I·use·alternative·keys,·i.e.·not·TAB?</h2>
315 <div·class="outline-text-2"·id="text-orgdc03885">315 <div·class="outline-text-2"·id="text-orgcd20b43">
316 <p>316 <p>
317 Edit·the·keymaps·<a·href="snippet-reference.html#yas-minor-mode-map"><code>yas-minor-mode-map</code></a>·and317 Edit·the·keymaps·<a·href="snippet-reference.html#yas-minor-mode-map"><code>yas-minor-mode-map</code></a>·and
318 <a·href="snippet-reference.html#yas-keymap"><code>yas-keymap</code></a>·as·you·would·any·other·keymap:318 <a·href="snippet-reference.html#yas-keymap"><code>yas-keymap</code></a>·as·you·would·any·other·keymap:
319 </p>319 </p>
  
320 <div·class="org-src-container">320 <div·class="org-src-container">
321 <pre·class="src·src-emacs-lisp">(define-key·yas-minor-mode-map·(kbd·<span·class="org-string">"&lt;tab&gt;"</span>)·nil)321 <pre·class="src·src-emacs-lisp">(define-key·yas-minor-mode-map·(kbd·<span·class="org-string">"&lt;tab&gt;"</span>)·nil)
Offset 332, 17 lines modifiedOffset 332, 17 lines modified
332 (define-key·yas-keymap·(kbd·<span·class="org-string">"&lt;new-next-field-key&gt;"</span>)·'yas-next-field-or-maybe-expand)332 (define-key·yas-keymap·(kbd·<span·class="org-string">"&lt;new-next-field-key&gt;"</span>)·'yas-next-field-or-maybe-expand)
333 (define-key·yas-keymap·(kbd·<span·class="org-string">"&lt;new-prev-field-key&gt;"</span>)·'yas-prev)333 (define-key·yas-keymap·(kbd·<span·class="org-string">"&lt;new-prev-field-key&gt;"</span>)·'yas-prev)
334 </pre>334 </pre>
335 </div>335 </div>
336 </div>336 </div>
337 </div>337 </div>
  
338 <div·id="outline-container-orgea8fe82"·class="outline-2">338 <div·id="outline-container-org9ac4f1f"·class="outline-2">
339 <h2·id="orgea8fe82">How·do·I·turn·off·the·minor·mode·where·in·some·buffers?</h2>339 <h2·id="org9ac4f1f">How·do·I·turn·off·the·minor·mode·where·in·some·buffers?</h2>
340 <div·class="outline-text-2"·id="text-orgea8fe82">340 <div·class="outline-text-2"·id="text-org9ac4f1f">
341 <p>341 <p>
342 The·best·way,·since·version·0.6.1c,·is·to·set·the·default·value·of·the342 The·best·way,·since·version·0.6.1c,·is·to·set·the·default·value·of·the
343 variable·<a·href="snippet-reference.html#yas-dont-activate"><code>yas-dont-activate</code></a>·to·a·lambda·function·like·so:343 variable·<a·href="snippet-reference.html#yas-dont-activate"><code>yas-dont-activate</code></a>·to·a·lambda·function·like·so:
344 </p>344 </p>
  
345 <div·class="org-src-container">345 <div·class="org-src-container">
346 <pre·class="src·src-emacs-lisp">(set-default·'yas-dont-activate346 <pre·class="src·src-emacs-lisp">(set-default·'yas-dont-activate
Offset 356, 17 lines modifiedOffset 356, 17 lines modified
356 This·is·also·the·default·value·starting·for·that·version.·It·skips·the356 This·is·also·the·default·value·starting·for·that·version.·It·skips·the
357 minor·mode·in·buffers·where·it·is·not·applicable·(no·snippet·tables),357 minor·mode·in·buffers·where·it·is·not·applicable·(no·snippet·tables),
358 but·only·once·you·have·setup·your·yas-root-directory.358 but·only·once·you·have·setup·your·yas-root-directory.
359 </p>359 </p>
360 </div>360 </div>
361 </div>361 </div>
  
362 <div·id="outline-container-org99bf437"·class="outline-2">362 <div·id="outline-container-orge777517"·class="outline-2">
363 <h2·id="org99bf437">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</h2>363 <h2·id="orge777517">How·do·I·define·an·abbrev·key·containing·characters·not·supported·by·the·filesystem?</h2>
364 <div·class="outline-text-2"·id="text-org99bf437">364 <div·class="outline-text-2"·id="text-orge777517">
365 <ul·class="org-ul">365 <ul·class="org-ul">
366 <li><b>Note</b>:·This·question·applies·if·you're·still·defining·snippets366 <li><b>Note</b>:·This·question·applies·if·you're·still·defining·snippets
367 whose·key·<i>is</i>·the·filename.·This·is·behavior·still·provided·by367 whose·key·<i>is</i>·the·filename.·This·is·behavior·still·provided·by
368 version·0.6·for·backward·compatibilty,·but·is·somewhat368 version·0.6·for·backward·compatibilty,·but·is·somewhat
369 deprecated&#x2026;</li>369 deprecated&#x2026;</li>
370 </ul>370 </ul>
  
23.7 KB
./usr/share/doc/elpa-yasnippet/html/snippet-development.html
    
Offset 247, 98 lines modifiedOffset 247, 98 lines modified
247 </div>247 </div>
248 <div·id="content">248 <div·id="content">
249 <h1·class="title">Writing·snippets</h1>249 <h1·class="title">Writing·snippets</h1>
250 <div·id="table-of-contents">250 <div·id="table-of-contents">
251 <h2>Table·of·Contents</h2>251 <h2>Table·of·Contents</h2>
252 <div·id="text-table-of-contents">252 <div·id="text-table-of-contents">
253 <ul>253 <ul>
254 <li><a·href="#org9904022">Snippet·development</a>254 <li><a·href="#orgec26b7d">Snippet·development</a>
255 <ul>255 <ul>
256 <li><a·href="#org46ad558">Quickly·finding·snippets</a></li>256 <li><a·href="#org3ae9bac">Quickly·finding·snippets</a></li>
257 <li><a·href="#orgbc89aec">Using·the·<code>snippet-mode</code>·major·mode·</a></li>257 <li><a·href="#org64cf2be">Using·the·<code>snippet-mode</code>·major·mode·</a></li>
258 </ul>258 </ul>
259 </li>259 </li>
260 <li><a·href="#org807f291">File·content</a>260 <li><a·href="#org8aa2ef6">File·content</a>
261 <ul>261 <ul>
262 <li><a·href="#org3100cde"><code>#·key:</code>·snippet·abbrev</a></li>262 <li><a·href="#org8a09004"><code>#·key:</code>·snippet·abbrev</a></li>
263 <li><a·href="#org4fbb949"><code>#·name:</code>·snippet·name</a></li>263 <li><a·href="#org9c77b96"><code>#·name:</code>·snippet·name</a></li>
264 <li><a·href="#org37b551f"><code>#·condition:</code>·snippet·condition</a></li>264 <li><a·href="#orgf9f1dfc"><code>#·condition:</code>·snippet·condition</a></li>
265 <li><a·href="#org15bb990"><code>#·group:</code>·snippet·menu·grouping</a></li>265 <li><a·href="#org644abf1"><code>#·group:</code>·snippet·menu·grouping</a></li>
266 <li><a·href="#orgbd5a1f9"><code>#·expand-env:</code>·expand·environment</a></li>266 <li><a·href="#org2485184"><code>#·expand-env:</code>·expand·environment</a></li>
267 <li><a·href="#org58292d7"><code>#·binding:</code>·direct·keybinding</a></li>267 <li><a·href="#org30eb2d2"><code>#·binding:</code>·direct·keybinding</a></li>
268 <li><a·href="#org8195189"><code>#·type:</code>·<code>snippet</code>·or·<code>command</code></a></li>268 <li><a·href="#orga94e9a7"><code>#·type:</code>·<code>snippet</code>·or·<code>command</code></a></li>
269 <li><a·href="#org5d3200e"><code>#·uuid:</code>·unique·identifier</a></li>269 <li><a·href="#orgd8eb2c6"><code>#·uuid:</code>·unique·identifier</a></li>
270 <li><a·href="#orgbfb2bc4"><code>#·contributor:</code>·snippet·author</a></li>270 <li><a·href="#org53d2a11"><code>#·contributor:</code>·snippet·author</a></li>
271 </ul>271 </ul>
272 </li>272 </li>
273 <li><a·href="#org734bf8b">Template·Syntax</a>273 <li><a·href="#orgc0f25de">Template·Syntax</a>
274 <ul>274 <ul>
275 <li><a·href="#orge305030">Plain·Text</a></li>275 <li><a·href="#orgef678fe">Plain·Text</a></li>
276 <li><a·href="#org6393d4d">Embedded·Emacs-lisp·code</a>276 <li><a·href="#org84e3996">Embedded·Emacs-lisp·code</a>
277 <ul>277 <ul>
278 <li><a·href="#orgedfa3a7">Note:·backquote·expressions·should·not·modify·the·buffer</a></li>278 <li><a·href="#org0cc1207">Note:·backquote·expressions·should·not·modify·the·buffer</a></li>
279 </ul>279 </ul>
280 </li>280 </li>
281 <li><a·href="#org70ef8c1">Tab·stop·fields</a></li>281 <li><a·href="#org799ac00">Tab·stop·fields</a></li>
282 <li><a·href="#org7e9f31e">Placeholder·fields</a></li>282 <li><a·href="#orgd82d328">Placeholder·fields</a></li>
283 <li><a·href="#org4f0ec51">Mirrors·</a></li>283 <li><a·href="#org28b8e32">Mirrors·</a></li>
284 <li><a·href="#orgc321167">Mirrors·with·transformations·</a></li>284 <li><a·href="#org94e4311">Mirrors·with·transformations·</a></li>
285 <li><a·href="#org2bc6288">Fields·with·transformations</a></li>285 <li><a·href="#org0f49ec5">Fields·with·transformations</a></li>
286 <li><a·href="#org6073fb5">Choosing·fields·value·from·a·list·and·other·tricks</a></li>286 <li><a·href="#orgb9e884e">Choosing·fields·value·from·a·list·and·other·tricks</a></li>
287 <li><a·href="#orgf02fd25">Nested·placeholder·fields</a></li>287 <li><a·href="#org056b5f7">Nested·placeholder·fields</a></li>
288 <li><a·href="#orgd49d3a4">Indentation·markers</a></li>288 <li><a·href="#org9bf60ef">Indentation·markers</a></li>
289 </ul>289 </ul>
290 </li>290 </li>
291 </ul>291 </ul>
292 </div>292 </div>
293 </div>293 </div>
  
294 <div·id="outline-container-org9904022"·class="outline-2">294 <div·id="outline-container-orgec26b7d"·class="outline-2">
295 <h2·id="org9904022">Snippet·development</h2>295 <h2·id="orgec26b7d">Snippet·development</h2>
296 <div·class="outline-text-2"·id="text-org9904022">296 <div·class="outline-text-2"·id="text-orgec26b7d">
297 </div>297 </div>
298 <div·id="outline-container-org46ad558"·class="outline-3">298 <div·id="outline-container-org3ae9bac"·class="outline-3">
299 <h3·id="org46ad558">Quickly·finding·snippets</h3>299 <h3·id="org3ae9bac">Quickly·finding·snippets</h3>
300 <div·class="outline-text-3"·id="text-org46ad558">300 <div·class="outline-text-3"·id="text-org3ae9bac">
301 <p>301 <p>
302 There·are·some·ways·you·can·quickly·find·a·snippet·file·or·create·a·new·one:302 There·are·some·ways·you·can·quickly·find·a·snippet·file·or·create·a·new·one:
303 </p>303 </p>
  
304 <ul·class="org-ul">304 <ul·class="org-ul">
305 <li><p>305 <li><p>
306 <code>M-x·yas-new-snippet</code>,·key·bindind:·<code>C-c·&amp;·C-n</code>306 <code>M-x·yas-new-snippet</code>,·key·bindind:·<code>C-c·&amp;·C-n</code>
307 </p>307 </p>
  
308 <p>308 <p>
309 Creates·a·new·buffer·with·a·template·for·making·a·new·snippet.··The309 Creates·a·new·buffer·with·a·template·for·making·a·new·snippet.··The
310 buffer·is·in·<code>snippet-mode</code>·(see·<a·href="#org4212a7e">below</a>).··When·you·are·done·editing310 buffer·is·in·<code>snippet-mode</code>·(see·<a·href="#orgba25b0d">below</a>).··When·you·are·done·editing
311 the·new·snippet,·use·<a·href="#org76e1073"><code>C-c·C-c</code></a>·to·save·it.311 the·new·snippet,·use·<a·href="#org16089ad"><code>C-c·C-c</code></a>·to·save·it.
312 </p></li>312 </p></li>
  
313 <li><p>313 <li><p>
314 <code>M-x·yas-visit-snippet-file</code>,·key·binding:·<code>C-c·&amp;·C-v</code>314 <code>M-x·yas-visit-snippet-file</code>,·key·binding:·<code>C-c·&amp;·C-v</code>
315 </p>315 </p>
  
316 <p>316 <p>
317 Prompts·you·for·possible·snippet·expansions·like317 Prompts·you·for·possible·snippet·expansions·like
318 <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>,·but·instead·of·expanding·it,·takes·you·directly318 <a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>,·but·instead·of·expanding·it,·takes·you·directly
319 to·the·snippet·definition's·file,·if·it·exists.319 to·the·snippet·definition's·file,·if·it·exists.
320 </p></li>320 </p></li>
321 </ul>321 </ul>
  
322 <p>322 <p>
323 Once·you·find·this·file·it·will·be·set·to·<code>snippet-mode</code>·(see·<a·href="#org4212a7e">ahead</a>)323 Once·you·find·this·file·it·will·be·set·to·<code>snippet-mode</code>·(see·<a·href="#orgba25b0d">ahead</a>)
324 and·you·can·start·editing·your·snippet.324 and·you·can·start·editing·your·snippet.
325 </p>325 </p>
326 </div>326 </div>
327 </div>327 </div>
  
328 <div·id="outline-container-orgbc89aec"·class="outline-3">328 <div·id="outline-container-org64cf2be"·class="outline-3">
329 <h3·id="orgbc89aec">Using·the·<code>snippet-mode</code>·major·mode·<a·id="org4212a7e"></a></h3>329 <h3·id="org64cf2be">Using·the·<code>snippet-mode</code>·major·mode·<a·id="orgba25b0d"></a></h3>
330 <div·class="outline-text-3"·id="text-orgbc89aec">330 <div·class="outline-text-3"·id="text-org64cf2be">
331 <p>331 <p>
332 There·is·a·major·mode·<code>snippet-mode</code>·to·edit·snippets.·You·can·set·the332 There·is·a·major·mode·<code>snippet-mode</code>·to·edit·snippets.·You·can·set·the
333 buffer·to·this·mode·with·<code>M-x·snippet-mode</code>.·It·provides·reasonably333 buffer·to·this·mode·with·<code>M-x·snippet-mode</code>.·It·provides·reasonably
334 useful·syntax·highlighting.334 useful·syntax·highlighting.
335 </p>335 </p>
  
336 <p>336 <p>
Offset 353, 15 lines modifiedOffset 353, 15 lines modified
353 <p>353 <p>
354 Prompts·for·a·snippet·table·(with·a·default·based·on·snippet's354 Prompts·for·a·snippet·table·(with·a·default·based·on·snippet's
355 major·mode)·and·loads·the·snippet·currently·being·edited.355 major·mode)·and·loads·the·snippet·currently·being·edited.
356 </p></li>356 </p></li>
  
357 <li><p>357 <li><p>
358 <code>M-x·yas-load-snippet-buffer-and-close</code>,·key·binding:·<code>C-c·C-c</code>358 <code>M-x·yas-load-snippet-buffer-and-close</code>,·key·binding:·<code>C-c·C-c</code>
359 <a·id="org76e1073"></a>359 <a·id="org16089ad"></a>
360 </p>360 </p>
  
361 <p>361 <p>
362 Like·<code>yas-load-snippet-buffer</code>,·but·also·saves·the·snippet·and362 Like·<code>yas-load-snippet-buffer</code>,·but·also·saves·the·snippet·and
363 calls·<code>quit-window</code>.··The·destination·is·decided·based·on·the363 calls·<code>quit-window</code>.··The·destination·is·decided·based·on·the
364 chosen·snippet·table·and·snippet·collection·directly·(defaulting·to364 chosen·snippet·table·and·snippet·collection·directly·(defaulting·to
365 the·first·directory·in·<code>yas-snippet-dirs</code>·(see·<a·href="snippet-organization.html">Organizing·Snippets</a>365 the·first·directory·in·<code>yas-snippet-dirs</code>·(see·<a·href="snippet-organization.html">Organizing·Snippets</a>
Offset 383, 17 lines modifiedOffset 383, 17 lines modified
383 There·are·also·<i>snippets·for·writing·snippets</i>:·<code>vars</code>,·<code>$f</code>·and·<code>$m</code>383 There·are·also·<i>snippets·for·writing·snippets</i>:·<code>vars</code>,·<code>$f</code>·and·<code>$m</code>
384 :-).384 :-).
385 </p>385 </p>
386 </div>386 </div>
387 </div>387 </div>
388 </div>388 </div>
  
389 <div·id="outline-container-org807f291"·class="outline-2">389 <div·id="outline-container-org8aa2ef6"·class="outline-2">
390 <h2·id="org807f291">File·content</h2>390 <h2·id="org8aa2ef6">File·content</h2>
391 <div·class="outline-text-2"·id="text-org807f291">391 <div·class="outline-text-2"·id="text-org8aa2ef6">
392 <p>392 <p>
393 A·file·defining·a·snippet·generally·contains·the·template·to·be393 A·file·defining·a·snippet·generally·contains·the·template·to·be
Max diff block lines reached; 16722/24182 bytes (69.15%) of diff not shown.
15.4 KB
./usr/share/doc/elpa-yasnippet/html/snippet-expansion.html
    
Offset 247, 42 lines modifiedOffset 247, 42 lines modified
247 </div>247 </div>
248 <div·id="content">248 <div·id="content">
249 <h1·class="title">Expanding·snippets</h1>249 <h1·class="title">Expanding·snippets</h1>
250 <div·id="table-of-contents">250 <div·id="table-of-contents">
251 <h2>Table·of·Contents</h2>251 <h2>Table·of·Contents</h2>
252 <div·id="text-table-of-contents">252 <div·id="text-table-of-contents">
253 <ul>253 <ul>
254 <li><a·href="#orgb29e049">Triggering·expansion</a>254 <li><a·href="#org6b4d3e5">Triggering·expansion</a>
255 <ul>255 <ul>
256 <li><a·href="#org19d1284">Trigger·key</a>256 <li><a·href="#org5ea175f">Trigger·key</a>
257 <ul>257 <ul>
258 <li><a·href="#org503c9db">Fallback·behaviour</a></li>258 <li><a·href="#orgc8017f9">Fallback·behaviour</a></li>
259 </ul>259 </ul>
260 </li>260 </li>
261 <li><a·href="#org824bda7">Insert·at·point</a>261 <li><a·href="#orga1ff456">Insert·at·point</a>
262 <ul>262 <ul>
263 <li><a·href="#orga98528e">Inserting·region·or·register·contents·into·snippet</a></li>263 <li><a·href="#orge8edc51">Inserting·region·or·register·contents·into·snippet</a></li>
264 </ul>264 </ul>
265 </li>265 </li>
266 <li><a·href="#org27cbee7">Snippet·keybinding</a></li>266 <li><a·href="#org1943052">Snippet·keybinding</a></li>
267 <li><a·href="#org0a8d36d">Expanding·from·the·menu</a></li>267 <li><a·href="#org57e4003">Expanding·from·the·menu</a></li>
268 <li><a·href="#org60cc9af">Expanding·with·<code>hippie-expand</code></a></li>268 <li><a·href="#org2093be4">Expanding·with·<code>hippie-expand</code></a></li>
269 <li><a·href="#orge3cdf75">Expanding·from·emacs-lisp·code</a></li>269 <li><a·href="#org9eb8dcb">Expanding·from·emacs-lisp·code</a></li>
270 </ul>270 </ul>
271 </li>271 </li>
272 <li><a·href="#orgdb888c3">Controlling·expansion</a>272 <li><a·href="#org93dddbc">Controlling·expansion</a>
273 <ul>273 <ul>
274 <li><a·href="#org44a99e3">Eligible·snippets</a></li>274 <li><a·href="#org0f5a732">Eligible·snippets</a></li>
275 <li><a·href="#org7231ed7">The·condition·system·</a></li>275 <li><a·href="#org9b778f3">The·condition·system·</a></li>
276 <li><a·href="#org064eb90">Multiples·snippet·with·the·same·key</a>276 <li><a·href="#org57a6cf4">Multiples·snippet·with·the·same·key</a>
277 <ul>277 <ul>
278 <li><a·href="#orgaba0695">Use·the·X·window·system</a></li>278 <li><a·href="#orgef6b17b">Use·the·X·window·system</a></li>
279 <li><a·href="#org6f427a8">Minibuffer·prompting</a></li>279 <li><a·href="#org2983779">Minibuffer·prompting</a></li>
280 <li><a·href="#orgc3401ab">Use·<code>dropdown-menu.el</code></a></li>280 <li><a·href="#orgdd2de67">Use·<code>dropdown-menu.el</code></a></li>
281 <li><a·href="#org9bd3349">Roll·your·own</a></li>281 <li><a·href="#org3c821ad">Roll·your·own</a></li>
282 </ul>282 </ul>
283 </li>283 </li>
284 </ul>284 </ul>
285 </li>285 </li>
286 </ul>286 </ul>
287 </div>287 </div>
288 </div>288 </div>
Offset 291, 17 lines modifiedOffset 291, 17 lines modified
291 </p>291 </p>
  
292 <p>292 <p>
293 Maybe,·you'll·want·some·snippets·to·be·expanded·in·a·particular293 Maybe,·you'll·want·some·snippets·to·be·expanded·in·a·particular
294 mode,·or·only·under·certain·conditions,·or·be·prompted·using294 mode,·or·only·under·certain·conditions,·or·be·prompted·using
295 </p>295 </p>
  
296 <div·id="outline-container-orgb29e049"·class="outline-2">296 <div·id="outline-container-org6b4d3e5"·class="outline-2">
297 <h2·id="orgb29e049">Triggering·expansion</h2>297 <h2·id="org6b4d3e5">Triggering·expansion</h2>
298 <div·class="outline-text-2"·id="text-orgb29e049">298 <div·class="outline-text-2"·id="text-org6b4d3e5">
299 <p>299 <p>
300 You·can·use·YASnippet·to·expand·snippets·in·different·ways:300 You·can·use·YASnippet·to·expand·snippets·in·different·ways:
301 </p>301 </p>
  
302 <ul·class="org-ul">302 <ul·class="org-ul">
303 <li>When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active:303 <li>When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active:
304 <ul·class="org-ul">304 <ul·class="org-ul">
Offset 321, 17 lines modifiedOffset 321, 17 lines modified
321 <li>Use·m2m's·excellent·auto-complete321 <li>Use·m2m's·excellent·auto-complete
322 TODO:·example·for·this</li>322 TODO:·example·for·this</li>
  
323 <li>Expanding·from·emacs-lisp·code</li>323 <li>Expanding·from·emacs-lisp·code</li>
324 </ul>324 </ul>
325 </div>325 </div>
  
326 <div·id="outline-container-org19d1284"·class="outline-3">326 <div·id="outline-container-org5ea175f"·class="outline-3">
327 <h3·id="org19d1284">Trigger·key</h3>327 <h3·id="org5ea175f">Trigger·key</h3>
328 <div·class="outline-text-3"·id="text-org19d1284">328 <div·class="outline-text-3"·id="text-org5ea175f">
329 <p>329 <p>
330 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·tries·to·expand·a·<i>snippet·abbrev</i>·(also·known·as330 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·tries·to·expand·a·<i>snippet·abbrev</i>·(also·known·as
331 <i>snippet·key</i>)·before·point.··YASnippet·also·provides·a·<i>conditional331 <i>snippet·key</i>)·before·point.··YASnippet·also·provides·a·<i>conditional
332 binding</i>·for·this·command:·the·variable·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·contains·a332 binding</i>·for·this·command:·the·variable·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·contains·a
333 special·value·which,·when·bound·in·a·keymap,·tells·Emacs·to·call333 special·value·which,·when·bound·in·a·keymap,·tells·Emacs·to·call
334 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·if·and·only·if·there·is·a·snippet·abbrev·before·point.334 <a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>·if·and·only·if·there·is·a·snippet·abbrev·before·point.
335 If·there·is·no·snippet·to·expand,·Emacs·will·behave·as·if·<a·href="snippet-reference.html#yas-expand"><code>yas-expand</code></a>335 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 379, 29 lines modifiedOffset 379, 29 lines modified
379 <p>379 <p>
380 When·you·use·<a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·you·can·also·selectively·disable380 When·you·use·<a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·you·can·also·selectively·disable
381 YASnippet·in·some·buffers·by·calling·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·with·a·negative381 YASnippet·in·some·buffers·by·calling·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·with·a·negative
382 argument·in·the·buffer's·mode·hook.382 argument·in·the·buffer's·mode·hook.
383 </p>383 </p>
384 </div>384 </div>
  
385 <div·id="outline-container-org503c9db"·class="outline-4">385 <div·id="outline-container-orgc8017f9"·class="outline-4">
386 <h4·id="org503c9db">Fallback·behaviour</h4>386 <h4·id="orgc8017f9">Fallback·behaviour</h4>
387 <div·class="outline-text-4"·id="text-org503c9db">387 <div·class="outline-text-4"·id="text-orgc8017f9">
388 <p>388 <p>
389 YASnippet·used·to·support·a·more·complicated·way·of·sharing389 YASnippet·used·to·support·a·more·complicated·way·of·sharing
390 keybindings·before·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·was·added.··This·is·now390 keybindings·before·<a·href="snippet-reference.html#yas-expand"><code>yas-maybe-expand</code></a>·was·added.··This·is·now
391 obsolete.391 obsolete.
392 </p>392 </p>
393 </div>393 </div>
394 </div>394 </div>
395 </div>395 </div>
  
396 <div·id="outline-container-org824bda7"·class="outline-3">396 <div·id="outline-container-orga1ff456"·class="outline-3">
397 <h3·id="org824bda7">Insert·at·point</h3>397 <h3·id="orga1ff456">Insert·at·point</h3>
398 <div·class="outline-text-3"·id="text-org824bda7">398 <div·class="outline-text-3"·id="text-orga1ff456">
399 <p>399 <p>
400 The·command·<a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>·lets·you·insert·snippets·at·point400 The·command·<a·href="snippet-reference.html#yas-insert-snippet"><code>yas-insert-snippet</code></a>·lets·you·insert·snippets·at·point
401 <i>for·your·current·major·mode</i>.·It·prompts·you·for·the·snippet·key401 <i>for·your·current·major·mode</i>.·It·prompts·you·for·the·snippet·key
402 first,·and·then·for·a·snippet·template·if·more·than·one·template402 first,·and·then·for·a·snippet·template·if·more·than·one·template
403 exists·for·the·same·key.403 exists·for·the·same·key.
404 </p>404 </p>
  
Offset 413, 17 lines modifiedOffset 413, 17 lines modified
  
413 <p>413 <p>
414 The·prompting·methods·used·are·again·controlled·by414 The·prompting·methods·used·are·again·controlled·by
415 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.415 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.
416 </p>416 </p>
417 </div>417 </div>
  
418 <div·id="outline-container-orga98528e"·class="outline-4">418 <div·id="outline-container-orge8edc51"·class="outline-4">
419 <h4·id="orga98528e">Inserting·region·or·register·contents·into·snippet</h4>419 <h4·id="orge8edc51">Inserting·region·or·register·contents·into·snippet</h4>
420 <div·class="outline-text-4"·id="text-orga98528e">420 <div·class="outline-text-4"·id="text-orge8edc51">
421 <p>421 <p>
422 It's·often·useful·to·inject·already·written·text·in·the·middle·of·a422 It's·often·useful·to·inject·already·written·text·in·the·middle·of·a
423 snippet.··The·variable·<a·href="snippet-reference.html#yas-wrap-around-region"><code>yas-wrap-around-region</code></a>·when·to·t·substitute423 snippet.··The·variable·<a·href="snippet-reference.html#yas-wrap-around-region"><code>yas-wrap-around-region</code></a>·when·to·t·substitute
424 the·region·contents·into·the·<code>$0</code>·placeholder·of·a·snippet·expanded·by424 the·region·contents·into·the·<code>$0</code>·placeholder·of·a·snippet·expanded·by
425 <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>)425 <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>)
426 will·insert·the·contents·of·corresponding·register.426 will·insert·the·contents·of·corresponding·register.
427 </p>427 </p>
Offset 434, 49 lines modifiedOffset 434, 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 247, 19 lines modifiedOffset 247, 19 lines modified
247 </div>247 </div>
248 <div·id="content">248 <div·id="content">
249 <h1·class="title">YASnippet·menu</h1>249 <h1·class="title">YASnippet·menu</h1>
250 <div·id="table-of-contents">250 <div·id="table-of-contents">
251 <h2>Table·of·Contents</h2>251 <h2>Table·of·Contents</h2>
252 <div·id="text-table-of-contents">252 <div·id="text-table-of-contents">
253 <ul>253 <ul>
254 <li><a·href="#orgb7a9f5e">Loading·snippets·from·menu</a></li>254 <li><a·href="#org9920330">Loading·snippets·from·menu</a></li>
255 <li><a·href="#org0e59823">Snippet·menu·behavior</a></li>255 <li><a·href="#org65d06a8">Snippet·menu·behavior</a></li>
256 <li><a·href="#org61d29cc">Controlling·indenting</a></li>256 <li><a·href="#org47f9492">Controlling·indenting</a></li>
257 <li><a·href="#org9d5680f">Prompting·method</a></li>257 <li><a·href="#orga31ed7f">Prompting·method</a></li>
258 <li><a·href="#org243440c">Misc</a></li>258 <li><a·href="#org196b55d">Misc</a></li>
259 </ul>259 </ul>
260 </div>260 </div>
261 </div>261 </div>
262 <p>262 <p>
263 When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active,·YASnippet·will·setup·a·menu·just·after263 When·<a·href="snippet-reference.html#yas-minor-mode"><code>yas-minor-mode</code></a>·is·active,·YASnippet·will·setup·a·menu·just·after
264 the·"Buffers"·menu·in·the·menubar.264 the·"Buffers"·menu·in·the·menubar.
265 </p>265 </p>
Offset 282, 33 lines modifiedOffset 282, 33 lines modified
  
  
282 <div·class="figure">282 <div·class="figure">
283 <p><img·src="./images/menu-1.png"·alt="menu-1.png"·/>283 <p><img·src="./images/menu-1.png"·alt="menu-1.png"·/>
284 </p>284 </p>
285 </div>285 </div>
  
286 <div·id="outline-container-orgb7a9f5e"·class="outline-2">286 <div·id="outline-container-org9920330"·class="outline-2">
287 <h2·id="orgb7a9f5e">Loading·snippets·from·menu</h2>287 <h2·id="org9920330">Loading·snippets·from·menu</h2>
288 <div·class="outline-text-2"·id="text-orgb7a9f5e">288 <div·class="outline-text-2"·id="text-org9920330">
289 <p>289 <p>
290 Invoking·"Load·snippets&#x2026;"·from·the·menu·invokes·<a·href="snippet-reference.html#yas-load-directory"><code>yas-load-directory</code></a>290 Invoking·"Load·snippets&#x2026;"·from·the·menu·invokes·<a·href="snippet-reference.html#yas-load-directory"><code>yas-load-directory</code></a>
291 and·prompts·you·for·a·snippet·directory·hierarchy·to·load.291 and·prompts·you·for·a·snippet·directory·hierarchy·to·load.
292 </p>292 </p>
  
293 <p>293 <p>
294 Also·useful·is·the·"Reload·everything"·item·to·invoke·<a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>294 Also·useful·is·the·"Reload·everything"·item·to·invoke·<a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>
295 which·uncondionally·reloads·all·the·snippets·directories·defined·in295 which·uncondionally·reloads·all·the·snippets·directories·defined·in
296 <a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·and·rebuilds·the·menus.296 <a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·and·rebuilds·the·menus.
297 </p>297 </p>
298 </div>298 </div>
299 </div>299 </div>
  
300 <div·id="outline-container-org0e59823"·class="outline-2">300 <div·id="outline-container-org65d06a8"·class="outline-2">
301 <h2·id="org0e59823">Snippet·menu·behavior</h2>301 <h2·id="org65d06a8">Snippet·menu·behavior</h2>
302 <div·class="outline-text-2"·id="text-org0e59823">302 <div·class="outline-text-2"·id="text-org65d06a8">
303 <p>303 <p>
304 YASnippet·will·list·in·this·section·all·the·loaded·snippet·definitions304 YASnippet·will·list·in·this·section·all·the·loaded·snippet·definitions
305 organized·by·snippet·table·name.305 organized·by·snippet·table·name.
306 </p>306 </p>
  
307 <p>307 <p>
308 You·can·use·this·section·to·explore·currently·loaded·snippets.·If·you308 You·can·use·this·section·to·explore·currently·loaded·snippets.·If·you
Offset 336, 38 lines modifiedOffset 336, 38 lines modified
336 <p>336 <p>
337 These·customizations·can·also·be·found·in·the·menu·itself,·under·the337 These·customizations·can·also·be·found·in·the·menu·itself,·under·the
338 "Snippet·menu·behavior"·submenu.338 "Snippet·menu·behavior"·submenu.
339 </p>339 </p>
340 </div>340 </div>
341 </div>341 </div>
  
342 <div·id="outline-container-org61d29cc"·class="outline-2">342 <div·id="outline-container-org47f9492"·class="outline-2">
343 <h2·id="org61d29cc">Controlling·indenting</h2>343 <h2·id="org47f9492">Controlling·indenting</h2>
344 <div·class="outline-text-2"·id="text-org61d29cc">344 <div·class="outline-text-2"·id="text-org47f9492">
345 <p>345 <p>
346 The·"Indenting"·submenu·contains·options·to·control·the·values·of346 The·"Indenting"·submenu·contains·options·to·control·the·values·of
347 <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>.·See347 <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
348 <a·href="./snippet-development.html">Writing·snippets</a>.348 <a·href="./snippet-development.html">Writing·snippets</a>.
349 </p>349 </p>
350 </div>350 </div>
351 </div>351 </div>
  
352 <div·id="outline-container-org9d5680f"·class="outline-2">352 <div·id="outline-container-orga31ed7f"·class="outline-2">
353 <h2·id="org9d5680f">Prompting·method</h2>353 <h2·id="orga31ed7f">Prompting·method</h2>
354 <div·class="outline-text-2"·id="text-org9d5680f">354 <div·class="outline-text-2"·id="text-orga31ed7f">
355 <p>355 <p>
356 The·"Prompting·method"·submenu·contains·options·to·control·the·value·of356 The·"Prompting·method"·submenu·contains·options·to·control·the·value·of
357 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.·See·<a·href="./snippet-expansion.html">Expanding·snippets</a>.357 <a·href="snippet-reference.html#yas-prompt-functions"><code>yas-prompt-functions</code></a>.·See·<a·href="./snippet-expansion.html">Expanding·snippets</a>.
358 </p>358 </p>
359 </div>359 </div>
360 </div>360 </div>
  
361 <div·id="outline-container-org243440c"·class="outline-2">361 <div·id="outline-container-org196b55d"·class="outline-2">
362 <h2·id="org243440c">Misc</h2>362 <h2·id="org196b55d">Misc</h2>
363 <div·class="outline-text-2"·id="text-org243440c">363 <div·class="outline-text-2"·id="text-org196b55d">
364 <p>364 <p>
365 The·"Misc"·submenu·contains·options·to·control·the·values·of·more365 The·"Misc"·submenu·contains·options·to·control·the·values·of·more
366 variables.366 variables.
367 </p>367 </p>
368 </div>368 </div>
369 </div>369 </div>
370 </div>370 </div>
6.55 KB
./usr/share/doc/elpa-yasnippet/html/snippet-organization.html
    
Offset 247, 28 lines modifiedOffset 247, 28 lines modified
247 </div>247 </div>
248 <div·id="content">248 <div·id="content">
249 <h1·class="title">Organizing·snippets</h1>249 <h1·class="title">Organizing·snippets</h1>
250 <div·id="table-of-contents">250 <div·id="table-of-contents">
251 <h2>Table·of·Contents</h2>251 <h2>Table·of·Contents</h2>
252 <div·id="text-table-of-contents">252 <div·id="text-table-of-contents">
253 <ul>253 <ul>
254 <li><a·href="#orgb713aa2">Basic·structure</a></li>254 <li><a·href="#org46f9bd2">Basic·structure</a></li>
255 <li><a·href="#org888b374">Setting·up·<code>yas-snippet-dirs</code></a></li>255 <li><a·href="#org0af25de">Setting·up·<code>yas-snippet-dirs</code></a></li>
256 <li><a·href="#orgb8b77a1">The·<code>.yas-parents</code>·file</a></li>256 <li><a·href="#org0976359">The·<code>.yas-parents</code>·file</a></li>
257 <li><a·href="#orge946475"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</a></li>257 <li><a·href="#orge23edfa"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</a></li>
258 <li><a·href="#org233b7fd">The·<code>.yas-setup.el</code>·file</a></li>258 <li><a·href="#org6991038">The·<code>.yas-setup.el</code>·file</a></li>
259 <li><a·href="#org8ddaf80">The·<code>.yas-compiled-snippet.el</code>·file</a></li>259 <li><a·href="#org7f32c3d">The·<code>.yas-compiled-snippet.el</code>·file</a></li>
260 <li><a·href="#org7bc21ba">The·<code>.yas-skip</code>·file</a></li>260 <li><a·href="#org75b8b49">The·<code>.yas-skip</code>·file</a></li>
261 </ul>261 </ul>
262 </div>262 </div>
263 </div>263 </div>
  
264 <div·id="outline-container-orgb713aa2"·class="outline-2">264 <div·id="outline-container-org46f9bd2"·class="outline-2">
265 <h2·id="orgb713aa2">Basic·structure</h2>265 <h2·id="org46f9bd2">Basic·structure</h2>
266 <div·class="outline-text-2"·id="text-orgb713aa2">266 <div·class="outline-text-2"·id="text-org46f9bd2">
267 <p>267 <p>
268 Snippet·collections·can·be·stored·in·plain·text·files.·They·are268 Snippet·collections·can·be·stored·in·plain·text·files.·They·are
269 arranged·by·sub-directories·naming·<b>snippet·tables</b>.··These·mostly269 arranged·by·sub-directories·naming·<b>snippet·tables</b>.··These·mostly
270 name·Emacs·major·mode·names.270 name·Emacs·major·mode·names.
271 </p>271 </p>
  
272 <pre·class="example">272 <pre·class="example">
Offset 286, 17 lines modifiedOffset 286, 17 lines modified
286 The·collections·are·loaded·into·<b>snippet·tables</b>·which·the286 The·collections·are·loaded·into·<b>snippet·tables</b>·which·the
287 triggering·mechanism·(see·<a·href="snippet-expansion.html">Expanding·Snippets</a>)·looks·up·and287 triggering·mechanism·(see·<a·href="snippet-expansion.html">Expanding·Snippets</a>)·looks·up·and
288 (hopefully)·causes·the·right·snippet·to·be·expanded·for·you.288 (hopefully)·causes·the·right·snippet·to·be·expanded·for·you.
289 </p>289 </p>
290 </div>290 </div>
291 </div>291 </div>
  
292 <div·id="outline-container-org888b374"·class="outline-2">292 <div·id="outline-container-org0af25de"·class="outline-2">
293 <h2·id="org888b374">Setting·up·<code>yas-snippet-dirs</code></h2>293 <h2·id="org0af25de">Setting·up·<code>yas-snippet-dirs</code></h2>
294 <div·class="outline-text-2"·id="text-org888b374">294 <div·class="outline-text-2"·id="text-org0af25de">
295 <p>295 <p>
296 The·emacs·variable·<a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·tells·YASnippet296 The·emacs·variable·<a·href="snippet-reference.html#yas-snippet-dirs"><code>yas-snippet-dirs</code></a>·tells·YASnippet
297 which·collections·to·consider.·It's·used·when·you·activate297 which·collections·to·consider.·It's·used·when·you·activate
298 <a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·or·call298 <a·href="snippet-reference.html#yas-global-mode"><code>yas-global-mode</code></a>·or·call
299 <a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>·interactively.299 <a·href="snippet-reference.html#yas-reload-all"><code>yas-reload-all</code></a>·interactively.
300 </p>300 </p>
  
Offset 330, 17 lines modifiedOffset 330, 17 lines modified
330 Collections·appearing·earlier·in·the·list·override·snippets·with·same·names330 Collections·appearing·earlier·in·the·list·override·snippets·with·same·names
331 appearing·in·collections·later·in·the·list.·<a·href="snippet-reference.html#yas-new-snippet"><code>yas-new-snippet</code></a>·always·stores331 appearing·in·collections·later·in·the·list.·<a·href="snippet-reference.html#yas-new-snippet"><code>yas-new-snippet</code></a>·always·stores
332 snippets·in·the·first·collection.332 snippets·in·the·first·collection.
333 </p>333 </p>
334 </div>334 </div>
335 </div>335 </div>
  
336 <div·id="outline-container-orgb8b77a1"·class="outline-2">336 <div·id="outline-container-org0976359"·class="outline-2">
337 <h2·id="orgb8b77a1">The·<code>.yas-parents</code>·file</h2>337 <h2·id="org0976359">The·<code>.yas-parents</code>·file</h2>
338 <div·class="outline-text-2"·id="text-orgb8b77a1">338 <div·class="outline-text-2"·id="text-org0976359">
339 <p>339 <p>
340 It's·very·useful·to·have·certain·modes·share·snippets·between340 It's·very·useful·to·have·certain·modes·share·snippets·between
341 themselves.·To·do·this,·choose·a·mode·subdirectory·and·place·a341 themselves.·To·do·this,·choose·a·mode·subdirectory·and·place·a
342 <code>.yas-parents</code>·containing·a·whitespace-separated·list·of·other·mode342 <code>.yas-parents</code>·containing·a·whitespace-separated·list·of·other·mode
343 names.·When·you·reload·those·modes·become·parents·of·the·original343 names.·When·you·reload·those·modes·become·parents·of·the·original
344 mode.344 mode.
345 </p>345 </p>
Offset 360, 17 lines modifiedOffset 360, 17 lines modified
360 ····|--·email360 ····|--·email
361 ····`--·time361 ····`--·time
362 </pre>362 </pre>
363 </div>363 </div>
364 </div>364 </div>
  
  
365 <div·id="outline-container-orge946475"·class="outline-2">365 <div·id="outline-container-orge23edfa"·class="outline-2">
366 <h2·id="orge946475"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</h2>366 <h2·id="orge23edfa"><span·class="todo·TODO">TODO</span>·The·<code>.yas-make-groups</code>·file</h2>
367 <div·class="outline-text-2"·id="text-orge946475">367 <div·class="outline-text-2"·id="text-orge23edfa">
368 <p>368 <p>
369 If·you·place·an·empty·plain·text·file·<code>.yas-make-groups</code>·inside·one369 If·you·place·an·empty·plain·text·file·<code>.yas-make-groups</code>·inside·one
370 of·the·mode·directories,·the·names·of·these·sub-directories·are370 of·the·mode·directories,·the·names·of·these·sub-directories·are
371 considered·groups·of·snippets·and·<a·href="snippet-menu.html">the·menu</a>·is·organized·much·more371 considered·groups·of·snippets·and·<a·href="snippet-menu.html">the·menu</a>·is·organized·much·more
372 cleanly:372 cleanly:
373 </p>373 </p>
  
Offset 404, 28 lines modifiedOffset 404, 28 lines modified
404 <p>404 <p>
405 Yet·another·way·to·create·a·nice·snippet·menu·is·to·write·into405 Yet·another·way·to·create·a·nice·snippet·menu·is·to·write·into
406 <code>.yas-make-groups</code>·a·menu·definition.·TODO406 <code>.yas-make-groups</code>·a·menu·definition.·TODO
407 </p>407 </p>
408 </div>408 </div>
409 </div>409 </div>
  
410 <div·id="outline-container-org233b7fd"·class="outline-2">410 <div·id="outline-container-org6991038"·class="outline-2">
411 <h2·id="org233b7fd">The·<code>.yas-setup.el</code>·file</h2>411 <h2·id="org6991038">The·<code>.yas-setup.el</code>·file</h2>
412 <div·class="outline-text-2"·id="text-org233b7fd">412 <div·class="outline-text-2"·id="text-org6991038">
413 <p>413 <p>
414 If·there·is·file·named·<code>.yas-setup.el</code>·in·a·mode's·snippet414 If·there·is·file·named·<code>.yas-setup.el</code>·in·a·mode's·snippet
415 subdirectory,·it·is·loaded·along·with·the·snippets.··Utility415 subdirectory,·it·is·loaded·along·with·the·snippets.··Utility
416 functions·used·by·the·snippets·can·be·put·here.416 functions·used·by·the·snippets·can·be·put·here.
417 </p>417 </p>
418 </div>418 </div>
419 </div>419 </div>
  
420 <div·id="outline-container-org8ddaf80"·class="outline-2">420 <div·id="outline-container-org7f32c3d"·class="outline-2">
421 <h2·id="org8ddaf80">The·<code>.yas-compiled-snippet.el</code>·file</h2>421 <h2·id="org7f32c3d">The·<code>.yas-compiled-snippet.el</code>·file</h2>
422 <div·class="outline-text-2"·id="text-org8ddaf80">422 <div·class="outline-text-2"·id="text-org7f32c3d">
423 <p>423 <p>
424 You·may·compile·a·top-level·snippet·directory·with·the424 You·may·compile·a·top-level·snippet·directory·with·the
425 <code>yas-compile-directory</code>·function,·which·will·create·a425 <code>yas-compile-directory</code>·function,·which·will·create·a
426 <code>.yas-compiled-snippets.el</code>·file·under·each·mode·subdirectory,426 <code>.yas-compiled-snippets.el</code>·file·under·each·mode·subdirectory,
427 which·contains·definitions·for·all·snippets·in·the·subdirectory.427 which·contains·definitions·for·all·snippets·in·the·subdirectory.
428 Compilation·helps·improve·loading·time.428 Compilation·helps·improve·loading·time.
429 </p>429 </p>
Offset 433, 17 lines modifiedOffset 433, 17 lines modified
433 <p>433 <p>
434 Alternatively,·you·may·compile·all·directories·in·the·list434 Alternatively,·you·may·compile·all·directories·in·the·list
435 <code>yas-snippet-dirs</code>·with·the·<code>yas-recompile-all</code>·function.435 <code>yas-snippet-dirs</code>·with·the·<code>yas-recompile-all</code>·function.
436 </p>436 </p>
437 </div>437 </div>
438 </div>438 </div>
  
439 <div·id="outline-container-org7bc21ba"·class="outline-2">439 <div·id="outline-container-org75b8b49"·class="outline-2">
440 <h2·id="org7bc21ba">The·<code>.yas-skip</code>·file</h2>440 <h2·id="org75b8b49">The·<code>.yas-skip</code>·file</h2>
441 <div·class="outline-text-2"·id="text-org7bc21ba">441 <div·class="outline-text-2"·id="text-org75b8b49">
442 <p>442 <p>
443 A·<code>.yas-skip</code>·file·in·a·mode's·snippet·subdirectory·tells·YASnippet443 A·<code>.yas-skip</code>·file·in·a·mode's·snippet·subdirectory·tells·YASnippet
444 not·to·load·snippets·from·there.444 not·to·load·snippets·from·there.
445 </p>445 </p>
446 </div>446 </div>
Max diff block lines reached; 8/6582 bytes (0.12%) of diff not shown.
73.1 KB
./usr/share/doc/elpa-yasnippet/html/snippet-reference.html
    
Offset 247, 15 lines modifiedOffset 247, 15 lines modified
247 </div>247 </div>
248 <div·id="content">248 <div·id="content">
249 <h1·class="title">Reference</h1>249 <h1·class="title">Reference</h1>
250 <div·id="table-of-contents">250 <div·id="table-of-contents">
251 <h2>Table·of·Contents</h2>251 <h2>Table·of·Contents</h2>
252 <div·id="text-table-of-contents">252 <div·id="text-table-of-contents">
253 <ul>253 <ul>
254 <li><a·href="#orga5cb65d">Interactive·functions</a>254 <li><a·href="#org8a517f0">Interactive·functions</a>
255 <ul>255 <ul>
256 <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>256 <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>
257 <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>257 <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>
258 <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>258 <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>
259 <li><a·href="#yas-global-mode"><code·class='function'>yas-global-mode</code>·(<i>&amp;optional</i>·<code>arg</code>)</a></li>259 <li><a·href="#yas-global-mode"><code·class='function'>yas-global-mode</code>·(<i>&amp;optional</i>·<code>arg</code>)</a></li>
260 <li><a·href="#yas-recompile-all"><code·class='function'>yas-recompile-all</code>·()</a></li>260 <li><a·href="#yas-recompile-all"><code·class='function'>yas-recompile-all</code>·()</a></li>
261 <li><a·href="#yas-visit-snippet-file"><code·class='function'>yas-visit-snippet-file</code>·()</a></li>261 <li><a·href="#yas-visit-snippet-file"><code·class='function'>yas-visit-snippet-file</code>·()</a></li>
Offset 281, 15 lines modifiedOffset 281, 15 lines modified
281 <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>281 <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>
282 <li><a·href="#yas-compile-directory"><code·class='function'>yas-compile-directory</code>·(<code>top-level-dir</code>)</a></li>282 <li><a·href="#yas-compile-directory"><code·class='function'>yas-compile-directory</code>·(<code>top-level-dir</code>)</a></li>
283 <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>283 <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>
284 <li><a·href="#yas-describe-table-by-namehash"><code·class='function'>yas-describe-table-by-namehash</code>·()</a></li>284 <li><a·href="#yas-describe-table-by-namehash"><code·class='function'>yas-describe-table-by-namehash</code>·()</a></li>
285 <li><a·href="#yas-tryout-snippet"><code·class='function'>yas-tryout-snippet</code>·(<i>&amp;optional</i>·<code>debug</code>)</a></li>285 <li><a·href="#yas-tryout-snippet"><code·class='function'>yas-tryout-snippet</code>·(<i>&amp;optional</i>·<code>debug</code>)</a></li>
286 </ul>286 </ul>
287 </li>287 </li>
288 <li><a·href="#org344f539">Customization·variables</a>288 <li><a·href="#orgeae64ba">Customization·variables</a>
289 <ul>289 <ul>
290 <li><a·href="#yas-expand-only-for-last-commands"><code·class='variable'>yas-expand-only-for-last-commands</code></a></li>290 <li><a·href="#yas-expand-only-for-last-commands"><code·class='variable'>yas-expand-only-for-last-commands</code></a></li>
291 <li><a·href="#yas-wrap-around-region"><code·class='variable'>yas-wrap-around-region</code></a></li>291 <li><a·href="#yas-wrap-around-region"><code·class='variable'>yas-wrap-around-region</code></a></li>
292 <li><a·href="#yas-new-snippet-default"><code·class='variable'>yas-new-snippet-default</code></a></li>292 <li><a·href="#yas-new-snippet-default"><code·class='variable'>yas-new-snippet-default</code></a></li>
293 <li><a·href="#yas-choose-keys-first"><code·class='variable'>yas-choose-keys-first</code></a></li>293 <li><a·href="#yas-choose-keys-first"><code·class='variable'>yas-choose-keys-first</code></a></li>
294 <li><a·href="#yas-triggers-in-field"><code·class='variable'>yas-triggers-in-field</code></a></li>294 <li><a·href="#yas-triggers-in-field"><code·class='variable'>yas-triggers-in-field</code></a></li>
295 <li><a·href="#yas-use-menu"><code·class='variable'>yas-use-menu</code></a></li>295 <li><a·href="#yas-use-menu"><code·class='variable'>yas-use-menu</code></a></li>
Offset 304, 15 lines modifiedOffset 304, 15 lines modified
304 <li><a·href="#yas-trigger-symbol"><code·class='variable'>yas-trigger-symbol</code></a></li>304 <li><a·href="#yas-trigger-symbol"><code·class='variable'>yas-trigger-symbol</code></a></li>
305 <li><a·href="#yas-also-indent-empty-lines"><code·class='variable'>yas-also-indent-empty-lines</code></a></li>305 <li><a·href="#yas-also-indent-empty-lines"><code·class='variable'>yas-also-indent-empty-lines</code></a></li>
306 <li><a·href="#yas-also-auto-indent-first-line"><code·class='variable'>yas-also-auto-indent-first-line</code></a></li>306 <li><a·href="#yas-also-auto-indent-first-line"><code·class='variable'>yas-also-auto-indent-first-line</code></a></li>
307 <li><a·href="#yas-indent-line"><code·class='variable'>yas-indent-line</code></a></li>307 <li><a·href="#yas-indent-line"><code·class='variable'>yas-indent-line</code></a></li>
308 <li><a·href="#yas-alias-to-yas/prefix-p"><code·class='variable'>yas-alias-to-yas/prefix-p</code></a></li>308 <li><a·href="#yas-alias-to-yas/prefix-p"><code·class='variable'>yas-alias-to-yas/prefix-p</code></a></li>
309 </ul>309 </ul>
310 </li>310 </li>
311 <li><a·href="#org4de718b">Useful·functions</a>311 <li><a·href="#org4ca789d">Useful·functions</a>
312 <ul>312 <ul>
313 <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>313 <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>
314 <li><a·href="#yas-define-snippets"><code·class='function'>yas-define-snippets</code>·(<code>mode</code>·<code>snippets</code>)</a></li>314 <li><a·href="#yas-define-snippets"><code·class='function'>yas-define-snippets</code>·(<code>mode</code>·<code>snippets</code>)</a></li>
315 <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>315 <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>
316 <li><a·href="#yas-inside-string"><code·class='function'>yas-inside-string</code>·()</a></li>316 <li><a·href="#yas-inside-string"><code·class='function'>yas-inside-string</code>·()</a></li>
317 <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>317 <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>
318 <li><a·href="#yas-x-prompt"><code·class='function'>yas-x-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&amp;optional</i>·<code>display-fn</code>)</a></li>318 <li><a·href="#yas-x-prompt"><code·class='function'>yas-x-prompt</code>·(<code>prompt</code>·<code>choices</code>·<i>&amp;optional</i>·<code>display-fn</code>)</a></li>
Offset 345, 15 lines modifiedOffset 345, 15 lines modified
345 <li><a·href="#yas-default-from-field"><code·class='function'>yas-default-from-field</code>·(<code>number</code>)</a></li>345 <li><a·href="#yas-default-from-field"><code·class='function'>yas-default-from-field</code>·(<code>number</code>)</a></li>
346 <li><a·href="#yas-key-to-value"><code·class='function'>yas-key-to-value</code>·(<code>alist</code>)</a></li>346 <li><a·href="#yas-key-to-value"><code·class='function'>yas-key-to-value</code>·(<code>alist</code>)</a></li>
347 <li><a·href="#yas-throw"><code·class='function'>yas-throw</code>·(<code>text</code>)</a></li>347 <li><a·href="#yas-throw"><code·class='function'>yas-throw</code>·(<code>text</code>)</a></li>
348 <li><a·href="#yas-hippie-try-expand"><code·class='function'>yas-hippie-try-expand</code>·(<code>first-time?</code>)</a></li>348 <li><a·href="#yas-hippie-try-expand"><code·class='function'>yas-hippie-try-expand</code>·(<code>first-time?</code>)</a></li>
349 <li><a·href="#yas-maybe-load-snippet-buffer"><code·class='function'>yas-maybe-load-snippet-buffer</code>·()</a></li>349 <li><a·href="#yas-maybe-load-snippet-buffer"><code·class='function'>yas-maybe-load-snippet-buffer</code>·()</a></li>
350 </ul>350 </ul>
351 </li>351 </li>
352 <li><a·href="#orga3c2def">Useful·variables</a>352 <li><a·href="#org76463e5">Useful·variables</a>
353 <ul>353 <ul>
354 <li><a·href="#yas-key-syntaxes"><code·class='variable'>yas-key-syntaxes</code></a></li>354 <li><a·href="#yas-key-syntaxes"><code·class='variable'>yas-key-syntaxes</code></a></li>
355 <li><a·href="#yas-modified-p"><code·class='variable'>yas-modified-p</code></a></li>355 <li><a·href="#yas-modified-p"><code·class='variable'>yas-modified-p</code></a></li>
356 <li><a·href="#yas-dont-activate-functions"><code·class='variable'>yas-dont-activate-functions</code></a></li>356 <li><a·href="#yas-dont-activate-functions"><code·class='variable'>yas-dont-activate-functions</code></a></li>
357 <li><a·href="#yas-before-expand-snippet-hook"><code·class='variable'>yas-before-expand-snippet-hook</code></a></li>357 <li><a·href="#yas-before-expand-snippet-hook"><code·class='variable'>yas-before-expand-snippet-hook</code></a></li>
358 <li><a·href="#yas-maybe-skip-and-clear-field"><code·class='variable'>yas-maybe-skip-and-clear-field</code></a></li>358 <li><a·href="#yas-maybe-skip-and-clear-field"><code·class='variable'>yas-maybe-skip-and-clear-field</code></a></li>
359 <li><a·href="#yas-keymap"><code·class='variable'>yas-keymap</code></a></li>359 <li><a·href="#yas-keymap"><code·class='variable'>yas-keymap</code></a></li>
Offset 374, 20 lines modifiedOffset 374, 20 lines modified
374 <li><a·href="#yas-global-mode-buffers"><code·class='variable'>yas-global-mode-buffers</code></a></li>374 <li><a·href="#yas-global-mode-buffers"><code·class='variable'>yas-global-mode-buffers</code></a></li>
375 </ul>375 </ul>
376 </li>376 </li>
377 </ul>377 </ul>
378 </div>378 </div>
379 </div>379 </div>
  
380 <div·id="outline-container-orga5cb65d"·class="outline-2">380 <div·id="outline-container-org8a517f0"·class="outline-2">
381 <h2·id="orga5cb65d">Interactive·functions</h2>381 <h2·id="org8a517f0">Interactive·functions</h2>
382 <div·class="outline-text-2"·id="text-orga5cb65d">382 <div·class="outline-text-2"·id="text-org8a517f0">
383 </div>383 </div>
384 <div·id="outline-container-orgbbdfcae"·class="outline-3">384 <div·id="outline-container-org770d5cf"·class="outline-3">
385 <h3·id="yas-load-snippet-buffer-and-close"><a·id="orgbbdfcae"></a><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&amp;optional</i>·<code>kill</code>)</h3>385 <h3·id="yas-load-snippet-buffer-and-close"><a·id="org770d5cf"></a><code·class='function'>yas-load-snippet-buffer-and-close</code>·(<code>table</code>·<i>&amp;optional</i>·<code>kill</code>)</h3>
386 <div·class="outline-text-3"·id="text-yas-load-snippet-buffer-and-close">386 <div·class="outline-text-3"·id="text-yas-load-snippet-buffer-and-close">
387 <p>387 <p>
388 Load·and·save·the·snippet,·then·<code>quit-window</code>·if·saved.388 Load·and·save·the·snippet,·then·<code>quit-window</code>·if·saved.
389 Loading·is·performed·by·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>.··If·the389 Loading·is·performed·by·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>.··If·the
390 snippet·is·new,·ask·the·user·whether·(and·where)·to·save·it.··If390 snippet·is·new,·ask·the·user·whether·(and·where)·to·save·it.··If
391 the·snippet·already·has·a·file,·just·save·it.391 the·snippet·already·has·a·file,·just·save·it.
392 </p>392 </p>
Offset 399, 16 lines modifiedOffset 399, 16 lines modified
399 <p>399 <p>
400 Don't·use·this·from·a·Lisp·program,·call·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>400 Don't·use·this·from·a·Lisp·program,·call·<a·href="#yas-load-snippet-buffer"><code>yas-load-snippet-buffer</code></a>
401 and·<code>kill-buffer</code>·instead.401 and·<code>kill-buffer</code>·instead.
402 </p>402 </p>
403 </div>403 </div>
404 </div>404 </div>
  
405 <div·id="outline-container-orgc965c55"·class="outline-3">405 <div·id="outline-container-org46cfba1"·class="outline-3">
406 <h3·id="yas-expand-from-trigger-key"><a·id="orgc965c55"></a><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>406 <h3·id="yas-expand-from-trigger-key"><a·id="org46cfba1"></a><code·class='function'>yas-expand-from-trigger-key</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>
407 <div·class="outline-text-3"·id="text-yas-expand-from-trigger-key">407 <div·class="outline-text-3"·id="text-yas-expand-from-trigger-key">
408 <p>408 <p>
409 Expand·a·snippet·before·point.409 Expand·a·snippet·before·point.
410 </p>410 </p>
  
411 <p>411 <p>
412 If·no·snippet·expansion·is·possible,·fall·back·to·the·behaviour412 If·no·snippet·expansion·is·possible,·fall·back·to·the·behaviour
Offset 418, 29 lines modifiedOffset 418, 29 lines modified
418 <p>418 <p>
419 Optional·argument·<code>field</code>·is·for·non-interactive·use·and·is·an419 Optional·argument·<code>field</code>·is·for·non-interactive·use·and·is·an
420 object·satisfying·<code>yas--field-p</code>·to·restrict·the·expansion·to.420 object·satisfying·<code>yas--field-p</code>·to·restrict·the·expansion·to.
421 </p>421 </p>
422 </div>422 </div>
423 </div>423 </div>
  
424 <div·id="outline-container-org606e123"·class="outline-3">424 <div·id="outline-container-org2989a22"·class="outline-3">
425 <h3·id="yas-skip-and-clear-or-delete-char"><a·id="org606e123"></a><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>425 <h3·id="yas-skip-and-clear-or-delete-char"><a·id="org2989a22"></a><code·class='function'>yas-skip-and-clear-or-delete-char</code>·(<i>&amp;optional</i>·<code>field</code>)</h3>
426 <div·class="outline-text-3"·id="text-yas-skip-and-clear-or-delete-char">426 <div·class="outline-text-3"·id="text-yas-skip-and-clear-or-delete-char">
427 <p>427 <p>
428 Clears·unmodified·field·if·at·field·start,·skips·to·next·tab.428 Clears·unmodified·field·if·at·field·start,·skips·to·next·tab.
429 </p>429 </p>
  
430 <p>430 <p>
431 Otherwise·deletes·a·character·normally·by·calling·<code>delete-char</code>.431 Otherwise·deletes·a·character·normally·by·calling·<code>delete-char</code>.
432 </p>432 </p>
433 </div>433 </div>
434 </div>434 </div>
  
435 <div·id="outline-container-org419030f"·class="outline-3">435 <div·id="outline-container-org59bb188"·class="outline-3">
436 <h3·id="yas-global-mode"><a·id="org419030f"></a><code·class='function'>yas-global-mode</code>·(<i>&amp;optional</i>·<code>arg</code>)</h3>436 <h3·id="yas-global-mode"><a·id="org59bb188"></a><code·class='function'>yas-global-mode</code>·(<i>&amp;optional</i>·<code>arg</code>)</h3>
437 <div·class="outline-text-3"·id="text-yas-global-mode">437 <div·class="outline-text-3"·id="text-yas-global-mode">
438 <p>438 <p>
439 Toggle·Yas·minor·mode·in·all·buffers.439 Toggle·Yas·minor·mode·in·all·buffers.
Max diff block lines reached; 65432/74706 bytes (87.59%) of diff not shown.