]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
7 years agoAdd inf-ruby mode to dont-indent-modes
Artur Malabarba [Wed, 18 May 2016 23:12:51 +0000 (20:12 -0300)]
Add inf-ruby mode to dont-indent-modes

7 years agoRemove remaining reference to aggressive-indent--check-parens
Artur Malabarba [Wed, 18 May 2016 23:12:28 +0000 (20:12 -0300)]
Remove remaining reference to aggressive-indent--check-parens

7 years agoRemove async-pkg.el file added by error during merge.
Thierry Volpiatto [Wed, 18 May 2016 19:58:04 +0000 (21:58 +0200)]
Remove async-pkg.el file added by error during merge.

* packages/async/async-pkg.el: Deleted.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa
Thierry Volpiatto [Wed, 18 May 2016 18:02:30 +0000 (20:02 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa

7 years agoMerge commit 'eaab57092284028b1567622c96d9b332de3c7a4d'
Artur Malabarba [Wed, 18 May 2016 17:37:27 +0000 (14:37 -0300)]
Merge commit 'eaab57092284028b1567622c96d9b332de3c7a4d'

7 years agoDitch the check-parens functionality
Artur Malabarba [Wed, 18 May 2016 17:33:10 +0000 (14:33 -0300)]
Ditch the check-parens functionality

For some unknown reason, it interacts poorly with query-replace.

7 years agoMerge commit '0e327f72bdffc5bc4a1fbc34a8da1b7066e819b3'
Thierry Volpiatto [Wed, 18 May 2016 10:35:40 +0000 (12:35 +0200)]
Merge commit '0e327f72bdffc5bc4a1fbc34a8da1b7066e819b3'

7 years agoMerge pull request #70 from jpkotta/master
Dmitry Gutov [Tue, 17 May 2016 23:31:52 +0000 (02:31 +0300)]
Merge pull request #70 from jpkotta/master

don't assume vc-git-diff-switches is defined

7 years agoRename yas-backport-obsolete-alias
Noam Postavsky [Sun, 15 May 2016 01:46:12 +0000 (21:46 -0400)]
Rename yas-backport-obsolete-alias

* yasnippet.el (yas-alias-to-yas/prefix-p): Rename from
yas-backport-obsolete-alias.
(yas/root-directory): Only define if yas-alias-to-yas/prefix-p is
non-nil.  Mark obsolete.

7 years agodon't assume vc-git-diff-switches is defined
Jonathan Kotta [Tue, 17 May 2016 22:27:42 +0000 (17:27 -0500)]
don't assume vc-git-diff-switches is defined

7 years agoMake smart-yank-yank-pop a top-level def (use defalias)
Michael Heerdegen [Tue, 17 May 2016 19:52:21 +0000 (21:52 +0200)]
Make smart-yank-yank-pop a top-level def (use defalias)

Thanks Stefan.

7 years agoGive smart-yank's mode map the canonical name
Michael Heerdegen [Tue, 17 May 2016 19:51:02 +0000 (21:51 +0200)]
Give smart-yank's mode map the canonical name

Thanks Stefan.

7 years agoAdd new package "smart-yank"
Michael Heerdegen [Tue, 17 May 2016 14:13:44 +0000 (16:13 +0200)]
Add new package "smart-yank"

7 years agoAdd yas-backport-obsolete-alias option
USAMI Kenta [Sat, 14 May 2016 16:28:42 +0000 (01:28 +0900)]
Add yas-backport-obsolete-alias option

* yasnippet.el (yas-backport-obsolete-alias): New option.

7 years agoMerge commit 'f4163526c6f603b9dea1d8a3253d31c135fd8876'
Matthew Carter [Tue, 17 May 2016 03:59:28 +0000 (23:59 -0400)]
Merge commit 'f4163526c6f603b9dea1d8a3253d31c135fd8876'

7 years agoSlight adjustment to modeline color
Matthew Carter [Tue, 17 May 2016 03:58:06 +0000 (23:58 -0400)]
Slight adjustment to modeline color

7 years agoAdd new ahungry-theme-font-settings variable
Matthew Carter [Tue, 17 May 2016 03:56:40 +0000 (23:56 -0400)]
Add new ahungry-theme-font-settings variable

This allows prevention of overriding user font size/font family in the theme.

7 years ago* aggressive-indent.el: Silence warning
Stefan Monnier [Sun, 15 May 2016 03:54:18 +0000 (23:54 -0400)]
* aggressive-indent.el: Silence warning

* aggressive-indent.el (aggressive-indent-indent-region-and-on):
Remove unused var `was-beginning-of-line'.

7 years agoRevert "Remove completions without annotations when considering duplicates"
Dmitry Gutov [Sun, 15 May 2016 00:50:50 +0000 (03:50 +0300)]
Revert "Remove completions without annotations when considering duplicates"

This reverts commit 777982049314af306a020b7de2ca6cb00b428822.

Closes #509.

7 years agoAllow using --patience through vc-git-diff-switches
Dmitry Gutov [Sun, 15 May 2016 00:01:18 +0000 (03:01 +0300)]
Allow using --patience through vc-git-diff-switches

Closes #9.

7 years agoExtra measures to prevent premature yas-minor-mode
Noam Postavsky [Sat, 14 May 2016 11:18:38 +0000 (07:18 -0400)]
Extra measures to prevent premature yas-minor-mode

The user's hooks may try to enable yas-minor-mode before yasnippet.el
has finished loading.  In [1], we catch and ignore the errors arising
from this, but it's better if we can avoid hitting the error in the
first place.

This means we have 3 separate measures to avoid the problem, but since
this bug can leave Emacs unusable due to a failing post-command-hook,
a bit of redundant safety is not a bad thing.

* yasnippet.el (yas-minor-mode): Only turn on if yasnippet is fully
loaded.
(yas--font-lock-keywords): Disable user hooks.

[1]: "Avoid potential problems with user's hooks"
4c6064ce1aff07fe4481b5e2d987c8a7f044c207

7 years agoFix #68
Dmitry Gutov [Fri, 13 May 2016 14:12:06 +0000 (17:12 +0300)]
Fix #68

7 years agoBind vc-git-diff-switches
Dmitry Gutov [Fri, 13 May 2016 09:26:53 +0000 (12:26 +0300)]
Bind vc-git-diff-switches

Fixes #67, and seems to improve the performance as well.

7 years agoUpdate version number here too.
Thierry Volpiatto [Fri, 13 May 2016 08:28:46 +0000 (11:28 +0300)]
Update version number here too.

7 years agoUpdate pkg file.
Thierry Volpiatto [Fri, 13 May 2016 08:27:24 +0000 (11:27 +0300)]
Update pkg file.

7 years agoMerge commit '06e8bd7d4c31ba5b10cf5c18a13c5370045cea71'
Artur Malabarba [Thu, 12 May 2016 13:12:03 +0000 (10:12 -0300)]
Merge commit '06e8bd7d4c31ba5b10cf5c18a13c5370045cea71'

7 years agovalidate-setq takes any even number of args
Artur Malabarba [Thu, 12 May 2016 13:10:01 +0000 (10:10 -0300)]
validate-setq takes any even number of args

7 years agoDon't use major-mode syntax-propertize-function
Noam Postavsky [Thu, 12 May 2016 09:41:08 +0000 (05:41 -0400)]
Don't use major-mode syntax-propertize-function

during snippet creation.  The snippet creation manipulates the
syntax-table which can lead to conflicts (see also
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23443).

* yasnippet.el (yas-expand-snippet): Let-bind syntax-propertize-function
to nil and then call syntax-ppss-flush-cache afterwards.

7 years agoFix field transform application in yas-next-field
Noam Postavsky [Thu, 12 May 2016 08:57:08 +0000 (04:57 -0400)]
Fix field transform application in yas-next-field

* yasnippet.el (yas--apply-transform): Don't let-bind yas-moving-away-p
to nil, it's nil by default.
(yas-next-field): Call `yas--field-update-display' instead of only
calling `yas--eval-lisp' so that the result of the transform is inserted
into the buffer.

7 years agoBackport for fix for #335
Dmitry Gutov [Tue, 10 May 2016 23:37:51 +0000 (02:37 +0300)]
Backport for fix for #335

7 years agoMerge commit '7371d05adf4e86f8c6c507d6a8177abac1680d06'
Artur Malabarba [Tue, 10 May 2016 17:23:46 +0000 (14:23 -0300)]
Merge commit '7371d05adf4e86f8c6c507d6a8177abac1680d06'

7 years agoDon't try to validate undefined vars
Artur Malabarba [Tue, 10 May 2016 17:05:33 +0000 (14:05 -0300)]
Don't try to validate undefined vars

7 years agoImprove readability of the error message
Artur Malabarba [Tue, 10 May 2016 17:05:16 +0000 (14:05 -0300)]
Improve readability of the error message

7 years ago* websocket/websocket.el (websocket-server-accept): Mark arg as unused
Stefan Monnier [Tue, 10 May 2016 16:30:23 +0000 (12:30 -0400)]
* websocket/websocket.el (websocket-server-accept): Mark arg as unused

* websocket/websocket-functional-test.el: Fix compilation warnings.

7 years agoFix outdated and misformatted docs
Noam Postavsky [Tue, 10 May 2016 16:21:14 +0000 (12:21 -0400)]
Fix outdated and misformatted docs

yas-find-snippets was removed by [1].

* doc/snippet-development.org: Add keybindings on same line as command
names, fixup intra document links, and remove mention of non-existent
command yas-find-snippets.
* yasnippet.el (yas-load-snippet-buffer):
(yas-load-snippet-buffer-and-close): Fix docstring formatting.

[1]: "cleanup: remove `yas/find-snippets\', complicated and no one seems
to use it anyway" 29 May, 2012 433c93746534ebb062afe4dbc7690f736be72d42.

7 years agoVersion 1.6, mostly fixes for fragmented headers.
Andrew Hyatt [Tue, 10 May 2016 03:21:15 +0000 (23:21 -0400)]
Version 1.6, mostly fixes for fragmented headers.

* websocket.el (websocket-verify-response-code, websocket-outer-filter):
  Fix handling of fragmented headers.
* websocket.el (websocket-server): Accept host for listening on.
* websocket-functional-test.el: Stop stopping the listener process on
  Windows.

7 years agoDocument $> and fix escaping
Noam Postavsky [Sun, 8 May 2016 19:32:20 +0000 (15:32 -0400)]
Document $> and fix escaping

* doc/snippet-development.org: New "Indentation markers" section.
* yasnippet-tests.el (indentation-markers): New test.
* yasnippet.el (yas--indent-markers): New variable.
(yas--indent): Use it instead of searching for $> directly.
(yas--indent-parse-create): New function, records occurences of $> into
`yas--indent-markers'.
(yas--snippet-parse-create): Call it.

7 years agoAdd more info in mode-line on failures.
Thierry Volpiatto [Thu, 5 May 2016 05:09:07 +0000 (08:09 +0300)]
Add more info in mode-line on failures.

* dired-async.el (dired-async-after-file-create): Mention dired log buffer.
(dired-async-create-files):                       Mention dired log buffer.

7 years agoRemove overly-optimistic delay on Emacs Lisp coloring.
Jackson Ray Hamilton [Thu, 5 May 2016 00:14:55 +0000 (17:14 -0700)]
Remove overly-optimistic delay on Emacs Lisp coloring.

7 years agoDon't indent empty lines in snippet expansion
Noam Postavsky [Wed, 4 May 2016 16:35:48 +0000 (12:35 -0400)]
Don't indent empty lines in snippet expansion

* yasnippet.el (yas--indent-region): Indent only non-empty lines.
* yasnippet-tests.el (basic-indentation): Add empy and non-empty (but
blank) lines in test snippet.

7 years agoMerge commit '3659f0267f1a70a7141b7d53d8a0696d40247c08'
Artur Malabarba [Wed, 4 May 2016 15:27:15 +0000 (12:27 -0300)]
Merge commit '3659f0267f1a70a7141b7d53d8a0696d40247c08'

7 years agoAdd validate-setq
Artur Malabarba [Wed, 4 May 2016 15:26:46 +0000 (12:26 -0300)]
Add validate-setq

7 years agoAdd 'packages/validate/' from commit '95865f28b0f0b6386b8dcdf2b084f1cd79ffab0d'
Artur Malabarba [Wed, 4 May 2016 15:00:23 +0000 (12:00 -0300)]
Add 'packages/validate/' from commit '95865f28b0f0b6386b8dcdf2b084f1cd79ffab0d'

git-subtree-dir: packages/validate
git-subtree-mainline: 76b6d32e155b55a79d23c15f37cc5d6a647e8f83
git-subtree-split: 95865f28b0f0b6386b8dcdf2b084f1cd79ffab0d

7 years agoFix copyright
Artur Malabarba [Wed, 4 May 2016 14:59:55 +0000 (11:59 -0300)]
Fix copyright

7 years agoAdd validate-mark-safe-local
Artur Malabarba [Wed, 4 May 2016 14:58:38 +0000 (11:58 -0300)]
Add validate-mark-safe-local

7 years agopackages/arbitools.el: Removed unused variables
David Gonzalez Gandara [Wed, 4 May 2016 11:57:35 +0000 (13:57 +0200)]
packages/arbitools.el: Removed unused variables

7 years agoMerge pull request #332 from bolivier/master
Dmitry Gutov [Wed, 4 May 2016 11:46:04 +0000 (14:46 +0300)]
Merge pull request #332 from bolivier/master

Allow space before global declaration

7 years agoMerge pull request #333 from daniellandau/master
Dmitry Gutov [Wed, 4 May 2016 11:45:11 +0000 (14:45 +0300)]
Merge pull request #333 from daniellandau/master

Change warning message to not conflict with spec

7 years agoChange warning message to not conflict with spec
Daniel Landau [Wed, 4 May 2016 11:35:55 +0000 (14:35 +0300)]
Change warning message to not conflict with spec

The ECMAScript spec says
(http://www.ecma-international.org/ecma-262/5.1/#sec-10.5) that
declaring an already declared variable is silently ignored, so claiming
it's a TypeError is not correct. It should still be highlighted as a
warning because it's not something that any program should do and with
let redeclaration actually is a TypeError.

7 years agopackages/transcribe.el: Fixed function calls
David Gonzalez Gandara [Tue, 3 May 2016 18:13:51 +0000 (20:13 +0200)]
packages/transcribe.el: Fixed function calls

7 years agopackages/arbitools.el: minor fixes
David Gonzalez Gandara [Tue, 3 May 2016 17:49:17 +0000 (19:49 +0200)]
packages/arbitools.el: minor fixes

7 years agopackages/transcribe.el: Fixed void function declaration
David Gonzalez Gandara [Tue, 3 May 2016 17:42:40 +0000 (19:42 +0200)]
packages/transcribe.el: Fixed void function declaration

7 years agoAllow space before global declaration
Brandon Olivier [Mon, 2 May 2016 19:14:06 +0000 (14:14 -0500)]
Allow space before global declaration

7 years agoHandle errors file by file instead of returning on first error.
Thierry Volpiatto [Tue, 3 May 2016 16:17:02 +0000 (18:17 +0200)]
Handle errors file by file instead of returning on first error.

* dired-async.el (dired-async-create-files): Do it.

7 years agoBe more careful when disabling/enabling font-lock.
Jackson Ray Hamilton [Tue, 3 May 2016 05:03:50 +0000 (22:03 -0700)]
Be more careful when disabling/enabling font-lock.

7 years agoRename variable.
Jackson Ray Hamilton [Tue, 3 May 2016 04:31:45 +0000 (21:31 -0700)]
Rename variable.

7 years agoTweak copyright lines.
Jackson Ray Hamilton [Tue, 3 May 2016 04:24:31 +0000 (21:24 -0700)]
Tweak copyright lines.

7 years agoNarrow scope of `make compile'.
Jackson Ray Hamilton [Tue, 3 May 2016 04:20:39 +0000 (21:20 -0700)]
Narrow scope of `make compile'.

7 years agoReorganize files.
Jackson Ray Hamilton [Tue, 3 May 2016 04:12:52 +0000 (21:12 -0700)]
Reorganize files.

7 years agoTrivial cleanup.
Jackson Ray Hamilton [Tue, 3 May 2016 03:49:31 +0000 (20:49 -0700)]
Trivial cleanup.

7 years agoRemove obsolete variables.
Jackson Ray Hamilton [Tue, 3 May 2016 03:47:07 +0000 (20:47 -0700)]
Remove obsolete variables.

7 years agoFix improperly prepared test.
Jackson Ray Hamilton [Tue, 3 May 2016 03:42:46 +0000 (20:42 -0700)]
Fix improperly prepared test.

7 years agoMake keywords in comments and strings coloring customizable.
Jackson Ray Hamilton [Tue, 3 May 2016 03:42:02 +0000 (20:42 -0700)]
Make keywords in comments and strings coloring customizable.

7 years agoMerge branch 'plugins'
Jackson Ray Hamilton [Tue, 3 May 2016 03:14:41 +0000 (20:14 -0700)]
Merge branch 'plugins'

7 years agoMerge commit 'c0a1e24ef39e2b0f388135c2ed8f8b419346337c'
Artur Malabarba [Mon, 2 May 2016 02:12:28 +0000 (23:12 -0300)]
Merge commit 'c0a1e24ef39e2b0f388135c2ed8f8b419346337c'

7 years agoVersion 1.7
Artur Malabarba [Mon, 2 May 2016 02:11:42 +0000 (23:11 -0300)]
Version 1.7

7 years agoFix a bug in the take-10 logic
Artur Malabarba [Mon, 2 May 2016 02:11:06 +0000 (23:11 -0300)]
Fix a bug in the take-10 logic

7 years agoMake yasnippet less chatty
Noam Postavsky [Mon, 25 Apr 2016 23:14:39 +0000 (19:14 -0400)]
Make yasnippet less chatty

Make sure output that occurs in normal use goes to verbosity levels 3 or
higher, and level 2 and below are reserved for something unexpected
happening.  Level 3 (the new default) should be a reasonably quiet but
informative level.

* yasnippet.el (yas--read-keybinding, yas--safely-run-hooks):
(yas--on-protection-overlay-modification): Put warnings at verbosity
level 2.
(yas--load-yas-setup-file, yas-load-directory):
(yas--load-directory-1, yas--load-snippet-dirs):
(yas-expand-snippet, yas--load-pending-jits): Put per-file loading and
other debug messages at level 4.
(yas-load-snippet-buffer, yas--template-get-file, yas-reload-all): Put
top level loading messages at level 3 (or 2 if there were errors).
(yas--define-menu-1, yas-insert-snippet, yas-tryout-snippet): Put error
messages at level 1.
(yas-verbosity): Reduce default verbosity to level 3.

7 years agoDeclare vars created with renaming destructuring
Dmitry Gutov [Mon, 2 May 2016 00:26:52 +0000 (03:26 +0300)]
Declare vars created with renaming destructuring

Fixes regression from 0555a8a3.

7 years agoAdd :warnings-count keyword argument
Dmitry Gutov [Sun, 1 May 2016 23:58:48 +0000 (02:58 +0300)]
Add :warnings-count keyword argument

7 years agoFix success message on callback.
Thierry Volpiatto [Sun, 1 May 2016 15:47:58 +0000 (17:47 +0200)]
Fix success message on callback.

* dired-async.el (dired-async-after-file-create):
Remove one "file(s)" which seems redundant and use dired-plural-s.

7 years agoImprove how error buffer is displayed.
Thierry Volpiatto [Sun, 1 May 2016 11:41:25 +0000 (13:41 +0200)]
Improve how error buffer is displayed.

* dired-async.el (dired-async-after-file-create): Do it.

7 years agoBetter handling of errors happening on child.
Thierry Volpiatto [Sun, 1 May 2016 07:33:41 +0000 (09:33 +0200)]
Better handling of errors happening on child.

* dired-async.el (dired-async-create-files): Use dired-log and print its
output to dired-async-log-file.

7 years agoWhen failures have been printed to dired log add the date at bob.
Thierry Volpiatto [Sun, 1 May 2016 05:46:24 +0000 (07:46 +0200)]
When failures have been printed to dired log add the date at bob.

* dired-async.el (dired-async-create-files): Use dired-log with t.

7 years agoRemove unused commented code.
Thierry Volpiatto [Sun, 1 May 2016 05:26:44 +0000 (07:26 +0200)]
Remove unused commented code.

7 years agoEnsure a new line is added when printing to dired log buffer.
Thierry Volpiatto [Sun, 1 May 2016 04:50:53 +0000 (06:50 +0200)]
Ensure a new line is added when printing to dired log buffer.

* dired-async.el (dired-async-create-files): Do it.

7 years agoFix some doc formatting
Noam Postavsky [Sun, 1 May 2016 02:29:57 +0000 (22:29 -0400)]
Fix some doc formatting

* doc/snippet-development.org (Template Syntax):
(Placeholder fields, Mirrors): Text inside dedicated target <<angle
brackets>> does not show up in output, so duplicate it.  Add
descriptions to avoid getting numbers instead of names in links.

7 years agoSupport htmlize.el in Rakefile doc target
Noam Postavsky [Sun, 1 May 2016 02:11:49 +0000 (22:11 -0400)]
Support htmlize.el in Rakefile doc target

Htmlized output can now be produced by

    rake doc[/path/to/htmlize/]

* Rakefile (doc): Add htmlize argument.
* doc/yas-doc-helper.el (yas--generate-html-batch): Tell org to use css
selectors only when exporting htmlized faces.
* doc/stylesheets/manual.css: Add styles for faces used by org export.

7 years agoHandle multiple files in coverage reports.
Jackson Ray Hamilton [Sun, 1 May 2016 02:04:15 +0000 (19:04 -0700)]
Handle multiple files in coverage reports.

7 years agoAdd an .elpaignore file.
Jackson Ray Hamilton [Sun, 1 May 2016 01:17:04 +0000 (18:17 -0700)]
Add an .elpaignore file.

7 years agoIgnore packaging-generated files.
Jackson Ray Hamilton [Sun, 1 May 2016 01:16:30 +0000 (18:16 -0700)]
Ignore packaging-generated files.

7 years agoMake js2-mode a development dependency.
Jackson Ray Hamilton [Sun, 1 May 2016 01:15:50 +0000 (18:15 -0700)]
Make js2-mode a development dependency.

7 years agoFix fields following $0 + region insertion
Noam Postavsky [Wed, 27 Apr 2016 03:26:00 +0000 (23:26 -0400)]
Fix fields following $0 + region insertion

When inserting text due to a  non-nil yas-wrap-around-region and the
snippet had fields occuring later in the buffer than $0, the insertion
of the text was shifting the location of later fields, thus invalidating
the calculation of yas--dollar-regions.

* yasnippet.el (yas--simple-mirror-parse-create): Don't insert text fo
yas-wrap-around-region here.
(yas--snippet-parse-create): Do it here, after deleting
`yas--dollar-regions`, instead.

7 years agoDelete active region for trigger key expansion
Noam Postavsky [Fri, 29 Apr 2016 00:20:55 +0000 (20:20 -0400)]
Delete active region for trigger key expansion

This makes yas-expand-from-trigger-key consistent with
yas-insert-snippet.

* yasnippet.el (yas-expand-from-trigger-key): Expand start end interval
with active region.

7 years agoRevert "Disable region wrapping for trigger key expansion"
Noam Postavsky [Thu, 28 Apr 2016 23:21:07 +0000 (19:21 -0400)]
Revert "Disable region wrapping for trigger key expansion"

This reverts commit f8d1af1f50f42ac1689c583c152c3b15e8774ae4.

Disabling this for trigger key introduced an inconsistency that is more
complicated to implement and document than simply fixing region wrapping
for trigger key expanded snippets.

7 years agoDisable region wrapping for trigger key expansion
Noam Postavsky [Wed, 27 Apr 2016 02:54:47 +0000 (22:54 -0400)]
Disable region wrapping for trigger key expansion

It's too awkward to highlight the relevant text while maneuvering point
in front of the trigger key.

* yasnippet.el (yas-expand-from-trigger-key): Let-bind
yas-wrap-around-region to nil if it was t.
* doc/snippet-expansion.org: Document it.

7 years agoImprove documentation for new register option
Noam Postavsky [Wed, 27 Apr 2016 02:37:05 +0000 (22:37 -0400)]
Improve documentation for new register option

* doc/snippet-expansion.org: Add new section about
yas-wrap-around-region.
* yasnippet.el (yas-wrap-around-region): Improve docstring.

7 years agoAdd register option for yas-wrap-around-region
Noam Postavsky [Thu, 10 Dec 2015 04:15:39 +0000 (23:15 -0500)]
Add register option for yas-wrap-around-region

Replace `cua' setting with more general behaviour that can use any given
register.  A `cua' setting is converted to ?0 for backwards
compatibility.

* yasnippet.el (yas--simple-mirror-parse-create): Use contents of any
  register depending on `yas-wrap-around-region' value.
(yas-wrap-around-region): Update docstring.

7 years agoAutoload dispatches.
Jackson Ray Hamilton [Sat, 30 Apr 2016 22:20:29 +0000 (15:20 -0700)]
Autoload dispatches.

7 years agoIndent multi-line output from mirrors
João Távora [Fri, 4 Mar 2016 17:34:40 +0000 (17:34 +0000)]
Indent multi-line output from mirrors

* yasnippet.el (yas--indent-region): Adapted and redesigned from
`yas--indent-according-to-mode'
(yas--indent-according-to-mode): Deleted.
(yas--indent): Use `yas--indent-region'.
(yas--real-line-beginning): Deleted.
(yas--update-mirrors): Always re-place active field overlay if it
exists.  Pass the snippet to `yas--mirror-update-display'.
(yas--mirror-update-display): Indent the mirror text after
inserting the reflection.

7 years agoAdd new tests for multi-line mirror indentation
João Távora [Fri, 4 Mar 2016 12:55:08 +0000 (12:55 +0000)]
Add new tests for multi-line mirror indentation

* yasnippet-tests.el (basic-indentation):
(navigate-a-snippet-with-multiline-mirrors-issue-665): New tests.

7 years agoTest expansion in an empty buffer
Noam Postavsky [Wed, 13 Apr 2016 01:37:17 +0000 (21:37 -0400)]
Test expansion in an empty buffer

* yasnippet-tests.el (yas-should-expand, yas-should-not-expand): Call
`erase-buffer' instead of narrowing.

7 years agoRevert last commit.
Thierry Volpiatto [Sat, 30 Apr 2016 20:39:28 +0000 (22:39 +0200)]
Revert last commit.

7 years agoDRY use apply.
Thierry Volpiatto [Sat, 30 Apr 2016 20:29:14 +0000 (22:29 +0200)]
DRY use apply.

* dired-async.el (dired-async-after-file-create): Do it.
(dired-async-create-files):                       Do it.

7 years agoHandle error also on host when async-list of file is empty.
Thierry Volpiatto [Sat, 30 Apr 2016 20:20:17 +0000 (22:20 +0200)]
Handle error also on host when async-list of file is empty.

* dired-async.el (dired-async-create-files): Do it.
When only one file and user answer no handle error on host.

7 years agoFix operation arg of callback.
Thierry Volpiatto [Sat, 30 Apr 2016 19:03:48 +0000 (21:03 +0200)]
Fix operation arg of callback.

* dired-async.el (dired-async-after-file-create):
Use the car.

7 years agoRemove commented line, no code change.
Thierry Volpiatto [Sat, 30 Apr 2016 18:31:58 +0000 (20:31 +0200)]
Remove commented line, no code change.

7 years agoFix formatting the help form in dired-create-files.
Thierry Volpiatto [Sat, 30 Apr 2016 18:20:24 +0000 (20:20 +0200)]
Fix formatting the help form in dired-create-files.

* dired-async.el (dired-async-create-files): Do it.

7 years agoFinally handle the failures correctly.
Thierry Volpiatto [Sat, 30 Apr 2016 17:22:46 +0000 (19:22 +0200)]
Finally handle the failures correctly.

* dired-async.el (dired-async-operation): Removed no more needed.
(dired-async-failures): New face.
(dired-async-mode-line-message): Use one more arg FACE.
(dired-async-after-file-create): Handle failures.
(dired-async-create-files): Pass failures args to callback.
Remove code that is now never called since when the mode is turned off
and we are no more async the job is delegated again to old dired function.

7 years agoSeparate language support into separate features.
Jackson Ray Hamilton [Sat, 30 Apr 2016 15:59:31 +0000 (08:59 -0700)]
Separate language support into separate features.