On Sun, Sep 2, 2012 at 3:33 AM, Herbert Sitz <hes
...@gmail.com> wrote:
> On Sat, Sep 1, 2012 at 10:38 AM, Mike <mr.pr
...@gmail.com> wrote:
>> But there is something wrong with the Emacs integration here. Whether I run
>> the daemon with `emacs --daemon` or interactively with `M-x server-start`, I
>> can't eval my tables. Consider this minimal example:
>> | item | Qty | Price | Sum |
>> |------+-----+-------+------|
>> | A | 10 | 2300 | 4600 |
>> | B | 1 | 3500 | 7000 |
>> | C | 0 | 1000 | 3000 |
>> | M | 0 | 3700 | 7400 |
>> #+TBLFM: $4=($2*$3)
> Mike --
> Not sure what problem you're seeing, but in investigating I did
> discover a bug. Keep in mind that I have not investigated this on
> Linux yet, only on my Windows install. Emacs server works slightly
> different on Windows.
> The table evaluation works fine if I have an emacsserver and
> emacsclient running before issuing the eval command in VimOrganizer.
> If I rely on the Vim command to autostart Emacs then it hangs up
> somewhere in the process. I then need to quit Emacs to get control
> back in Vim.
> Not sure whether there are problems with any other VimOrganizer/Emacs
> interaction on first invocation where Emacs server is started. I
> think it works fine for all the export functions, so I'll have to
> check how this table eval stuff is different.
>> Interestingly, if I launch the Emacs server interactively and watch it
>> working, it will go and ask the user about re-reading the file that's
>> modified. Not fit for a background process! Sometimes the
>> `~/org-tbl-block.org` is left with incorrect information but most of the
>> time, the data remains unmodified.
> It won't do this if things are set up correctly, at least if the table
> eval (or code, for code blocks) is not causing an error within Emacs.
> Your table evaluates fine in my setup so long as I make sure to have
> the EmacsClient open in Windows (Windows doesn't need explicit command
> to start the Emacs Server).
>> Now this looks an Emacs error to me. I think I saw some documentation
>> mentioning something about modifying `.emacs` but no instructions found!
> There are some suggested functions to add to .emacs file but I think
> they all have to do with minor on-the-fly format conversions, not with
> table eval. I don't think those would be the issue. To make sure
> this isn't problem you can find the code at :h
> vimorg-orgmode-conversion in help docs.
> Hope that helps. I will investigate problem I see with table eval
> hanging when Emacs is not running prior to invoking the eval command.
> Regards,
> Herb