Re: Cannot get ledger-mode to run properly
On 2015-01-10 05:12, Phil Gee philipp.gi...@googlemail.com writes: Hello, I am fairly new to ledger and emacs. Ok, to be more precise I currently give emacs a second chance by using it for ledger. The latter one works perfectly fine as command line tool in any folder, ie ledger is to be found in the $PATH-variable. However, if I try to run ledger-mode in emacs (obviously after setting it up in .emacs as described in the manual) I get the error message after trying to generate a balance record: Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal === /bin/bash: ledger: command not found I never know which path I need to set, but there are two places possible. Here is what I have in my configuration file: #+begin_src emacs-lisp (setenv PATH (concat /Users/schmitta/bin:/usr/local/bin: /Users/schmitta/.cabal/bin: /usr/local/MacGPG2/bin: (getenv PATH))) (push /Users/schmitta/bin exec-path) (push /usr/local/bin exec-path) (push /usr/local/MacGPG2/bin exec-path) (push /Users/schmitta/.cabal/bin exec-path) #+end_src Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: PGP signature
Re: Ledger Releases and Thirdparty Code
Hi John, None, great idea, Alexis. After having slept over the changes I proposed I'm leaning towards an updated git submodule approach, see https://github.com/ledger/ledger/pull/366 It would be great if you and/or other people building Ledger from the git repo could do some testing, as to ensure smooth sailing as things improve with the build system. I'm willing to accompany those tests on #ledger. It is get better folks, but may be a bit bumpy in the beginning. Alexis -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Ledger Releases and Thirdparty Code
Looks good! I was able to compile, but I had to run `git submodule sync` then `git submodule update` for `acprep` to run. On 11 January 2015 at 11:32, Alexis surryh...@gmail.com wrote: Hi John, None, great idea, Alexis. After having slept over the changes I proposed I'm leaning towards an updated git submodule approach, see https://github.com/ledger/ledger/pull/366 It would be great if you and/or other people building Ledger from the git repo could do some testing, as to ensure smooth sailing as things improve with the build system. I'm willing to accompany those tests on #ledger. It is get better folks, but may be a bit bumpy in the beginning. Alexis -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Report format strings
Hi Richard, I've copied the register-format string from the manual and put it into a lyons.ledgerrc file https://gist.githubusercontent.com/afh/1b7d85928f464c99bcee/raw/707d3963f9cd5eccc41dc60e2a7a737ed20b2373/lyons.ledgerrc When I run ledger --init-file lyons.ledgerrc test/input/sample.dat I see the familiar register output. When I start editing lyons.ledgerrc I can change the register output to my heart's desire. Please download the above gist and store it as a .ledgerrc and retry. Hope this helps, Alexis -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Report format strings
Thanks again Alexis. It was only the escaped quotes that caused errors then. The \n is accepted. What you posted is the same as the pdf manual but without the enclosing quotes and the four backslash escapes. And experiment reveals code-width is not defined, but I found that I can put an integer in the string instead, and get the required result. So that basically solves the problem I was having. Thanks to all who helped. richard On Sunday, 11 January 2015 13:36:07 UTC, unices wrote: Hi Richard, I've copied the register-format string from the manual and put it into a lyons.ledgerrc file https://gist.githubusercontent.com/afh/1b7d85928f464c99bcee/raw/707d3963f9cd5eccc41dc60e2a7a737ed20b2373/lyons.ledgerrc -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Cannot get ledger-mode to run properly
That was the needed solution. Thanks a lot! Am Samstag, 10. Januar 2015 14:12:10 UTC+1 schrieb Phil Gee: Hello, I am fairly new to ledger and emacs. Ok, to be more precise I currently give emacs a second chance by using it for ledger. The latter one works perfectly fine as command line tool in any folder, ie ledger is to be found in the $PATH-variable. However, if I try to run ledger-mode in emacs (obviously after setting it up in .emacs as described in the manual) I get the error message after trying to generate a balance record: Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal === /bin/bash: ledger: command not found Hmm... Could it be that the emacs shell works with a different $PATH-variable? My .emacs-file contains the following passage (copypasted from the manual): ;; Setting up Ledger (autoload 'ledger-mode ledger-mode A major mode for Ledger t) (add-to-list 'load-path (expand-file-name /usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/ledger)) (add-to-list 'auto-mode-alist '(\\.ledger$ . ledger-mode)) I tried to append my $PATH-Variable by reading it during the initialization: (let ((path (shell-command-to-string . ~/.bashrc; echo -n $PATH))) (setenv PATH path) (setq exec-path (append (split-string-and-unquote path :) exec-path))) However, without any success... What am I doing wrong? Best, Philipp -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Cannot get ledger-mode to run properly
I am glad you got it working, but can you explain to me in more detail what you did to get that silly error message? I really hate error messages that are not helpful. seems to be the least helpful i have seen and I don't know where it came from. On Sat, Jan 10, 2015 at 6:12 AM, Phil Gee philipp.gi...@googlemail.com wrote: Hello, I am fairly new to ledger and emacs. Ok, to be more precise I currently give emacs a second chance by using it for ledger. The latter one works perfectly fine as command line tool in any folder, ie ledger is to be found in the $PATH-variable. However, if I try to run ledger-mode in emacs (obviously after setting it up in .emacs as described in the manual) I get the error message after trying to generate a balance record: Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal === /bin/bash: ledger: command not found Hmm... Could it be that the emacs shell works with a different $PATH-variable? My .emacs-file contains the following passage (copypasted from the manual): ;; Setting up Ledger (autoload 'ledger-mode ledger-mode A major mode for Ledger t) (add-to-list 'load-path (expand-file-name /usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/ledger)) (add-to-list 'auto-mode-alist '(\\.ledger$ . ledger-mode)) I tried to append my $PATH-Variable by reading it during the initialization: (let ((path (shell-command-to-string . ~/.bashrc; echo -n $PATH))) (setenv PATH path) (setq exec-path (append (split-string-and-unquote path :) exec-path))) However, without any success... What am I doing wrong? Best, Philipp -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Reimbursement tracking
--empty has been in there since before I started using ledger in 2009. On Sun, Jan 11, 2015 at 12:05 AM, Russell Adams rlad...@adamsinfoserv.com wrote: On Sat, Jan 10, 2015 at 09:48:35AM +0100, Stefano Zacchiroli wrote: On Fri, Jan 09, 2015 at 10:18:57AM -0800, David Glasser wrote: Maybe that's the question I'm asking :) Neither -n or --collapse-if-zero do the trick here; they both just report FSA $50 which is missing the R2345 part I do care about. Try this: ledger bal --group-by tag('FSA') %FSA I use a slightly different tagging scheme, but when grouping ledger does suppress groups that balance to 0 (unless you also pass --empty). When was this added? I've used pivot for ages. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Craig, Corona De Tucson, AZ enderw88.wordpress.com -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Cannot get ledger-mode to run properly
I believe the official way to set ledger path in ledger-mode, is to customize variable ledger-binary-path. In emacs, type M-x customize-variable, then ledger-binary-path, and then set the path to the ledger executable. Once done, click on Apply and save so that this is saved in .emacs file. Thierry On Saturday, January 10, 2015 at 2:12:10 PM UTC+1, Phil Gee wrote: Hello, I am fairly new to ledger and emacs. Ok, to be more precise I currently give emacs a second chance by using it for ledger. The latter one works perfectly fine as command line tool in any folder, ie ledger is to be found in the $PATH-variable. However, if I try to run ledger-mode in emacs (obviously after setting it up in .emacs as described in the manual) I get the error message after trying to generate a balance record: Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal === /bin/bash: ledger: command not found -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Cannot get ledger-mode to run properly
Hi all, If you run emacs in linux in a GUI environment the problem is frequently that you set up your PATH in your ~/.bashrc (or equivalent for your shell) but you launch emacs from your GUI launcher, which means that emacs never sees your PATH modifications. The solution to this in most newer desktops (I believe, I have tested in gnome 3) is to add PATH entries that you want to pass on to emacs in your ~/.pam_environment file. Here is an example line: PATH DEFAULT=${PATH}:/usr/local/texlive/2013/bin/x86_64-linux/:/home/egh/local/bin best, Erik At Sun, 11 Jan 2015 10:38:03 +0100, Alan Schmitt alan.schm...@polytechnique.org wrote: On 2015-01-10 05:12, Phil Gee philipp.gi...@googlemail.com writes: Hello, I am fairly new to ledger and emacs. Ok, to be more precise I currently give emacs a second chance by using it for ledger. The latter one works perfectly fine as command line tool in any folder, ie ledger is to be found in the $PATH-variable. However, if I try to run ledger-mode in emacs (obviously after setting it up in .emacs as described in the manual) I get the error message after trying to generate a balance record: Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal === /bin/bash: ledger: command not found I never know which path I need to set, but there are two places possible. Here is what I have in my configuration file: #+begin_src emacs-lisp (setenv PATH (concat /Users/schmitta/bin:/usr/local/bin: /Users/schmitta/.cabal/bin: /usr/local/MacGPG2/bin: (getenv PATH))) (push /Users/schmitta/bin exec-path) (push /usr/local/bin exec-path) (push /usr/local/MacGPG2/bin exec-path) (push /Users/schmitta/.cabal/bin exec-path) #+end_src Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Sent from my free software system http://fsf.org/. -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Ledger Releases and Thirdparty Code
Alexis surryh...@gmail.com writes: After having slept over the changes I proposed I'm leaning towards an updated git submodule approach, see https://github.com/ledger/ledger/pull/366 Why is that? I was rather fond of your git-subtree idea. John -- --- You received this message because you are subscribed to the Google Groups Ledger group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.