]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
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 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.

7 years agoMerge commit '16be7a12d0dbbbd0e59fc2ccf9a7c7085eb9cf5a'
Artur Malabarba [Sat, 30 Apr 2016 14:50:20 +0000 (11:50 -0300)]
Merge commit '16be7a12d0dbbbd0e59fc2ccf9a7c7085eb9cf5a'

7 years agoVersion 1.3.0
Artur Malabarba [Sat, 30 Apr 2016 14:49:44 +0000 (11:49 -0300)]
Version 1.3.0

7 years ago[Fix #47] Add beacon-before-blink-hook
Artur Malabarba [Sat, 30 Apr 2016 14:48:20 +0000 (11:48 -0300)]
[Fix #47] Add beacon-before-blink-hook

7 years agoFix #17 - Minibuffer completion pre 25
Artur Malabarba [Sat, 30 Apr 2016 14:28:06 +0000 (11:28 -0300)]
Fix #17 - Minibuffer completion pre 25

7 years agoUpdate copyright years.
Jackson Ray Hamilton [Sat, 30 Apr 2016 14:00:40 +0000 (07:00 -0700)]
Update copyright years.

7 years agoUnquote all callbacks.
Thierry Volpiatto [Sat, 30 Apr 2016 12:36:47 +0000 (14:36 +0200)]
Unquote all callbacks.

* async-bytecomp.el (async-byte-recompile-directory): Do it.
* dired-async.el (dired-async-create-files):          Do it.
* smtpmail-async.el (async-smtpmail-send-it):         Do it.

7 years agoFix repetition in callback.
Thierry Volpiatto [Fri, 29 Apr 2016 15:03:30 +0000 (17:03 +0200)]
Fix repetition in callback.

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

7 years agoAllow inclusing the closed bugs
Lars Ingebrigtsen [Fri, 29 Apr 2016 15:01:37 +0000 (17:01 +0200)]
Allow inclusing the closed bugs

* debbugs-gnu.el (debbugs-gnu-suppress-closed): New variable.
(debbugs-gnu): Use it.

7 years agoyasnippet.el (yas-next-field-will-exit-p): New function.
Noam Postavsky [Tue, 26 Jan 2016 20:41:46 +0000 (15:41 -0500)]
yasnippet.el (yas-next-field-will-exit-p): New function.

7 years agoRefactor yas-next-field a bit
Noam Postavsky [Tue, 26 Jan 2016 20:35:02 +0000 (15:35 -0500)]
Refactor yas-next-field a bit

* yasnippet.el (yas--find-next-field): New function to find target field.
  (yas-next-field): Use it.

7 years agoTest and fix problem with mirror+autofill
Noam Postavsky [Fri, 29 Apr 2016 01:16:30 +0000 (21:16 -0400)]
Test and fix problem with mirror+autofill

cc-mode fill paragraph narrows to the paragraph being filled.  This
causes problems if there is a mirror needing to be updated outside of
the current paragraph.

* yasnippet-tests.el: New test.
* yasnippet.el (yas--update-mirrors): Widen while updating the mirrors.

7 years agoBump version number
Lars Ingebrigtsen [Wed, 27 Apr 2016 21:10:10 +0000 (23:10 +0200)]
Bump version number

7 years agoFix last checkin
Lars Ingebrigtsen [Wed, 27 Apr 2016 21:09:59 +0000 (23:09 +0200)]
Fix last checkin

7 years agoAllow the "C" command from debbugs mode to work
Lars Ingebrigtsen [Wed, 27 Apr 2016 21:08:45 +0000 (23:08 +0200)]
Allow the "C" command from debbugs mode to work

* debbugs-gnu.el (debbugs-gnu-send-control-message): Get the
correct bug ID number from the debbugs mode.

7 years agoDocument .yas-setup.el
Noam Postavsky [Wed, 27 Apr 2016 21:08:19 +0000 (17:08 -0400)]
Document .yas-setup.el

* doc/snippet-organization.org: Explain .yas-setup.el.

7 years agochmod -x doc/yas-doc-helper.el
Barak A. Pearlmutter [Wed, 27 Apr 2016 20:51:03 +0000 (21:51 +0100)]
chmod -x doc/yas-doc-helper.el

7 years ago* externals-list: Add ztree entry
Stefan Monnier [Wed, 27 Apr 2016 13:44:38 +0000 (09:44 -0400)]
* externals-list: Add ztree entry

7 years ago* packages/rnc-mode/rnc-mode.el (rnc-smie-rules): Add empty-line-token rule.
Stefan Monnier [Wed, 27 Apr 2016 13:42:50 +0000 (09:42 -0400)]
* packages/rnc-mode/rnc-mode.el (rnc-smie-rules): Add empty-line-token rule.

7 years ago* packages/ampc/ampc.el (ampc-highlight-current-song-mode): Delete
Stefan Monnier [Wed, 27 Apr 2016 13:42:20 +0000 (09:42 -0400)]
* packages/ampc/ampc.el (ampc-highlight-current-song-mode): Delete

(ampc-current-playlist-mode): Set font-lock-defaults instead.
(ampc-item-mode): Remove broken highlight rule.
(ampc-handle-status): Use font-lock-flush when available.

7 years ago* debbugs: Use cl-lib. Use lexical-binding when available
Stefan Monnier [Wed, 27 Apr 2016 13:39:46 +0000 (09:39 -0400)]
* debbugs: Use cl-lib. Use lexical-binding when available

* debbugs-gnu.el: Only require subr-x at compile time.  Use cl-lib.
(debbugs-gnu-print-entry): Remove unused var `title-length'.
(debbugs-gnu-sort-title): Mark `s2' as unused.
* debbugs-org.el (debbugs-gnu): Use cl-lib.
* debbugs.el: Add `cl-lib' as dependency.  Use cl-lib.
(debbugs-soap-invoke-async): Mark `args' as unused.

7 years agoRemove unuseful code never called.
Thierry Volpiatto [Wed, 27 Apr 2016 10:27:06 +0000 (12:27 +0200)]
Remove unuseful code never called.

* dired-async.el (dired-async-create-files):
Remove dired-create-files-failures stuff that don't happen on host but child.

7 years agoSwitch to lexical-binding.
Thierry Volpiatto [Wed, 27 Apr 2016 07:50:54 +0000 (09:50 +0200)]
Switch to lexical-binding.

* async-bytecomp.el: Switch to lex.
* async.el:          Switch to lex.
(async-when-done): Fix unused arg.
(async-receive):   Same.
* dired-async.el: Switch to lex.
(dired-async-create-files): Remove unused stuff
and fix vars for lex env.
* smtpmail-async.el: Switch to lex.

7 years agoEnsure dired-async--modeline-mode is called.
Thierry Volpiatto [Tue, 26 Apr 2016 17:52:13 +0000 (19:52 +0200)]
Ensure dired-async--modeline-mode is called.

* dired-async.el (dired-async-kill-process): When process is nil
don't call delete-process.

7 years agoEnsure dired-copy-preserve-time is passed to child with its current value.
Thierry Volpiatto [Tue, 26 Apr 2016 17:43:37 +0000 (19:43 +0200)]
Ensure dired-copy-preserve-time is passed to child with its current value.

Using inject would load dozen of unneeded dired stuff.

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

7 years agoUse syntax-ppss instead of check-parens
Artur Malabarba [Tue, 26 Apr 2016 16:27:05 +0000 (13:27 -0300)]
Use syntax-ppss instead of check-parens

7 years agoFully reindent before saving
Artur Malabarba [Tue, 26 Apr 2016 16:26:55 +0000 (13:26 -0300)]
Fully reindent before saving

7 years agoIncrease the Debbugs version number
Lars Magne Ingebrigtsen [Mon, 25 Apr 2016 16:50:49 +0000 (18:50 +0200)]
Increase the Debbugs version number

7 years agoAdd a new command debbugs-gnu-patches
Lars Magne Ingebrigtsen [Mon, 25 Apr 2016 16:36:40 +0000 (18:36 +0200)]
Add a new command debbugs-gnu-patches

* packages/debbugs/debbugs-gnu.el (debbugs-gnu-patches): New command.
(debbugs-gnu-get-bugs): Remove the "user tags" cond -- it didn't
allow us to search for bugs with specific tags.

7 years agoGet more info from patches in debbugs-gnu
Lars Magne Ingebrigtsen [Mon, 25 Apr 2016 16:03:38 +0000 (18:03 +0200)]
Get more info from patches in debbugs-gnu

* packages/debbugs/debbugs-gnu.el (debbugs-gnu-insert-changelog):
When handling git-formatted patches, get all the info from the
patches automatically.

7 years agoAdd comment no code change.
Thierry Volpiatto [Mon, 25 Apr 2016 12:51:30 +0000 (14:51 +0200)]
Add comment no code change.

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

7 years agoFix backup fn, DRY and ignore symlinks directories.
Thierry Volpiatto [Mon, 25 Apr 2016 12:22:24 +0000 (14:22 +0200)]
Fix backup fn, DRY and ignore symlinks directories.

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

7 years agoMerge commit 'db005182ad0fd05c07e8e5c085abe6c750e6c578' from ivy
Oleh Krehel [Mon, 25 Apr 2016 10:10:45 +0000 (12:10 +0200)]
Merge commit 'db005182ad0fd05c07e8e5c085abe6c750e6c578' from ivy

7 years agoRename swiper -> ivy
Oleh Krehel [Mon, 25 Apr 2016 10:08:40 +0000 (12:08 +0200)]
Rename swiper -> ivy

7 years agoBump version to 0.8.0
Oleh Krehel [Mon, 25 Apr 2016 10:07:41 +0000 (12:07 +0200)]
Bump version to 0.8.0

7 years agodoc/Changelog.org: Prepare for the 0.8.0 release
Oleh Krehel [Mon, 25 Apr 2016 09:57:11 +0000 (11:57 +0200)]
doc/Changelog.org: Prepare for the 0.8.0 release

7 years ago* arbitools/arbitools.el: Remove unused vars
Stefan Monnier [Mon, 25 Apr 2016 03:51:09 +0000 (23:51 -0400)]
* arbitools/arbitools.el: Remove unused vars

* arbitools.el (arbitools-calculate-standings, arbitools-delete-player)
(arbitools-calculate-standings): Remove unused vars.

7 years agoChange Emacs installation method for Travis CI
Noam Postavsky [Sun, 24 Apr 2016 21:29:05 +0000 (17:29 -0400)]
Change Emacs installation method for Travis CI

* .travis.yml: Don't use sudo, submodules.
(env): Test with additional Emacs versions.
(install): Get Emacs binaries from
https://github.com/npostavs/emacs-travis/releases.  Download ert and
cl-lib if needed.
(script): Split compilation and testing into separate steps.
* Rakefile: Use batch-byte-compile.  Treat compilation warnings as
errors.

7 years agopackages/arbitools.el: Fixed some bugs
David Gonzalez Gandara [Sun, 24 Apr 2016 09:15:21 +0000 (11:15 +0200)]
packages/arbitools.el: Fixed some bugs

7 years agopackages/arbitools.el: Fixed some bugs
David Gonzalez Gandara [Sun, 24 Apr 2016 09:09:39 +0000 (11:09 +0200)]
packages/arbitools.el: Fixed some bugs

7 years agoImprove backup-files by handling symlinks and time-stamp errors.
Thierry Volpiatto [Sun, 24 Apr 2016 05:07:28 +0000 (07:07 +0200)]
Improve backup-files by handling symlinks and time-stamp errors.

* dired-async.el (dired-async-create-files): Rework backup-files.

7 years agoDecide field clearing based on command's effect
Noam Postavsky [Sat, 23 Apr 2016 20:36:10 +0000 (16:36 -0400)]
Decide field clearing based on command's effect

In [1] we started deciding clearing based on a command's
delete-selection property, but it turns out that some commands perform
insertion, and optionally use the region's contents.  So these commands
should have a nil delete-selection property, but they still ought to
clear a snippet field when used.

To achieve this, we now check if the command has inserted text in the
post-change hook of the field overlay.

* yasnippet.el (yas--skip-and-clear): Add optional FROM paramter.  Only
clear non-empty fields.
(yas--skip-and-clear-field-p): Check the change start and length
instead of current command delete-selection property.
(yas--on-field-overlay-modification): Perform field clearing on the
post-change call.

[1]: acf2cdd "Decide field clearing commands based on delsel"

7 years agoMerge pull request #62 from jwiegley/backup_files
Thierry Volpiatto [Sat, 23 Apr 2016 19:05:42 +0000 (21:05 +0200)]
Merge pull request #62 from jwiegley/backup_files

Allow reproducing "cp --backup=numbered from to".

7 years agoAllow reproducing "cp --backup=numbered from to".
Thierry Volpiatto [Sat, 23 Apr 2016 09:10:51 +0000 (11:10 +0200)]
Allow reproducing "cp --backup=numbered from to".

* dired-async.el (dired-async-create-files):
When using a file-creator named 'backup-file, files are
copied to destination without overwriting existing files,
making a versionned copy of original files.

7 years agoivy.el (ivy--format-minibuffer-line): Update
Oleh Krehel [Fri, 22 Apr 2016 18:44:00 +0000 (20:44 +0200)]
ivy.el (ivy--format-minibuffer-line): Update

Add "counsel-ag counsel-pt" to the special highlight behavior.

Re #483

7 years agoAdd a couple tests for ivy-read with alists
Oleh Krehel [Fri, 22 Apr 2016 08:39:08 +0000 (10:39 +0200)]
Add a couple tests for ivy-read with alists

* ivy-test.el (ivy-read): Add tests.

To summarize how it works:

1. Only the keys of the alist are offered for completion, not the values
- this is the standard Emacs behavior.

2. `ivy-read' will return the selected key, not the value or the cons
cell.

3. When :action is specified, it will be called with the value
corresponding to the selected key. Not the key, and not the cons.

This allows keys to work as aliases for the actual data, and :action
arguments to be simple functions that deal with data (i.e. not having to
deal with the `cdr' of the passed argument).

7 years agoWhen selecting a non-existing key in an alist, return that key
Oleh Krehel [Fri, 22 Apr 2016 08:31:20 +0000 (10:31 +0200)]
When selecting a non-existing key in an alist, return that key

* ivy.el (ivy-call): Previously, nil was returned.

7 years agoDon't highlight that match in the file name part
Oleh Krehel [Fri, 22 Apr 2016 07:33:55 +0000 (09:33 +0200)]
Don't highlight that match in the file name part

ivy.el (ivy--format-minibuffer-line): Fix for `counsel-git-grep'.

Fixes #483

7 years ago* seq-24.el (seq-concatenate,seq-into,seq--make-bindings): Use _
Stefan Monnier [Fri, 22 Apr 2016 04:47:44 +0000 (00:47 -0400)]
* seq-24.el (seq-concatenate,seq-into,seq--make-bindings): Use _

rather than t as catch-all for pcase.

7 years ago* packages/javaimp/javaimp.el (javaimp): Add a parent group
Stefan Monnier [Fri, 22 Apr 2016 04:45:34 +0000 (00:45 -0400)]
* packages/javaimp/javaimp.el (javaimp): Add a parent group

(javaimp--maven-xml-load-tree): Fix reference to free var `project-elt`.
(javaimp-organize-imports): Use cl-lib name.

7 years agoswiper.el (swiper--multi-candidates): Add check
Oleh Krehel [Thu, 21 Apr 2016 14:41:55 +0000 (16:41 +0200)]
swiper.el (swiper--multi-candidates): Add check

Avoid calling `make-string' with a negative number.

Fixes #481

7 years agoFix csv-mode to delete its own overlays only
Leo Liu [Thu, 21 Apr 2016 11:35:42 +0000 (19:35 +0800)]
Fix csv-mode to delete its own overlays only

* csv-mode/csv-mode.el (csv--make-overlay, csv--delete-overlay): New
  functions.
  (csv-align-fields, csv-unalign-fields, csv-transpose): Use them.

7 years agoivy.el (ivy--magic-file-slash): Allow "non-existing-dir//"
Oleh Krehel [Thu, 21 Apr 2016 07:01:21 +0000 (09:01 +0200)]
ivy.el (ivy--magic-file-slash): Allow "non-existing-dir//"

Fixes #480

8 years agocounsel.el (counsel--async-sentinel): Add safeguard to time-since
Oleh Krehel [Wed, 20 Apr 2016 10:26:28 +0000 (12:26 +0200)]
counsel.el (counsel--async-sentinel): Add safeguard to time-since

Fixes #479

8 years agodoc/ivy.org: Add a note on :predicate
Oleh Krehel [Tue, 19 Apr 2016 14:29:24 +0000 (16:29 +0200)]
doc/ivy.org: Add a note on :predicate

8 years agobug-hunter: Improve the error message when emacs -Q fails
Artur Malabarba [Tue, 19 Apr 2016 05:56:39 +0000 (02:56 -0300)]
bug-hunter: Improve the error message when emacs -Q fails

8 years agoFix a typo in the readme
Artur Malabarba [Mon, 18 Apr 2016 06:35:45 +0000 (03:35 -0300)]
Fix a typo in the readme