clean up whitespace (automated by whitespace-cleanup)
add custom faces for current-entry and inserted-item
Teach browse-kill-ring to insert into a specific buffer, not window. This fixes interop issues with popwin.el
Merge pull request #5 from samaaron/add-faces

Add faces and other fixes
Fix bug with a1176080

If you pass a symbol here, it will be interpreted as the name of a
face to use. This works correctly if you use the symbol highlight,
which is the name of a face, or if you define a face called
browse-kill-ring-inserted-item-face. However, a new user will not have
such a face defined (since we don't define it) and will notice
that (even if she sets browse-kill-ring-highlight-current-entry) the
current entry won't be highlight. A similar bug exists for
browse-kill-ring-highlight-inserted-item.
Fix bug with highlighting inserted item

791330f7 introduced a bug by removing a redefinition of the variable
pt. pt as passed in is the value of point in the Kill Ring buffer; it
bears no relationship whatsoever to the value we want, which is the
value of point in the buffer we're inserting into.

Make this a little clearer by using a new name for the variable. This
requires a reindent.
Document the previous fix
Add browse-kill-ring-replace-yank

I'm very used to yank-pop replacing what I just yanked if it wasn't
what I wanted. This brings that behavior to browse-kill-ring.

This might cause puzzling behaviors if you yank something and then
want to yank something else using browse-kill-ring immediately
afterwards. However, it seems that most users of browse-kill-ring
either replace C-y (yank) with browse-kill-ring, or enhance
M-y (yank-pop) without replacing it by using
browse-kill-ring-default-keybindings, so we should be safe to enable
this behavior by default.
goto-char as the last thing in a save-excursion is never right
Refactor do-prepend-insert, do-append-insert, and do-insert into one function

791330f7 did some simplification, which was later improved upon by
88077ef4, to browse-kill-ring-do-insert. Sibling functions
browse-kill-ring-do-prepend-insert and
browse-kill-ring-do-append-insert were left untouched. Since these
functions are basically just copies of each other, refactor the shared
parts into a shared function, browse-kill-ring-insert-and-highlight.
Merge pull request #6 from glasserc/master

misc fixes and browse-kill-ring-replace-yank
Pass correct arguments to browse-kill-ring-setup

This fixes issue #8.
Merge pull request #10 from glasserc/edit-fix

Pass correct arguments to browse-kill-ring-setup
Preview buffer as though current item were inserted

This is implemented using an overlay which is created when
browse-kill-ring-setup is called and deleted on
browse-kill-ring-quit. Because this setup might not work for everyone,
you can disable it using the customize variable
browse-kill-ring-show-preview.

- browse-kill-ring-preview-update: new function, called as a
  post-command-hook, that updates the overlay to show the contents of
  the current item.

- browse-kill-ring-current-string now takes an optional `no-error'
  parameter. If t, this function returns nil instead of erroring.
Merge pull request #9 from glasserc/master

Preview current item in the context of the buffer
Make sure the point is at the end of inserted text

Fix #7.

Signed-off-by: Bao Haojun <baohaojun@gmail.com>
Merge pull request #12 from baohaojun/master

Make sure the point is at the end of inserted text
Fix typo bug

This is the correct fix for #13.
Default to save-and-restore for window configurations

Closes #11.
Fix browse-kill-ring-update

Commit ca0b5f4 broke this function by updating the signature of
browse-kill-ring-setup, but not updating it everywhere.

Additionally, calling browse-kill-ring-setup multiple times leads to
duplicating overlays, so fix that too.

This fixes #15.