]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
9 years agoenforce use of spaces for indentation
Jonas Bernoulli [Sun, 7 Sep 2014 12:08:30 +0000 (14:08 +0200)]
enforce use of spaces for indentation

9 years agoyasnippet-debug.el: quiet byte-compiler
Jonas Bernoulli [Sat, 6 Sep 2014 23:42:27 +0000 (01:42 +0200)]
yasnippet-debug.el: quiet byte-compiler

9 years agomove eof footer to the actual eof
Jonas Bernoulli [Sat, 6 Sep 2014 23:41:16 +0000 (01:41 +0200)]
move eof footer to the actual eof

9 years agoCloses #508: Ensure original point when evaluating conditions
João Távora [Thu, 21 Aug 2014 07:38:46 +0000 (08:38 +0100)]
Closes #508: Ensure original point when evaluating conditions

* yasnippet.el (yas--templates-for-key-at-point): Call
`yas--fetch', and hence condition system, with point in the
original position.

9 years agoCloses #495: Allow symbols as aliases in `yas-snippet-dirs'
João Távora [Wed, 20 Aug 2014 20:48:41 +0000 (21:48 +0100)]
Closes #495: Allow symbols as aliases in `yas-snippet-dirs'

* yasnippet.el (yas-installed-snippets-dir): New parameter. Set at
load time from `load-file-name'.
(yas--load-file-name): Removed.
(yas-snippet-dirs): Update docstring. Default value has symbol
`yas-installed-snippets-dir' as an alias to any bundled snippets.
(yas-snippet-dirs): Redesign for new `yas-snippet-dirs' semantics.

9 years agoCloses #504: Correctly discover buffers needing snippets immediately
João Távora [Wed, 20 Aug 2014 20:29:32 +0000 (21:29 +0100)]
Closes #504: Correctly discover  buffers needing snippets immediately

* yasnippet-tests.el (issue-504-tricky-jit): New test.

* yasnippet.el (yas-load-directory): Use a new `impatient-buffers'
local and call `yas--load-pending-juts' in all those at the end.

* yasnippet.el (cl-lib): Don't need `eval-and-compile'.

9 years agoPrevent disabling errors from recent `yas-current-syntaxes` logic
João Távora [Wed, 20 Aug 2014 19:23:00 +0000 (20:23 +0100)]
Prevent disabling errors from recent `yas-current-syntaxes` logic

