Just a thought: Can you maybe do M-x toggle-debug-on-error and show where it originates? On Jul 20, 2014 8:32 PM, "Richard Cobbe" <co...@ccs.neu.edu> wrote:
> On Wed, Jul 16, 2014 at 06:19:34AM -0700, Craig Earls wrote: > > I would like to see the specific elisp error that reconciliation > > threw. The reconcile window is populated by output from ledger > > itself, so the included transactions should be there. Right now I > > don't track to see what file the transaction came from, so this is > > probably what threw the error. > > Ok, I just reproduced the error -- thanks for your patience! > > The actual error message I got, in the minibuffer, upon hitting C-c C-c in > the reconciliation window was > Wrong type argument: window-live-p, nil > > However, I happened to discover that it's actually more complicated than > I'd originally thought, as it appears to depend on the width of the Emacs > frame in which I'm doing the reconciliations! In particular, I only get > the error if the window showing the ledger file is wider than > split-width-threshold. > > In my normal configuration, split-width-threshold is 160, and the frame is > 80 characters wide. So, if the frame contains a single window > (main.ledger), then when I hit C-c C-r, the frame is split so that the > reconciliation buffer is below the window that displays the transaction I'm > currently pointing at in the reconciliation buffer. Under this > configuration, when I hit C-c C-c, I get the error above. > > However, when I was reconciling my checking account, I'd resized the Emacs > frame halfway through, because the reconciliation buffer assumes a window > wider than 80 characters. I don't know the precise width, but I'm pretty > sure it was over split-width-threshold. When I finished reconciliation, I > had two windows in the frame, one over the other, with the *reconciliation* > buffer in the bottom window. Upon hitting C-c C-c in the reconciliation > buffer, Emacs then split the upper window horizontally, displaying > main.ledger in one window and included-file.ledger in the other -- so there > are two windows, side-by-side, in the space previously occupied by the > upper window. And I didn't get the error message in this case. > > (Sorry for such a long-winded explanation, but I couldn't figure out how to > make it shorter and still be precise about what I observed.) > > Brief note: I'm working on MacOS 10.9.4, using emacs 24.3.1, patched with > YAMAMOTO Mitsuharu's support for AppKit Unicode rendering. This Emacs > binary is a "native" OSX application, not an X client. I rather doubt that > these details are relevant here, but I mention them out of thoroughness. > > Richard > > -- > > --- > 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.