]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
8 years ago* admin/archive-contents.el: Make :core handling optional
Stefan Monnier [Mon, 30 Nov 2015 13:50:12 +0000 (08:50 -0500)]
* admin/archive-contents.el: Make :core handling optional

(archive--sync-emacs-repo): Drop support for $EMACS_CLONE_REFERENCE and
don't auto-use ../emacs/master if present.
(archive--insert-repolinks): Mark arg as unused.
(archive--metadata): Remove unused var `pv'.

8 years ago* externals-list: Add seq and python as :core packages
Stefan Monnier [Mon, 30 Nov 2015 01:28:28 +0000 (20:28 -0500)]
* externals-list: Add seq and python as :core packages

* .gitignore: Add packages/{seq,python}.
* packages/seq: Remove.

8 years ago* transcribe/transcribe.el: Allow compilation without emms
Stefan Monnier [Mon, 30 Nov 2015 01:16:15 +0000 (20:16 -0500)]
* transcribe/transcribe.el: Allow compilation without emms

8 years ago* transcribe.el: Add `provide' statement
Stefan Monnier [Sun, 29 Nov 2015 22:56:18 +0000 (17:56 -0500)]
* transcribe.el: Add `provide' statement

8 years ago* transcribe.el: Fix up formatting and copyright
Stefan Monnier [Sun, 29 Nov 2015 22:53:02 +0000 (17:53 -0500)]
* transcribe.el: Fix up formatting and copyright

8 years agoAdded some usage information
David Gonzalez Gandara [Sun, 29 Nov 2015 18:48:49 +0000 (19:48 +0100)]
Added some usage information

8 years agoFix due to visual-line-mode weirdness
Oleh Krehel [Sun, 29 Nov 2015 16:01:35 +0000 (17:01 +0100)]
Fix due to visual-line-mode weirdness

* swiper.el (swiper--candidates): Under a specific random condition,
(line-move 1) from the beginning of line doesn't move to the beginning
of the next visual line.

This change fixes it, but will result in an even slower startup when
`visual-line-mode' is active.

Fixes #313

8 years agoPackage transcribe added
David Gonzalez Gandara [Sun, 29 Nov 2015 12:31:58 +0000 (13:31 +0100)]
Package transcribe added

8 years agoswiper.el: Use show-all if outline-show-all isn't there
Oleh Krehel [Sun, 29 Nov 2015 10:19:22 +0000 (11:19 +0100)]
swiper.el: Use show-all if outline-show-all isn't there

Fixes #312

8 years agoFix ivy-resume issue caused by the recursive calls change
Oleh Krehel [Sun, 29 Nov 2015 10:15:17 +0000 (11:15 +0100)]
Fix ivy-resume issue caused by the recursive calls change

* ivy.el (ivy-read): recursive-ivy-last is only set if there's an active
  minibuffer window. If this check isn't made, it causes the previous
  `ivy-last' to be reset after the current one, so `ivy-resume' would
  resume not the last command.

8 years agoFix the preselect for (swiper "one") again
Oleh Krehel [Sun, 29 Nov 2015 10:13:45 +0000 (11:13 +0100)]
Fix the preselect for (swiper "one") again

* ivy.el (ivy--reset-state): Take into account :preselect being integer.
This means that it's void once the candidates are filtered over
:initial-input.

Fixes #292

8 years agoAdd core package soap-client
Thomas Fitzsimmons [Mon, 23 Nov 2015 02:08:34 +0000 (21:08 -0500)]
Add core package soap-client

* externals-list: Fix comment typo.
("soap-client"): New core entry.
* .gitignore: Add packages/soap-client.

8 years agoAdd core package ntlm
Thomas Fitzsimmons [Tue, 17 Nov 2015 03:52:50 +0000 (22:52 -0500)]
Add core package ntlm

* externals-list ("ntlm"): New core entry.
* .gitignore: Add packages/ntlm.

8 years agoMake externals directory removal safer
Thomas Fitzsimmons [Fri, 27 Nov 2015 06:27:00 +0000 (01:27 -0500)]
Make externals directory removal safer

* admin/archive-contents.el (archive--find-non-trivial-file): New
function.
(archive--cleanup-packages): Check result of
archive--find-non-trivial-file before deleting untracked package.

8 years agoDereference symlinks when creating tarballs
Thomas Fitzsimmons [Tue, 24 Nov 2015 04:21:15 +0000 (23:21 -0500)]
Dereference symlinks when creating tarballs

* GNUmakefile (process-archive): Dereference symlinks when
creating tarballs.