* yasnippet.el (yas--templates-for-key-at-point): Don't error
since this function is called very frequently on TAB. Use new
`yas--warning'.
(yas--warning): New function.

9 years agoMerge pull request #503 from npostavs/key-syntaxes
João Távora [Sun, 10 Aug 2014 23:26:29 +0000 (00:26 +0100)]
Merge pull request #503 from npostavs/key-syntaxes

More yas-key-syntaxes functions

9 years agoFix edge case in yas-longest-key-from-whitespace
Noam Postavsky [Sun, 10 Aug 2014 17:29:25 +0000 (13:29 -0400)]
Fix edge case in yas-longest-key-from-whitespace

* yasnippet.el (yas-longest-key-from-whitespace): don't try again if
  start-point is on whitespace.
* yasnippet-tests.el (complicated-yas-key-syntaxes): check edge case.

9 years agoFix yas-key-syntaxes example functions docstrings.
Noam Postavsky [Sun, 10 Aug 2014 17:13:45 +0000 (13:13 -0400)]
Fix yas-key-syntaxes example functions docstrings.

* yasnippet.el (yas-try-key-from-whitespace),
  (yas-shortest-key-until-whitespace),
  (yas-longest-key-from-whitespace): docstring describes the effect, not
  implementation.

9 years agoAdd yas-longest-key-from-whitespace
Noam Postavsky [Sun, 10 Aug 2014 17:07:43 +0000 (13:07 -0400)]
Add yas-longest-key-from-whitespace

Example yas-key-syntaxes function.

* yasnippet.el (yas-longest-key-from-whitespace): new function.
* yasnippet-tests.el (complicated-yas-key-syntaxes): test it.

9 years agoPass start point to yas-key-syntaxes functions
Noam Postavsky [Sun, 10 Aug 2014 16:52:52 +0000 (12:52 -0400)]
Pass start point to yas-key-syntaxes functions

* yasnippet-tests.el (complicated-yas-key-syntaxes): accept argument.
* yasnippet.el (yas-try-key-from-whitespace): accept argument.
  (yas-shortest-key-until-whitespace): accept argument.
  (yas--templates-for-key-at-point): pass start point the methods.
  (yas-key-syntaxes): update docstring.

9 years agoAdd yas-shortest-key-until-whitespace
Noam Postavsky [Sun, 10 Aug 2014 16:47:22 +0000 (12:47 -0400)]
Add yas-shortest-key-until-whitespace

Example yas-key-syntaxes function.

* yasnippet.el (yas-shortest-key-until-whitespace): new function.
* yasnippet-tests.el (complicated-yas-key-syntaxes): test it.

9 years agoCloses #470, handle non-whitespace newlines
Noam Postavsky [Sun, 10 Aug 2014 16:21:47 +0000 (12:21 -0400)]
Closes #470, handle non-whitespace newlines

Many modes put newlines in comment ender class because they have line
comments.

* yasnippet.el (yas-try-key-from-whitespace): new function.
(yas-key-syntaxes): use it in place of "^ ".
* yasnippet-tests.el (complicated-yas-key-syntaxes): test it.

9 years ago* yasnippet.el (yas-key-syntaxes): Improve documentation.
João Távora [Tue, 29 Jul 2014 19:40:09 +0000 (20:40 +0100)]
* yasnippet.el (yas-key-syntaxes): Improve documentation.

9 years agoCloses #497: Allow functions as elements in yas-key-syntaxes
João Távora [Tue, 29 Jul 2014 00:19:58 +0000 (01:19 +0100)]
Closes #497: Allow functions as elements in yas-key-syntaxes

* yasnippet.el (yas--templates-for-key-at-point): Renamed from
`yas--current-key'.
(yas-key-syntaxes): Overhaul documentation.
(yas-expand-from-trigger-key): Use
`yas--templates-for-key-at-point'.

* yasnippet-tests.el (complicated-yas-key-syntaxes): New test.
(yas-should-expand, yas-should-not-expand): Friendlier failure
message.

9 years agoCloses #492, closes #494: Consider defalias when calculating parent modes
João Távora [Mon, 28 Jul 2014 10:37:46 +0000 (11:37 +0100)]
Closes #492, closes #494: Consider defalias when calculating parent modes

* yasnippet-tests.el (issue-492-and-494): New test.

* yasnippet.el (yas--modes-to-activate): Consider each mode's
symbol-function as a neighbour in case it's a symbol as well.

9 years agoMerge pull request #493 from npostavs/ijit
João Távora [Sun, 20 Jul 2014 22:34:00 +0000 (23:34 +0100)]
Merge pull request #493 from npostavs/ijit

Allow jit loading interactively

9 years agoAllow jit loading interactively
Noam Postavsky [Sat, 19 Jul 2014 14:47:48 +0000 (10:47 -0400)]
Allow jit loading interactively

* yasnippet.el (yas-reload-all, yas-load-directory): let a prefix
  argument indicate jit loading.

9 years agoMake snippets submodule track master, update it
Noam Postavsky [Tue, 17 Jun 2014 23:40:55 +0000 (19:40 -0400)]
Make snippets submodule track master, update it

This should let us update the submodule just by running
    git submodule update --remote
rather than having to cd into it, and then pull.

9 years agoReplace text -> yas-text in documentation
Noam Postavsky [Tue, 17 Jun 2014 23:21:22 +0000 (19:21 -0400)]
Replace text -> yas-text in documentation

* doc/snippet-development.org: replace text -> yas-text

10 years agoCloses #474: fix more cc-mode font-lock conflicts
Noam Postavsky [Wed, 14 May 2014 23:49:11 +0000 (19:49 -0400)]
Closes #474: fix more cc-mode font-lock conflicts

* yasnippet-tests.el (example-for-issue-474): Don't call insert from
  within backquotes, it's redundant and prevents proper testing of
  backquote expansion.

* yasnippet.el (yas--restore-backquotes, yas--save-backquotes): Ensure
  the buffer isn't narrowed while modifying it to avoid conflicting with
  cc-mode fontification.

10 years agoFix publishing with org 7.9
Noam Postavsky [Sun, 11 May 2014 20:58:01 +0000 (16:58 -0400)]
Fix publishing with org 7.9

* doc/yas-doc-helper.el: Only use org-html-publish-to-html when it's
  fbound.

10 years agoDocument type directive
Noam Postavsky [Sat, 10 May 2014 22:51:45 +0000 (18:51 -0400)]
Document type directive

* doc/snippet-development.org: Add type to directive list.

10 years agoDocument uuid directive
Noam Postavsky [Sat, 10 May 2014 20:28:09 +0000 (16:28 -0400)]
Document uuid directive

* doc/snippet-development.org: Mention uuid in directive list.
* yasnippet.el (yas-define-snippets): Fix docstring grammar.

10 years agoRestore backquotes lost in rst -> org translation
Noam Postavsky [Sat, 10 May 2014 18:07:58 +0000 (14:07 -0400)]
Restore backquotes lost in rst -> org translation

* doc/snippet-development.org: Re-add lost `s.

