summaryrefslogtreecommitdiff
path: root/lisp/ledger-fontify.el
Commit message (Collapse)AuthorAgeFilesLines
* Emacs Lisp files have been moved to https://github.com/ledger/ledger-modeJohn Wiegley2016-08-021-201/+0
|
* Globally changed set-text-properties to use 'font-lock-face vice 'face. ↵Craig Earls2016-02-281-1/+1
| | | | This was a compatibility problem with spacemacs.
* fontify recurring transaction in ledger-mode [ci skip]paulbdavis2015-09-181-1/+2
|
* [emacs] C-x h M-x untabify RETthdox2015-02-101-121/+121
| | | | | | C-x h M-x indent-region RET [ci skip]
* [emacs] Fontification should work independentily on where the point currently isKonstantin Nazarov2015-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a subtle bug that happens only when org-src-fontify-natively is enabled: (setq org-src-fontify-natively t) If then you create a Babel block with ledger text, it won't be fontified. This happens because the 'ledger-fontify-buffer-part' starts fontification from the current 'point', which in case of org-src-font-lock-fontify-block happens to _not_ point to the beginning of buffer. Instead it points to the original org-mode buffer. This doesn't happen when one opens regular files, because the 'point' is almost always at the beginning of the file. To reproduce the bug, you can do the following: (defun fontify-test() (let ((lang-mode 'ledger-mode) pos next) (with-current-buffer (get-buffer-create "ledger-fontification-bug") (unless (eq major-mode lang-mode) (funcall lang-mode)) (erase-buffer) (insert "2015/01/09 asdf\n foo\n bar\n" " ") (font-lock-fontify-buffer) (switch-to-buffer "ledger-fontification-bug") ))) Call 'fontify-test' and see that the buffer is not fontified. [ci skip]
* [emacs] Fix byte compilation warningsSteve Purcell2014-12-091-2/+7
|
* [emacs] Parse transaction leading lines more robustlySteve Purcell2014-12-091-19/+20
| | | | | | This began with noticing that the code didn't support the (ugly, yet valid) case of a tab between the date and txn description. I took the opportunity to make the regexes more consistent along the way.
* Another fonitification fix. and clean up a stray reference to function removed.Craig Earls2014-12-021-20/+13
|
* Adjust payee line fortification.Craig Earls2014-12-021-1/+3
|
* Doc string cleanup.Craig Earls2014-12-011-8/+11
|
* Simplifies parsing of the beginning of an act. This allows fontifying ↵Craig Earls2014-12-011-14/+15
| | | | effective dates.
* Remove s-trim functions since they stomp on s.el.Craig Earls2014-11-271-18/+2
|
* Smash a bug that cause the status on a posting with no amount to bleed into ↵Craig Earls2014-11-111-20/+49
| | | | the next line.
* Improve finding boundaries of elements for fontification. Also added P for ↵Craig Earls2014-11-071-2/+4
| | | | price directives.
* Fix comment detection logic for fortification.Craig Earls2014-09-281-14/+8
|
* Make ledger-fontify-xact-state-overrides nil by defaultCraig Earls2014-09-221-2/+2
|
* All navigation functions moved to ledger-navigate.Craig Earls2014-09-131-3/+3
| | | | Reduce several overlapping functions.
* everything appears to work with no empty lines between xacts.Craig Earls2014-09-131-13/+25
|
* Minor refactoring and code cleanupCraig Earls2014-09-101-31/+3
|
* New fortification is working.Craig Earls2014-09-081-27/+27
| | | | Code pruned.
* Seems to be working. I wasn't ensuring I caught all the xacts in a region ↵Craig Earls2014-09-081-13/+11
| | | | | | specified by hit lock. Now I need to prune code
* Solved the fight between jit-lock. But for some reason it isn't calling it ↵Craig Earls2014-09-051-1/+1
| | | | for all regions in the buffer.
* jit-lock is now calling ledger-fontify-buffer-part, but ↵Craig Earls2014-09-051-1/+1
| | | | font-lock-fontify-region is still being called and fighting with it.
* meh. Still chugging along.Craig Earls2014-09-051-6/+7
|
* improved xact iteration so fontify-whole-buffer doesn't miss xact separated ↵Craig Earls2014-09-041-4/+4
| | | | by more than a single empty line
* Not working well, try something else on new-fontification-scheme-2Craig Earls2014-08-261-3/+17
|
* fontifying xact starts and postings.Craig Earls2014-08-241-13/+28
| | | | initial testing looks better than previous font-lock methods. Need run time and performance testing.
* Set up fontification independent of font-lock.Craig Earls2014-08-241-0/+173
Basic functionality in place. need to test further and expand detail fortification.