8 years agoUse symbolic links for core packages
Thomas Fitzsimmons [Mon, 16 Nov 2015 02:25:04 +0000 (21:25 -0500)]
Use symbolic links for core packages

* admin/archive-contents.el (archive--process-simple-package):
Copy file if it is a symlink to prevent deletion of target source
file.
(archive--core-package-link-file): Rename from
archive--core-package-copy-file.  Create symbolic links for core
files.
(archive--core-package-link-directory): Rename from
archive--core-package-copy-directory.  Call
archive--core-package-link-file.
(archive--core-package-sync): Change message to indicate linking.
Call archive--core-package-link-file.

8 years agoFix the issue caused by recursive swiper calls
Oleh Krehel [Fri, 27 Nov 2015 22:21:40 +0000 (23:21 +0100)]
Fix the issue caused by recursive swiper calls

* swiper.el (swiper--ivy): Look at the return result of `ivy-read';
looking at `ivy-exit' no longer works.

Fixes #311

8 years agoRemove 'field text property for twittering-mode
Oleh Krehel [Fri, 27 Nov 2015 13:32:04 +0000 (14:32 +0100)]
Remove 'field text property for twittering-mode

* swiper.el (swiper--candidates): Update.
(swiper-font-lock-ensure): Add `twittering-mode'.

Fixes #310

8 years agoEnable recursive swiper calls
Oleh Krehel [Fri, 27 Nov 2015 13:03:41 +0000 (14:03 +0100)]
Enable recursive swiper calls

* ivy.el (ivy-read): Don't need to be in the minibuffer to do a
  recursive store/restore.

(ivy--reset-state): Avoid nil string while testing.

Fixes #309

8 years agodoc/Changelog.org: Update up to 2bec99d
Oleh Krehel [Thu, 26 Nov 2015 13:50:54 +0000 (14:50 +0100)]
doc/Changelog.org: Update up to 2bec99d

8 years agobump version to 0.1.1
Michael Heerdegen [Fri, 27 Nov 2015 12:23:06 +0000 (13:23 +0100)]
bump version to 0.1.1

8 years agoel-search-query-replace: add s (toggle splicing) and ? (help) keys
Michael Heerdegen [Fri, 27 Nov 2015 12:21:26 +0000 (13:21 +0100)]
el-search-query-replace: add s (toggle splicing) and ? (help) keys

8 years agoFixes on the previous docstring edits
Oleh Krehel [Fri, 27 Nov 2015 07:17:04 +0000 (08:17 +0100)]
Fixes on the previous docstring edits

8 years agoEdit documentation strings in ivy.el
sjLambda [Thu, 26 Nov 2015 17:15:44 +0000 (09:15 -0800)]
Edit documentation strings in ivy.el

Fixes #308

8 years agoMerge commit '906d8137224c1a5bd1dc913940e0d32ffecf5523' from company-statistics
Ingo Lohmar [Thu, 26 Nov 2015 20:56:30 +0000 (21:56 +0100)]
Merge commit '906d8137224c1a5bd1dc913940e0d32ffecf5523' from company-statistics

* commit '906d8137224c1a5bd1dc913940e0d32ffecf5523':
  Bump version
  Fix --last-keyword

8 years agoBump version
Ingo Lohmar [Thu, 26 Nov 2015 20:46:38 +0000 (21:46 +0100)]
Bump version

8 years agoEase production of functions like ivy-format-function-default
Oleh Krehel [Thu, 26 Nov 2015 11:52:34 +0000 (12:52 +0100)]
Ease production of functions like ivy-format-function-default

* ivy.el (ivy--format-function-generic): New defun.
(ivy-format-function-default):
(ivy-format-function-arrow):
(ivy-format-function-line): Use `ivy--format-function-generic'.

* counsel.el (counsel--M-x-transformer): Add an extra space to simplify
  the logic.

Re #307

8 years agoConvert ivy formatting functions to dotted pairs.
Stephen Whipple [Thu, 26 Nov 2015 07:07:16 +0000 (00:07 -0700)]
Convert ivy formatting functions to dotted pairs.