10 years agoRemove type, expand-env from new snippet value
Noam Postavsky [Sat, 10 May 2014 22:48:37 +0000 (18:48 -0400)]
Remove type, expand-env from new snippet value

They are seldom used, and can cause errors if left in.

* yasnippet.el (yas-new-snippet-default): Remove type and expand-env
  directives.

10 years agoDon't lose error message when yas-good-grace is t
Noam Postavsky [Sat, 10 May 2014 23:01:32 +0000 (19:01 -0400)]
Don't lose error message when yas-good-grace is t

* yasnippet.el
  (yas--eval-lisp-no-saves): Pass error message to message function.
  (yas--handle-error): Pass "%s" to error to avoid accidentally
  interpreting % in the error message as format codes.

10 years agoRefactor yas-good-grace error handling
Noam Postavsky [Sat, 10 May 2014 19:56:36 +0000 (15:56 -0400)]
Refactor yas-good-grace error handling

* yasnippet.el
(yas--handle-error): New function.
(yas--eval-lisp-no-saves, yas--eval-lisp): Use it.

10 years agoMerge pull request #476 from npostavs/cc-fontify2
João Távora [Sun, 27 Apr 2014 19:24:12 +0000 (20:24 +0100)]
Merge pull request #476 from npostavs/cc-fontify2

Avoid changing buffer while narrowed

10 years agoCloses #474: fix cc-mode fontification conflict
Noam Postavsky [Sat, 26 Apr 2014 23:26:54 +0000 (19:26 -0400)]
Closes #474: fix cc-mode fontification conflict

* yasnippet.el (yas--save-backquotes): don't change buffer while
narrowed.

10 years agoNew test for cc-mode's fontification functions
Noam Postavsky [Sat, 26 Apr 2014 23:09:57 +0000 (19:09 -0400)]
New test for cc-mode's fontification functions

This issue requires font locking to trigger. This can be be done by
let-binding noninteractive to nil and using a buffer name that doesn't
start with a space, instead of the external emacs hack which is now
redundant.

* yasnippet-tests.el (yas--with-font-locked-temp-buffer): new macro
similar to with-temp-buffer but enables font-lock-mode even in -batch
mode.
(example-for-issue-474): new test
(example-for-issue-404, example-for-issue-404-c-mode): use new macro
(example-for-issue-404-external-emacs): removed

10 years agoSimpler, more effective .travis file
João Távora [Sun, 27 Apr 2014 00:49:12 +0000 (01:49 +0100)]
Simpler, more effective .travis file

* .travis.yml (env): New section.
(install): Simpler install recipes.
(script): Just rake compile and rake tests.

10 years agoMerge pull request #473 from npostavs/org8
João Távora [Mon, 24 Mar 2014 00:29:14 +0000 (00:29 +0000)]
Merge pull request #473 from npostavs/org8

update doc for org 8.x

10 years agoupdate doc for org 8.x
Noam Postavsky [Sun, 23 Mar 2014 23:44:35 +0000 (19:44 -0400)]
update doc for org 8.x

Keeping compabitily with 7.9 for now

10 years agoCloses #403: more uniform behaviour for `yas-use-menu'
Joao Tavora [Fri, 14 Mar 2014 09:55:22 +0000 (09:55 +0000)]
Closes #403: more uniform behaviour for `yas-use-menu'

Suggested by Noam Postavsky, this uses the :visible arg to
`easy-menu-define' to hide the whole "YASnippet" menu according to the
run-time value of `yas-use-menu'. Previously, only the load-time value
was considered and some functions we're noops when `yas-use-menu' was
nil.

