Skip to content

Commit

Permalink
Merge commit 'c5d71dc9de76cae94e6b3263be97e0ee2dcf5ede'
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Apr 21, 2016
2 parents 390f309 + c5d71dc commit 349d528
Show file tree
Hide file tree
Showing 14 changed files with 5,515 additions and 1,873 deletions.
5 changes: 5 additions & 0 deletions site-lisp/swiper/.dir-locals.el
@@ -0,0 +1,5 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((emacs-lisp-mode
(indent-tabs-mode . nil)))
2 changes: 1 addition & 1 deletion site-lisp/swiper/Makefile
@@ -1,6 +1,6 @@
emacs ?= emacs

LOAD = -l colir.el -l ivy.el -l swiper.el
LOAD = -l colir.el -l ivy.el -l swiper.el -l counsel.el

.PHONY: all compile clean

Expand Down
51 changes: 41 additions & 10 deletions site-lisp/swiper/README.md
@@ -1,8 +1,8 @@
[![Build Status](https://travis-ci.org/abo-abo/swiper.svg?branch=master)](https://travis-ci.org/abo-abo/swiper)
[![Build Status](https://travis-ci.org/abo-abo/swiper.svg?branch=master)](https://travis-ci.org/abo-abo/swiper) [![MELPA](https://melpa.org/packages/swiper-badge.svg)](https://melpa.org/#/swiper)

## Swiper

Package for GNU Emacs that gives you an overview as you search for a regex
Package for GNU Emacs that shows an overview during regex searching.

![swiper.png](http://oremacs.com/download/swiper.png)

Expand All @@ -17,19 +17,33 @@ There's also a ten minute [video demo](https://www.youtube.com/watch?v=VvnJQpTFV

## Ivy

Ivy is a generic completion method for Emacs, similar to
`icomplete-mode`. It aims to be more efficient, more simple, and more
pleasant to use than the alternatives. It's also highly customizable
and very small.
Ivy is a generic completion mechanism for Emacs. While it operates
similarly to other completion schemes such as `icomplete-mode`, Ivy
aims to be more efficient, smaller, simpler, and smoother to use yet
highly customizable.

To try it, just call <kbd>M-x</kbd> `ivy-mode`, and all generic
completion, including file and buffer names, will be done with Ivy.
To try Ivy, just call <kbd>M-x</kbd> `ivy-mode`. This will enable
generic Ivy completion, including specific completion for file and
buffer names.

## Installation

You can install the package from MELPA / GNU ELPA.
Here is some typical configuration:
Install the `swiper` package from MELPA / GNU ELPA.

## Documentation

### Manual
The manual is available as [HTML](http://oremacs.com/swiper/).

After installing from MELPA, the manual is also available through the `(ivy)` Info node.

The source file for the Info page is
[here](https://github.com/abo-abo/swiper/blob/master/doc/ivy.org).

### Wiki
Ivy and Swiper wiki is here: [the wiki](https://github.com/abo-abo/swiper/wiki).

### Small config example
```elisp
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
Expand All @@ -48,4 +62,21 @@ Here is some typical configuration:
(global-set-key (kbd "C-c k") 'counsel-ag)
(global-set-key (kbd "C-x l") 'counsel-locate)
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox)
(define-key read-expression-map (kbd "C-r") 'counsel-expression-history)
```

## Contributing

### Copyright Assignment

Swiper is subject to the same [copyright assignment](http://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html) policy as Emacs itself, org-mode, CEDET and other packages in [GNU ELPA](http://elpa.gnu.org/packages/). Any [legally significant](http://www.gnu.org/prep/maintain/html_node/Legally-Significant.html#Legally-Significant) contributions can only be accepted after the author has completed their paperwork. Please see [the request form](http://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request-assign.future) if you want to proceed.

The copyright assignment isn't a big deal, it just says that the copyright for your submitted changes to Emacs belongs to the FSF. This assignment works for all projects related to Emacs. To obtain it, you need to send one email, then send one letter (if you live in the US, it's digital), and wait for some time (in my case, I had to wait for one month).

### Style

The basic code style guide is to use `(setq indent-tabs-mode nil)`. It is provided for you in [.dir-locals.el](https://github.com/abo-abo/swiper/blob/master/.dir-locals.el), please obey it.

Before submitting the change, run `make compile` and `make test` to make sure that it doesn't introduce new compile warnings or test failures. Also run <kbd>M-x</kbd> `checkdoc` to see that your changes obey the documentation guidelines.

Use your own judgment for the commit messages, I recommend a verbose style using `magit-commit-add-log`.
6 changes: 3 additions & 3 deletions site-lisp/swiper/colir.el
Expand Up @@ -77,11 +77,11 @@ Optional argument OBJECT is the string or buffer containing the text.
See also `font-lock-append-text-property'."
(let (next prev)
(while (/= start end)
(setq next (next-single-property-change start 'face object end)
prev (get-text-property start 'face object))
(setq next (next-single-property-change start 'face object end))
(setq prev (get-text-property start 'face object))
(when (listp prev)
(setq prev (cl-find-if #'atom prev)))
(if prev
(if (facep prev)
(let ((background-prev (face-background prev)))
(progn
(put-text-property
Expand Down

0 comments on commit 349d528

Please sign in to comment.