`ivy-format-function' now expects to operate on dotted pairs
representing (stub . extra), where `stub' is the original
candidate and `extra' is any extra information that has been
added by counsel or other libraries.

The format function can differentiate between the original stub
and extra information and choose how to display the result to
the user.

8 years ago* sm-c-mode.el: Improve "Commentary:" and docstrings
Stefan Monnier [Wed, 25 Nov 2015 19:43:03 +0000 (14:43 -0500)]
* sm-c-mode.el: Improve "Commentary:" and docstrings

* sm-c-mode.el: Improve "Commentary:" and docstrings.
(sm-c-smie--*-token): Fix inf-loop at BOB.

* GNUmakefile (%.reindent): New rule.
(HIJACK): New var.
(%.test): Use $<.

8 years agoUpdate ivy format functions.
Stephen Whipple [Wed, 25 Nov 2015 13:56:02 +0000 (06:56 -0700)]
Update ivy format functions.

`ivy-format-function' now accessible via Customize system.

`ivy-format-function-default' and `ivy-format-function-arrow'
simplified.

New format `ivy-format-function-line' added.

`counsel-M-x' restores `ivy-format-function' before executing command.

Fixes #306

8 years agoAdd counsel-grep
Oleh Krehel [Wed, 25 Nov 2015 14:24:58 +0000 (15:24 +0100)]
Add counsel-grep

* ivy.el (ivy--reset-state): Don't push preselect onto collection for
  :dynamic-collection.
(ivy-recompute-index-swiper-async): New defun. It's useful for
re-anchoring on collections produced async processes. The major
difference from `ivy-recompute-index-swiper' is using `equal' instead of `eq'.

* counsel.el (counsel--async-sentinel): Add index recomputing logic.
When `ivy--old-cands' are null, recompute the index according to
:preselect, otherwise try `ivy--recompute-index'.
(counsel-grep): New command. Very similar to `swiper', except calls an
external process for each key update. Should be much faster for very
large files, both for startup and for matching. For smaller files, it's
less convenient.
(counsel-grep-function): New defun.
(counsel-grep-action): New defun.

Fixes #299

8 years agoVersion: bump to 0.8 in debbugs files
Michael Albinus [Tue, 24 Nov 2015 21:53:43 +0000 (22:53 +0100)]
Version: bump to 0.8 in debbugs files

8 years ago* packages/stream/stream.el (streamp): Tiny optimization.
Stefan Monnier [Tue, 24 Nov 2015 21:07:48 +0000 (16:07 -0500)]
* packages/stream/stream.el (streamp): Tiny optimization.

8 years ago* sm-c-mode: Improve indentation of struct; plus bug fixes
Stefan Monnier [Tue, 24 Nov 2015 21:06:06 +0000 (16:06 -0500)]
* sm-c-mode: Improve indentation of struct; plus bug fixes

* packages/sm-c-mode/GNUmakefile: New file.

* packages/sm-c-mode/sm-c-mode-test.c: Add some "struct" tests.
Plus a #include.

* packages/sm-c-mode/sm-c-mode.el (sm-c-syntax-propertize): Mark the <...>
of #include as a string.
(sm-c-smie--*-token): Try not to look too far back.
(sm-c-smie-rules): Indent the {...} of struct and enum definitions.
(sm-c--bs-realign-1): Fix behavior at EOB.
(sm-c--cpp-is-not-really-a-comment): New function.
(comment-only-p): Use it.

8 years ago* sm-c-mode.el: Auto-align backslashes. Improve indent rules
Stefan Monnier [Tue, 24 Nov 2015 13:29:25 +0000 (08:29 -0500)]
* sm-c-mode.el: Auto-align backslashes.  Improve indent rules

* sm-c-mode/sm-c-mode.el: Auto-align backslashes.  Improve indent rules.
(sm-c--cpp-indent-comment-inside): New function.
(sm-c--cpp-smie-indent-functions): Use it.
(sm-c--cpp-smie-indent): Handle indentation within comments-within-cpp.
(sm-c-smie-grammar): Manually tweak precedence of ":label".
(sm-c-smie-operator-regexp): Parentheses aren't operators.
(sm-c--boi): Add `inner' arg.
(sm-c--boe): Complete the code.
(sm-c-smie--*-token): Refine.
(sm-c-smie-rules): Various tweaks based on tests on src/eval.c and
src/xdisp.c.
(sm-c--bs-changed): New var.
(sm-c--bs-after-change, sm-c--bs-realign, sm-c--bs-realign-1):
New functions.
(sm-c-mode): Use them.

* sm-c-mode/sm-c-mode-test.c: Add a few more cases.

8 years agoIvy-resume should restore the buffer for swiper
Oleh Krehel [Tue, 24 Nov 2015 11:11:11 +0000 (12:11 +0100)]
Ivy-resume should restore the buffer for swiper

* ivy.el (ivy-resume): Update.

Fixes #302