The per-mode snippet submenus are now always updated even if
`yas-use-menu' is nil, although they won't be shown until it becomes
non-nil.

* yasnippet.el (yas--minor-mode-menu): Use :visible arg and eval `yas-use-menu'
(yas--update-template): Always update the menu.
(yas--show-menu-p): Always return t if `yas-use-menu' is non-nil and not `abbreviate'
(yas-define-menu): Always define a menu.
(yas-use-menu): Update docstring.

10 years agoProperly closes #469: Don't use `yas--init-minor-keymap'
João Távora [Thu, 13 Mar 2014 20:24:11 +0000 (20:24 +0000)]
Properly closes #469: Don't use `yas--init-minor-keymap'

Previous reverted commit 498cbe4 forgot to take into account that one
of the tests used the `yas--init-minor-keymap' function that was
removed.

* yasnippet.el (yas-use-menu): Don't allow `nil' value, it's
useless.
(yas--minor-mode-menu): Use top-level `easy-menu-define' form.
(yas--init-minor-keymap): Remove definition.

* yasnippet-tests.el (test-rebindings): Don't use
`yas--init-minor-keymap'. Restore bindings explicitly. Not ideal,
but should work.

10 years agoRevert "Closes #469: Don't use `yas--init-minor-keymap'"
Joao Tavora [Thu, 13 Mar 2014 19:23:05 +0000 (20:23 +0100)]
Revert "Closes #469: Don't use `yas--init-minor-keymap'"

This reverts commit 498cbe4138d74f39f7447acc9de456291c639724.

10 years agoCloses #469: Don't use `yas--init-minor-keymap'
Joao Tavora [Thu, 13 Mar 2014 19:04:05 +0000 (19:04 +0000)]
Closes #469: Don't use `yas--init-minor-keymap'

* yasnippet.el (yas-use-menu): Don't allow `nil' value, it's
useless.
(yas--minor-mode-menu): Use top-level `easy-menu-define' form.
(yas--init-minor-keymap): Remove definition.

10 years agoMerge pull request #466 from npostavs/no-reverse
João Távora [Thu, 6 Mar 2014 08:05:53 +0000 (08:05 +0000)]
Merge pull request #466 from npostavs/no-reverse

Avoid double choices reversing

10 years agoremove yas--x-pretty-prompt-templates
Noam Postavsky [Thu, 6 Mar 2014 03:38:46 +0000 (22:38 -0500)]
remove yas--x-pretty-prompt-templates

10 years agoyas-x-prompt: remove dead code
Noam Postavsky [Wed, 5 Mar 2014 02:46:05 +0000 (21:46 -0500)]
yas-x-prompt: remove dead code

10 years agodisplay-fn isn't actually used for filtering
Noam Postavsky [Mon, 3 Mar 2014 23:20:47 +0000 (18:20 -0500)]
display-fn isn't actually used for filtering

10 years agoRemove an obsolete hack notice
Joao Tavora [Mon, 3 Mar 2014 08:53:20 +0000 (08:53 +0000)]
Remove an obsolete hack notice

* yasnippet.el (yas-x-prompt): Remove hack notice.

10 years agoRemove experimental Changelog file
Joao Tavora [Mon, 3 Mar 2014 08:53:04 +0000 (08:53 +0000)]
Remove experimental Changelog file

The Changelog format is good but having a file for it is not. The same
format can be had in messages by having using vc-dir and C-x 4 a. A
temporary dummy changelog appears and that content goes to the git log
message, which is just as good in content and much better in form.

10 years agoavoid double choices reversing
Noam Postavsky [Sun, 2 Mar 2014 16:18:54 +0000 (11:18 -0500)]
avoid double choices reversing

Both yas-choose-value the yas-prompt-functions were reversing
values (cancelling each other out), instead just keep the choices in
order the whole time.

10 years agoMerge pull request #464 from kidd/master
João Távora [Thu, 27 Feb 2014 15:03:37 +0000 (15:03 +0000)]
Merge pull request #464 from kidd/master

yasnippet templates don't add newlines

10 years agoyasnippet templates don't add newlines
Raimon Grau [Thu, 27 Feb 2014 11:34:55 +0000 (12:34 +0100)]
yasnippet templates don't add newlines

10 years agoupdate snippets submodule
Noam Postavsky [Sun, 23 Feb 2014 20:02:37 +0000 (15:02 -0500)]
update snippets submodule

10 years agoAdd `yas-after-reload-hook' and run it at the end of `yas-reload-all'
Joao Tavora [Mon, 6 Jan 2014 18:03:11 +0000 (18:03 +0000)]
Add `yas-after-reload-hook' and run it at the end of `yas-reload-all'

