fix for unexpected point movement

bug fixed: point moves to previous char when called at whitespace-only line
Merge pull request #225 from 4ourbit/patch-1

fix for unexpected point movement
Fix `ledger-string-to-number' for decimal-comma

--=-=-=
Content-Type: text/plain

Hi John,

Small bug, caused by ill-formatted elisp. This is a small patch, so i
think making a fork & opening a Pull Request is a bit too much. I'll go
this route if I make bigger contributions in the future.

From de1fb19ded5300a227d58e3d3094928b211db09b Mon Sep 17 00:00:00 2001
From: Moritz Ulrich <moritz@tarn-vedra.de>
Date: Sat, 28 Dec 2013 22:37:54 +0100
Subject: [PATCH] ledger-string-to-number: Fix nil return value with
 decimal-comma.

Unfavorable formatting hid this bug pretty well. In case of true-ish
`decimal-comma' or "decimal-comma' in `ledger-environment-alist', the
ill-formatted `if' (and the whole function) returns nil.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
emacs-mode: Prefix every function/variable/macro with ledger-.

This is the common convention in Emacs Lisp. Not following it might
cause problems with other packages as functions/variables/macros are
always visible to other modules.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
ledger-mode: Add `ledger-remove-effective-date'.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Improve `ledger-insert-effective-date'.

The function now replaces already existing effective dates in the same
line.

With a prefix (C-u C-c C-t), remove the current effective date.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
ledger-mode: Introduce `ledger-default-date-format'.

Some elisp functions depend on a date-format supplied in ~/.ledgerrc. Change these by introducing a default ("%Y/%m/%d").

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Merge pull request #226 from the-kenny/emacs-bugfixes

Bugfixes & Improvements for Emacs Support

Thanks!
Context-aware pcomplete rules.

Provide completions based on information retrieved with 'ledger-context-at-point'.
To support step-by-step completion of transactions some more patterns were added
to 'ledger-line-config'. The actual completion rules mostly reuse some of the
convenient input commands that are buried in ledger-mode. Using the standard
pcomplete termination string (" ") to allow a "context switch" at the end of each
completion step.
Plugging ledger pcomplete into completion-at-point.

Added documentation on how to use pcomplete transparently via completion-at-point.
Fix for pcomplete Metadata rule.
Merge pull request #227 from 4ourbit/patch-2

More context-aware ledger pcomplete rules.

Thanks.
Add `ledger-read-date' - Read date & default to today.
`ledger-insert-effective-date': use `ledger-read-date'.

Running `ledger-insert-effective-date' will now prompt for a date with
a pre-filled value of the `(ledger-year-and-month)' ("2014/01/"). Just
pressing RET without inserting the 'day'-portion will insert the date
of today.
ledger-reconcile: Add option to insert an effective date when clearing transactions.
`ledger-read-date': Use `ledger-minibuffer-history'.
Use `ledger-read-date' where applicable.
Merge pull request #228 from the-kenny/emacs-prompt-effective-date

Emacs: Improve effictive-date-handling
Fix emacs lisp build chain
Move emacs lisp installation destination to subdirectory