8 years agoFix broken candidate index in ivy-resume
Oleh Krehel [Tue, 24 Nov 2015 11:09:37 +0000 (12:09 +0100)]
Fix broken candidate index in ivy-resume

* ivy.el (ivy--reset-state): When given initial-input, call
  `ivy--preselect-index' on candidates filtered by initial-input. This
  is important for `ivy-resume'.

8 years agoWarn the user about the behavior of ivy--regex-ignore-order
Samuel Loury [Tue, 24 Nov 2015 07:29:04 +0000 (08:29 +0100)]
Warn the user about the behavior of ivy--regex-ignore-order

Fixes #296
Fixes #305

8 years agoMinor fixes to ivy.org and export to ivy.texi
Oleh Krehel [Tue, 24 Nov 2015 11:00:12 +0000 (12:00 +0100)]
Minor fixes to ivy.org and export to ivy.texi

Fixes #304

8 years agoivy.org manual edits
sjLambda [Tue, 24 Nov 2015 03:36:04 +0000 (19:36 -0800)]
ivy.org manual edits

8 years agoFix `counsel-ag` on Windows
kovrik [Mon, 23 Nov 2015 21:24:22 +0000 (10:24 +1300)]
Fix `counsel-ag` on Windows

8 years agoDocument async compilation of packages in README.
Thierry Volpiatto [Mon, 23 Nov 2015 11:19:34 +0000 (12:19 +0100)]
Document async compilation of packages in README.

8 years agoUpdate version in *pkg.el file.
Thierry Volpiatto [Mon, 23 Nov 2015 10:56:06 +0000 (11:56 +0100)]
Update version in *pkg.el file.

8 years agoswiper.el (swiper--action): push-mark only if exited the minibuffer
Oleh Krehel [Sun, 22 Nov 2015 13:00:51 +0000 (14:00 +0100)]
swiper.el (swiper--action): push-mark only if exited the minibuffer

"C-M-n" and "C-M-p" will no longer push mark and annoy with messages.

8 years agoPerform string-match in the original buffer
Oleh Krehel [Sun, 22 Nov 2015 12:59:27 +0000 (13:59 +0100)]
Perform string-match in the original buffer

* ivy.el (ivy--exhibit): Wrap in `with-current-buffer'
  `ivy-state-buffer'.
(ivy-recompute-index-swiper): Reset to the candidate at the current line
number, in case the previous regex resulted in 0 candidates.

Fixes #298

8 years agoswiper.el (swiper--candidates): Require outline
Oleh Krehel [Sat, 21 Nov 2015 22:14:49 +0000 (23:14 +0100)]
swiper.el (swiper--candidates): Require outline

Fixes #297

8 years agoFix the preselect for (swiper "one")
Oleh Krehel [Fri, 20 Nov 2015 12:13:40 +0000 (13:13 +0100)]
Fix the preselect for (swiper "one")

* ivy.el (ivy--reset-state): Ignore INITIAL-INPUT on the first
  step. Then all `ivy--filter' on the second step.
(ivy--preselect-index): Change arglist. No longer takes INITIAL-INPUT.
(ivy--recompute-index): Update the call to `ivy--preselect-index'.

Fixes #292

8 years agoDon't recompute length fn-list, ensure operation is downcased for safety (#57).
Thierry Volpiatto [Fri, 20 Nov 2015 10:28:42 +0000 (11:28 +0100)]
Don't recompute length fn-list, ensure operation is downcased for safety (#57).

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

8 years agoMerge branch 'master' of github.com:jwiegley/emacs-async
Thierry Volpiatto [Fri, 20 Nov 2015 07:57:59 +0000 (08:57 +0100)]
Merge branch 'master' of github.com:jwiegley/emacs-async