See https://github.com/pezra/rspec-mode/pull/75 for the discussion leading up to
this change.

10 years agoSync git submodule for yasmate repo
Xiao Hanyu [Tue, 31 Dec 2013 06:52:02 +0000 (14:52 +0800)]
Sync git submodule for yasmate repo

10 years agoAdd Travis CI and update tests. Start a Changelog.
Joao Tavora [Tue, 31 Dec 2013 15:33:20 +0000 (15:33 +0000)]
Add Travis CI and update tests. Start a Changelog.

* .travis.yml: new file

* README.mdown: Add Travis CI badge.

* Rakefile: use ert-run-tests-batch-and-exit.

* yasnippet-tests.el (example-for-issue-404-external-emacs): Use
`yas-with-snippet-dirs' to not depend on bundled snippets.
(yas--call-with-temporary-redefinitions): Use `cl-labels' since no
cl-flet in emacs-24.3's cl-lib.el.
(loading-with-cyclic-parenthood): prog-mode doesn't exist in emacs
24.3.
(yas-batch-run-tests): remove it.

* yasnippet.el (require): require cl-lib during byte-compilation
and load.

10 years agoMerge pull request #449 from nibua-r/https-submodules
João Távora [Thu, 26 Dec 2013 19:38:51 +0000 (11:38 -0800)]
Merge pull request #449 from nibua-r/https-submodules

Use https instead of ssh for submodules access

10 years agoyas--document-symbol: fix no transform case
Noam Postavsky [Tue, 24 Dec 2013 16:49:24 +0000 (11:49 -0500)]
yas--document-symbol: fix no transform case

was causing YASnippetnippet

10 years agoyas--document-symbols: respect level arg, raise to 1
Noam Postavsky [Tue, 24 Dec 2013 16:36:16 +0000 (11:36 -0500)]
yas--document-symbols: respect level arg, raise to 1

10 years agoRakefile: don't fail with EMACS=t env setting
Noam Postavsky [Tue, 24 Dec 2013 16:27:57 +0000 (11:27 -0500)]
Rakefile: don't fail with EMACS=t env setting

This lets it work from M-x shell.

10 years agoadd a link to the symbol reference in top menu
Noam Postavsky [Tue, 24 Dec 2013 16:14:57 +0000 (11:14 -0500)]
add a link to the symbol reference in top menu

10 years agofix typo
Noam Postavsky [Tue, 24 Dec 2013 16:14:39 +0000 (11:14 -0500)]
fix typo

10 years agoCloses #447: only call command beyond yasnippet if it exists
Joao Tavora [Tue, 24 Dec 2013 09:43:56 +0000 (09:43 +0000)]
Closes #447: only call command beyond yasnippet if it exists

10 years agoUse https instead of ssh for submodules access
Renaud AUBIN [Tue, 24 Dec 2013 08:57:30 +0000 (09:57 +0100)]
Use https instead of ssh for submodules access

To enable direct access through a proxy, the submodules url definitions
need to use https instead of ssh.

10 years agoMerge pull request #442 from npostavs/auto-export
João Távora [Mon, 23 Dec 2013 10:44:24 +0000 (02:44 -0800)]
Merge pull request #442 from npostavs/auto-export

populate yas--exported-syms based on sym prefix

10 years agoMerge pull request #446 from dongxiong/patch-2
João Távora [Fri, 20 Dec 2013 11:12:02 +0000 (03:12 -0800)]
Merge pull request #446 from dongxiong/patch-2

Remove one extra `yas-text` exportation

10 years agoyas-text export twice
dongxiong [Fri, 20 Dec 2013 05:06:37 +0000 (13:06 +0800)]
yas-text export twice

Something different between line 4521 and line 4528? I am not sure about this.

10 years agopopulate yas--exported-syms based on sym prefix
Noam Postavsky [Fri, 13 Dec 2013 04:19:21 +0000 (23:19 -0500)]
populate yas--exported-syms based on sym prefix