8 years agoOnly rename buffers on rename operation (#56).
Thierry Volpiatto [Fri, 20 Nov 2015 07:55:12 +0000 (08:55 +0100)]
Only rename buffers on rename operation (#56).

8 years agoRename buffers after renaming (#56).
Thierry Volpiatto [Fri, 20 Nov 2015 07:43:54 +0000 (08:43 +0100)]
Rename buffers after renaming (#56).

8 years agoivy.el (ivy-alt-done): Split into smaller defuns
Oleh Krehel [Thu, 19 Nov 2015 12:57:28 +0000 (13:57 +0100)]
ivy.el (ivy-alt-done): Split into smaller defuns

* ivy.el (ivy--directory-done): New defun.
(ivy-alt-done): Forward to `ivy--directory-done'.

8 years agoivy.el (ivy-alt-done): Refactor
Oleh Krehel [Thu, 19 Nov 2015 12:52:59 +0000 (13:52 +0100)]
ivy.el (ivy-alt-done): Refactor

Collect all `ivy--directory' branches into a single `cond'.

8 years agoAllow access to TRAMP from "// C-j"
Oleh Krehel [Thu, 19 Nov 2015 10:02:38 +0000 (11:02 +0100)]
Allow access to TRAMP from "// C-j"

* ivy.el (ivy-alt-done): Match not only `ivy-text' but also
  `ivy--current' for TRAMP regex.

Re #285

8 years agoImprove ivy TRAMP support
Stephen Whipple [Thu, 19 Nov 2015 02:41:16 +0000 (19:41 -0700)]
Improve ivy TRAMP support

8 years agoprerequisites to allow replace with multiple expressions
Michael Heerdegen [Wed, 18 Nov 2015 14:51:12 +0000 (15:51 +0100)]
prerequisites to allow replace with multiple expressions

8 years agoivy.el (ivy-completing-read): Fix off by one
Oleh Krehel [Wed, 18 Nov 2015 13:34:46 +0000 (14:34 +0100)]
ivy.el (ivy-completing-read): Fix off by one

Re #295

8 years agoSwitch to using ivy-exit-with-action
Oleh Krehel [Wed, 18 Nov 2015 10:55:45 +0000 (11:55 +0100)]
Switch to using ivy-exit-with-action

* ivy.el (ivy-exit-with-action): Add a missing quote.
(ivy--cd-maybe): Use `ivy-exit-with-action'.

* counsel.el (counsel-find-symbol):
(counsel--info-lookup-symbol):
(counsel-git-grep-query-replace): Use `ivy-exit-with-action'.

* swiper.el (swiper-query-replace):
(swiper-mc): Use `ivy-exit-with-action'.

The previous approach was overwriting the action list, so when
`ivy-resume' was called, only a single action was present.  The new
approach doesn't have this bug.

So now it's possible to e.g. `counsel-describe-function' -> "M-o d" ->
`ivy-resume' -> "M-o o" -> `ivy-resume' -> "M-o i".

8 years agoMake ivy-completing-read handle history as cons
Samuel Loury [Wed, 18 Nov 2015 10:31:48 +0000 (11:31 +0100)]
Make ivy-completing-read handle history as cons

The ivy-read function assumes that history is a symbol, hence
ivy-completing-read now makes sure that a symbol is given to
ivy-read.

Moreover, it makes sure that the value of initial-input is
coherent with the value of the HISTPOS part of the history
variable if it exists.

Fixes #295

8 years agoswiper.el: Modify the behavior with org-mode and visual-line-mode
Oleh Krehel [Tue, 17 Nov 2015 07:27:39 +0000 (08:27 +0100)]
swiper.el: Modify the behavior with org-mode and visual-line-mode

* swiper.el (swiper--candidates): Set `swiper-use-visual-line' even for
  `org-mode'. In that case, reveal all text to prevent `line-move'
  weirdness.
(swiper--ivy): Use `swiper-use-visual-line'.

Re #291
Re #227

8 years agoREADME.md: Add more bindings
Oleh Krehel [Mon, 16 Nov 2015 17:15:21 +0000 (18:15 +0100)]
README.md: Add more bindings

8 years agoNew function iterator-of-directory-files
Michael Heerdegen [Mon, 16 Nov 2015 14:37:12 +0000 (15:37 +0100)]
New function iterator-of-directory-files

8 years agoAdd precise preselect for swiper with visual-line-mode
Oleh Krehel [Mon, 16 Nov 2015 14:25:12 +0000 (15:25 +0100)]
Add precise preselect for swiper with visual-line-mode

* swiper.el (swiper--ivy): Use `count-screen-lines' to calculate the
  visual line number.

Fixes #291

8 years agoIntermediate fix for :preselect with visual-line-mode
Oleh Krehel [Mon, 16 Nov 2015 11:50:42 +0000 (12:50 +0100)]
Intermediate fix for :preselect with visual-line-mode

* swiper.el (swiper--ivy): Use `beginning-of-visual-line' and
  `end-of-visual-line'. This should fix the preselect problem for
  non-duplicate buffer lines.

For duplicate buffer lines, a `visual-line-number-at-pos' function is
necessary. I don't currently know how to implement such a function in an
efficient way. The naive implementation could be pretty inefficient,
comparable to doubling `swiper' startup time with `visual-line-mode'.

Re #291

8 years agoadd a to do
Michael Heerdegen [Mon, 16 Nov 2015 10:42:53 +0000 (11:42 +0100)]
add a to do

8 years agoFix swiper preselect issue with similar or identical lines
Oleh Krehel [Sun, 15 Nov 2015 10:14:05 +0000 (11:14 +0100)]
Fix swiper preselect issue with similar or identical lines

* ivy.el (ivy--preselect-index): Allow PRESELECT to be an integer.

* swiper.el (swiper--anchor):
(swiper--len): Remove unused defvar.
(swiper--init): Update.
(swiper--ivy): Set PRESELECT to `line-number-at-pos'.

Fixes #290

8 years agoedit TODO list
Michael Heerdegen [Sun, 15 Nov 2015 08:34:58 +0000 (09:34 +0100)]
edit TODO list

8 years ago* sm-c-mode.el (sm-c-font-lock-keywords): Match function defs.
Stefan Monnier [Sun, 15 Nov 2015 02:45:50 +0000 (21:45 -0500)]
* sm-c-mode.el (sm-c-font-lock-keywords): Match function defs.

* sm-c-mode-test.c: New file.

8 years agoBump version of other-frame-window.el
Stephen Leake [Sat, 14 Nov 2015 21:16:01 +0000 (15:16 -0600)]
Bump version of other-frame-window.el

* packages/other-frame-window/other-frame-window.el:
(ofw--set-prefix): FIXME => IMPROVEME.
(ofw-delete-from-overriding): Use remq instead of delq to avoid side
effects on let-bound list.
(ofw-switch-to-buffer-advice): Delete FIXME re emacs 24.3.
(ofw--suspend-and-restore): Fix FIXME.
(other-frame-window-mode): Add autoload.
(other-frame-window-mode): Delete code, FIXME re emacs 24.3.
(ofw-dwim--frame-p, ofw-dwim-open-other): FIXME => IMPROVEME.

8 years agoSupport reading debbugs email exchange with Rmail
Eli Zaretskii [Sat, 14 Nov 2015 15:51:45 +0000 (17:51 +0200)]
Support reading debbugs email exchange with Rmail

* packages/debbugs/debbugs-gnu.el: Version: bump to 0.8.
(debbugs-gnu-mail-backend): New defcustom.
(debbugs-read-emacs-bug-with-rmail): New function.
(debbugs-gnu-select-report): Call it if debbugs-gnu-mail-backend
is set to use Rmail.

* packages/debbugs/debbugs-ug.texi (Tabulated Lists): Describe the
new option 'debbugs-gnu-mail-backend'.

8 years agoswiper.el (swiper-all): New command to swiper all file buffers
Oleh Krehel [Sat, 14 Nov 2015 15:27:41 +0000 (16:27 +0100)]
swiper.el (swiper-all): New command to swiper all file buffers

* swiper.el (swiper--candidates): Add NUMBERS-WIDTH arg.  It could be
done better by calculating the line count of each buffer and then
getting the max of that, but this way is faster, since the collections
are traversed only once.
(swiper-multi): Update.
(swiper-all): New command. This is like `swiper-multi' where the buffer
list is pre-selected to be all file visiting buffers.
(swiper--multi-candidates): New defun.
(swiper-multi-action-1): Use `swiper--multi-candidates'.
(swiper-multi-action-2): Update - the line number is in the 'display
property of the first char.

Re #234

8 years agoswiper.el (swiper--candidates): Replace "\t" with " "
Oleh Krehel [Sat, 14 Nov 2015 15:23:12 +0000 (16:23 +0100)]
swiper.el (swiper--candidates): Replace "\t" with "    "

This will allow the minibuffer strings to align nicer for
`swiper-multi'.

8 years agoivy.el (ivy--truncate-string): New defun
Oleh Krehel [Sat, 14 Nov 2015 15:22:39 +0000 (16:22 +0100)]
ivy.el (ivy--truncate-string): New defun

* ivy.el (ivy-format-function-default): Use `ivy--truncate-string'.

8 years agocounsel.el (counsel-locate): Add INTIAL-INPUT arg
Oleh Krehel [Sat, 14 Nov 2015 11:10:48 +0000 (12:10 +0100)]
counsel.el (counsel-locate): Add INTIAL-INPUT arg

Fixes #289

8 years agoivy.el (ivy--sort-files-by-date): Fix due to destructive cl-sort
Oleh Krehel [Fri, 13 Nov 2015 15:58:04 +0000 (16:58 +0100)]
ivy.el (ivy--sort-files-by-date): Fix due to destructive cl-sort

8 years agoAllow to sort files by last modification time.
Oleh Krehel [Fri, 13 Nov 2015 14:50:55 +0000 (15:50 +0100)]
Allow to sort files by last modification time.

* ivy.el (ivy--sort-files-by-date): New defun.

Example of use:

(add-to-list
 'ivy-sort-matches-functions-alist
 '(read-file-name-internal . ivy--sort-files-by-date))

This will result in e.g. `find-file' or `counsel-find-file' sorting
files by last modification time.

Fixes #213

8 years agoAllow user-specified matched candidate sorting
Oleh Krehel [Fri, 13 Nov 2015 14:37:15 +0000 (15:37 +0100)]
Allow user-specified matched candidate sorting

* ivy.el (ivy-prefix-sort): Remove defcustom.
(ivy--filter): Forward sorting of matched candidates to `ivy--sort'.
(ivy-sort-matches-functions-alist): New defcustom.
(ivy--sort): New defun.

Fixes #269
Fixes #265

8 years agoivy.el (ivy-prefix-sort): New defcustom, off by default for now
Oleh Krehel [Fri, 13 Nov 2015 14:04:56 +0000 (15:04 +0100)]
ivy.el (ivy-prefix-sort): New defcustom, off by default for now

* ivy.el (ivy--filter): When `ivy-prefix-sort' is non-nil, additionally
  sort the matching candidates with `ivy--prefix-sort'.
(ivy--prefix-sort): New defun.

Fixes #265

8 years agoivy.el (ivy-sort-functions-alist): Update doc
Oleh Krehel [Fri, 13 Nov 2015 13:25:41 +0000 (14:25 +0100)]
ivy.el (ivy-sort-functions-alist): Update doc

Mention `ivy-sort-max-size'.

8 years agoswiper.el: Add support for evil-jumper/backward
Oleh Krehel [Fri, 13 Nov 2015 13:08:26 +0000 (14:08 +0100)]
swiper.el: Add support for evil-jumper/backward

* swiper.el (evil-jumper--set-jump): Declare.
(swiper--init): When `evil-jumper-mode' is on, call `evil-jumper--set-jump'.

* ivy.el (counsel-git-grep-cmd): Declare to silence the byte compiler.

Fixes #268

8 years agoFix --last-keyword
Ingo Lohmar [Fri, 13 Nov 2015 12:40:51 +0000 (13:40 +0100)]
Fix --last-keyword

- work for (< 1 (point-min)), fixes #7
- always return nil (instead of keyword "") if there is not a single
  keyword before point

8 years agoswiper.el (swiper-font-lock-ensure): Add eww-mode
Oleh Krehel [Fri, 13 Nov 2015 11:35:43 +0000 (12:35 +0100)]
swiper.el (swiper-font-lock-ensure): Add eww-mode

8 years agoMerge commit '1a7c480d1e15133b942201f5964fda5e7d74919f' from context-coloring
Jackson Ray Hamilton [Fri, 13 Nov 2015 05:39:10 +0000 (21:39 -0800)]
Merge commit '1a7c480d1e15133b942201f5964fda5e7d74919f' from context-coloring

8 years agoVersion 7.2.0.
Jackson Ray Hamilton [Fri, 13 Nov 2015 05:35:00 +0000 (21:35 -0800)]
Version 7.2.0.

8 years agoFix bugs where spaces messed up varlists.
Jackson Ray Hamilton [Fri, 13 Nov 2015 05:32:21 +0000 (21:32 -0800)]
Fix bugs where spaces messed up varlists.

8 years agoUse containers on Travis.
Jackson Ray Hamilton [Fri, 13 Nov 2015 05:09:52 +0000 (21:09 -0800)]
Use containers on Travis.

8 years agoswiper.el (swiper-font-lock-ensure): Add occur-mode
Oleh Krehel [Thu, 12 Nov 2015 12:37:23 +0000 (13:37 +0100)]
swiper.el (swiper-font-lock-ensure): Add occur-mode

8 years ago* stream.el: Implement `seqp' instead of `seq-p'
Nicolas Petton [Wed, 11 Nov 2015 17:34:06 +0000 (18:34 +0100)]
* stream.el: Implement `seqp' instead of `seq-p'

8 years agoFix #36 Stupid use of quote
Artur Malabarba [Wed, 11 Nov 2015 16:26:22 +0000 (16:26 +0000)]
Fix #36 Stupid use of quote

8 years ago* sm-c-mode: New experimental package
Stefan Monnier [Wed, 11 Nov 2015 15:56:22 +0000 (10:56 -0500)]
* sm-c-mode: New experimental package

8 years agoivy.el (ivy-occur): Give full counsel-git-grep cands
Oleh Krehel [Wed, 11 Nov 2015 15:21:02 +0000 (16:21 +0100)]
ivy.el (ivy-occur): Give full counsel-git-grep cands

This means that the " | head -n 200" speed-up isn't used and full
candidates are returned.

8 years agoivy.el (ivy-occur-mode-map): Bind "q" to quit-window
Oleh Krehel [Wed, 11 Nov 2015 15:14:55 +0000 (16:14 +0100)]
ivy.el (ivy-occur-mode-map): Bind "q" to quit-window

8 years agoAllow counsel-git-grep -> ivy-occur -> wgrep
Oleh Krehel [Wed, 11 Nov 2015 14:47:02 +0000 (15:47 +0100)]
Allow counsel-git-grep -> ivy-occur -> wgrep

* ivy.el (ivy-exit-with-action): New defun.
(ivy-occur-action): Remove defvar. It's part of `ivy-occur-last' now.
(ivy-occur-last): Update doc.
(ivy-occur-map): Rename to `ivy-occur-mode-map'.
(ivy-occur-mode): New major mode.
(ivy-occur): When the caller is `counsel-git-grep', enter `grep-mode';
otherwise enter the new `ivy-occur-mode'.
For `wgrep' to work, two things are changed: candidates need to start on
the 5th line, and candidates need to be prefixed with "./".
(ivy-occur-read-action): New command, bound to "a".
(ivy-occur-dispatch): New command, bound to "o".
(ivy-occur-press): Update to work with `grep-mode'.
(ivy-occur-grep-mode-map): New defvar.
(ivy-occur-grep-mode): New major mode. Basically, it's grep-mode with
"C-x C-q" bound to `wgrep-change-to-wgrep-mode'.

8 years agoivy.el (ivy-dispatching-done): Don't set action permanently
Oleh Krehel [Wed, 11 Nov 2015 14:46:22 +0000 (15:46 +0100)]
ivy.el (ivy-dispatching-done): Don't set action permanently

8 years agocounsel.el (counsel--find-symbol): Silence byte compiler
Oleh Krehel [Wed, 11 Nov 2015 14:38:45 +0000 (15:38 +0100)]
counsel.el (counsel--find-symbol): Silence byte compiler

8 years agoswiper.el (swiper-toggle-face-matching): Add and bind to "C-c C-f"
Oleh Krehel [Wed, 11 Nov 2015 11:01:43 +0000 (12:01 +0100)]
swiper.el (swiper-toggle-face-matching): Add and bind to "C-c C-f"

* swiper.el (swiper-map): Bind `swiper-toggle-face-matching' to
  "C-c C-f".
(swiper-invocation-face): New defvar.
(swiper--ivy): Set `swiper-invocation-face'.
(swiper-toggle-face-matching): Toggle `ivy-state-matcher' between
nil (the initial value) and 'swiper--face-matcher.
(swiper--face-matcher): New defun. In addition to filtering CANDIDATES
by having them match REGEXP, also ensure that every match has
`swiper-invocation-face'.

Example of usage:

1. Move point to a variable with e.g. `font-lock-keyword-face' and "C-s"
<input>.

2. Use "C-c C-f" to filter the candidates further by selecting only the
ones that have `font-lock-keyword-face'.
Note that "M-q" (`swiper-query-replace') is also affected by the filtering.

3. Use "C-c C-f" to toggle the filtering off.

Fixes #288

8 years agoAdd gnus-summary-mode and gnus-group-mode to dont-blink-modes
Artur Malabarba [Wed, 11 Nov 2015 10:35:00 +0000 (10:35 +0000)]
Add gnus-summary-mode and gnus-group-mode to dont-blink-modes

8 years agoivy.el (ivy-alt-done): Ensure the trailing slash for directories
Oleh Krehel [Tue, 10 Nov 2015 07:17:34 +0000 (08:17 +0100)]
ivy.el (ivy-alt-done): Ensure the trailing slash for directories

* ivy.el (ivy-alt-done): Update.

8 years agoDon't blink on line movement
Artur Malabarba [Mon, 9 Nov 2015 11:43:41 +0000 (11:43 +0000)]
Don't blink on line movement

Related to #35

8 years agoMerge commit '80b00ddef6dffad7086174c2c57f29ef28b69d27'
Michael Heerdegen [Mon, 9 Nov 2015 05:11:08 +0000 (06:11 +0100)]
Merge commit '80b00ddef6dffad7086174c2c57f29ef28b69d27'