Rename what was formerly yas--exported-syms to yas--backported-syms,
and remove yas--dont-backport.

10 years agodoc:upload stylesheets/*.css to gh-pages
Noam Postavsky [Wed, 11 Dec 2013 04:10:16 +0000 (23:10 -0500)]
doc:upload stylesheets/*.css to gh-pages

10 years agofix rake doc:upload
Noam Postavsky [Wed, 11 Dec 2013 04:02:53 +0000 (23:02 -0500)]
fix rake doc:upload

10 years agofix a faq title
Noam Postavsky [Wed, 11 Dec 2013 03:52:34 +0000 (22:52 -0500)]
fix a faq title

10 years agoadd top level menu, minimal styling
Noam Postavsky [Wed, 11 Dec 2013 03:50:49 +0000 (22:50 -0500)]
add top level menu, minimal styling

10 years agorake doc:upload: check for wrong/incomplete rev
Noam Postavsky [Fri, 6 Dec 2013 17:56:02 +0000 (12:56 -0500)]
rake doc:upload: check for wrong/incomplete rev

10 years agoCloses #440: don't use `make-variable-buffer-local' for `yas--extra-modes'
Joao Tavora [Tue, 3 Dec 2013 15:19:37 +0000 (15:19 +0000)]
Closes #440: don't use  `make-variable-buffer-local' for `yas--extra-modes'

10 years agomarkup suffixed variable names, eg SUBEXPth
Noam Postavsky [Tue, 3 Dec 2013 04:19:23 +0000 (23:19 -0500)]
markup suffixed variable names, eg SUBEXPth

10 years agominor: cosmetic fixes to manual
Joao Tavora [Mon, 2 Dec 2013 19:28:56 +0000 (19:28 +0000)]
minor: cosmetic fixes to manual

10 years agoSimplify: index.org no longer repeats info in the README
Joao Tavora [Mon, 2 Dec 2013 19:28:08 +0000 (19:28 +0000)]
Simplify: index.org no longer repeats info in the README

10 years agoCloses #439: add a faq question about redefining keys
Joao Tavora [Mon, 2 Dec 2013 19:27:35 +0000 (19:27 +0000)]
Closes #439: add a faq question about redefining keys

Also, don't mention yas-trigger-key anymore in the manual

10 years agominor: README.mdown link
Joao Tavora [Fri, 29 Nov 2013 21:45:44 +0000 (21:45 +0000)]
minor: README.mdown link

10 years agoMerge branch 'unclutter': snippets and textmate importation snippets are now submodules
Joao Tavora [Fri, 29 Nov 2013 21:34:48 +0000 (21:34 +0000)]
Merge branch 'unclutter': snippets and textmate importation snippets are now submodules

10 years agoonly /italicize/ words completely in upper case
Noam Postavsky [Fri, 29 Nov 2013 04:27:03 +0000 (23:27 -0500)]
only /italicize/ words completely in upper case

no /YAS/nippet

10 years agodocstring fixes
Noam Postavsky [Fri, 29 Nov 2013 04:25:15 +0000 (23:25 -0500)]
docstring fixes

yas--prompt-function -> yas-prompt-functions
yas-fallback-behaviour -> yas-fallback-behavior

10 years agoonly crosslink exported symbols
Noam Postavsky [Fri, 29 Nov 2013 03:42:06 +0000 (22:42 -0500)]
only crosslink exported symbols

10 years agoyas--document-symbol: reindent
Noam Postavsky [Fri, 29 Nov 2013 03:06:06 +0000 (22:06 -0500)]
yas--document-symbol: reindent

10 years agoformat args in docstrings as =code=, not /italic/
Noam Postavsky [Fri, 29 Nov 2013 02:58:32 +0000 (21:58 -0500)]
format args in docstrings as =code=, not /italic/

10 years agorefactor: removed extras and snippets tree, both point to submodules
Joao Tavora [Wed, 27 Nov 2013 23:19:04 +0000 (23:19 +0000)]
refactor: removed extras and snippets tree, both point to submodules

10 years agoMerge pull request #436 from npostavs/autodoc-1,2
Noam Postavsky [Thu, 28 Nov 2013 02:55:00 +0000 (18:55 -0800)]
Merge pull request #436 from npostavs/autodoc-1,2

Fix points 1 and 2 of #434

10 years agocheck function doc before variable doc
Noam Postavsky [Thu, 28 Nov 2013 02:44:18 +0000 (21:44 -0500)]
check function doc before variable doc

This means functions shadow variables with the same name, but at least
that's better than listing functions with the documentation from the
variable! (That happened because the call to yas--document-symbols in
snippet-reference.org was prefering function values to variables, while
the yas--document-symbol was prefering variable doc to function doc).

10 years agofix docstring extraction for "fancy" docs
Noam Postavsky [Thu, 28 Nov 2013 02:34:29 +0000 (21:34 -0500)]
fix docstring extraction for "fancy" docs

The docstrings for yas-expand and yas-expand-from-keymap are generated
on the fly, depending on how they are called ("context"). Add a context
argument to the synthesizing functions and pass it nil when extracting
docstrings for the manual.

10 years agoretrieve function documentation correctly
Noam Postavsky [Thu, 28 Nov 2013 02:04:26 +0000 (21:04 -0500)]
retrieve function documentation correctly

10 years agopublish org doc from Rakefile
Noam Postavsky [Wed, 27 Nov 2013 02:47:47 +0000 (21:47 -0500)]
publish org doc from Rakefile

10 years agomove #+STARTUP to org-setup.inc; add #+LINK_HOME
Noam Postavsky [Tue, 26 Nov 2013 03:54:43 +0000 (22:54 -0500)]
move #+STARTUP to org-setup.inc; add #+LINK_HOME

also remove #+AUTHOR since it ends up refering to the generator, not the
actual author.

10 years agomove top heading to title
Noam Postavsky [Tue, 26 Nov 2013 02:55:34 +0000 (21:55 -0500)]
move top heading to title

and all the other headings one level up. Except for
snippet-reference.org; yas--document-symbols doesn't quite work right in
that case, fix it later.

10 years agoremove erroneous #+BEGIN/END_QUOTE
Noam Postavsky [Tue, 26 Nov 2013 02:38:21 +0000 (21:38 -0500)]
remove erroneous #+BEGIN/END_QUOTE

pandoc decided to add those for some reason

10 years ago{snippet-development,faq}.org: fixup pandoc output
Noam Postavsky [Tue, 26 Nov 2013 00:42:22 +0000 (19:42 -0500)]
{snippet-development,faq}.org: fixup pandoc output

- add source blocks
- fix links
- don't duplicate docstrings
- formatting

10 years agosnippet-menu.org: links, formatting, obsolete refs
Noam Postavsky [Mon, 25 Nov 2013 23:50:56 +0000 (18:50 -0500)]
snippet-menu.org: links, formatting, obsolete refs

10 years agomore links to docstrings, don't repeat docstrings
Noam Postavsky [Mon, 25 Nov 2013 01:44:18 +0000 (20:44 -0500)]
more links to docstrings, don't repeat docstrings

10 years agoadd code examples for snippet-expansion.rst
Noam Postavsky [Mon, 25 Nov 2013 01:38:01 +0000 (20:38 -0500)]
add code examples for snippet-expansion.rst

pandoc org -> rst drops them

10 years agoreplace obsolete refs
Noam Postavsky [Mon, 25 Nov 2013 00:59:14 +0000 (19:59 -0500)]
replace obsolete refs

yas-trigger-key -> bind yas-expand
yas-mode-symbol -> call yas-activate-extra-mode

10 years agomove images to the section they describe
Noam Postavsky [Sun, 24 Nov 2013 23:14:39 +0000 (18:14 -0500)]
move images to the section they describe

10 years agolink to docstring ref; fix other links, formatting
Noam Postavsky [Sun, 24 Nov 2013 23:04:30 +0000 (18:04 -0500)]
link to docstring ref; fix other links, formatting

10 years agomove index.org subsection into snippet-expansion.org
Noam Postavsky [Sun, 24 Nov 2013 22:04:10 +0000 (17:04 -0500)]
move index.org subsection into snippet-expansion.org

10 years agofix links
Noam Postavsky [Sun, 24 Nov 2013 21:20:51 +0000 (16:20 -0500)]
fix links

10 years agomove index.org subsection into snippet-organization.org
Noam Postavsky [Sun, 24 Nov 2013 21:00:04 +0000 (16:00 -0500)]
move index.org subsection into snippet-organization.org

This almost completely overwrites the existing snippet-organization.org
which was imported from snippet-organization.rst via pandoc.