Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problems with integrating Emacs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike  
View profile  
 More options Sep 1 2012, 1:38 pm
From: Mike <mr.pr...@gmail.com>
Date: Sat, 1 Sep 2012 10:38:34 -0700 (PDT)
Local: Sat, Sep 1 2012 1:38 pm
Subject: Problems with integrating Emacs

Dear Mr. Sitz and everyone else.

First off, thanks for a great plugin that nears almost a total conversion,
if you will. I never quite realized the potential in this project (have
been watching the github repo for some time) until I read the vimdoc that
seems to be most update.

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)

 With the (seemingly) correct g:org_command_for_emacsclient ==
'emacsclient' trying to re-evaluate that table results in no such thing.
The numbers stay the same.

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.

Now this looks an Emacs error to me. I think I saw some documentation
mentioning something about modifying `.emacs` but no instructions found!

Both Emacses 23 and 24 (org 7.8.11) affected. Dot-emacs is empty for all
intents and purposes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Herbert Sitz  
View profile  
 More options Sep 1 2012, 8:34 pm
From: Herbert Sitz <hes...@gmail.com>
Date: Sat, 1 Sep 2012 17:33:59 -0700
Local: Sat, Sep 1 2012 8:33 pm
Subject: Re: Problems with integrating Emacs

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mikael Puhakka  
View profile  
 More options Sep 2 2012, 3:39 am
From: Mikael Puhakka <mr.pr...@gmail.com>
Date: Sun, 2 Sep 2012 10:39:09 +0300
Local: Sun, Sep 2 2012 3:39 am
Subject: Re: Problems with integrating Emacs
I think this might be silently failing. I killed the emacs server and
rerun any evaluation. Vim will happily tell me that calculations are
complete. This setup will not launch an emacs server for me; any
emacsclient runs from the command line result in failing.

The conversion scripts in .emacs didn't improve the situation.

I will be testing the eval routines myself but I'm not too skilled with
emacs. Thank you for helping me out.

Oh, for reminding me! Exporting to HTML works well; exporting to text
does not! When I do a text export, it grabs an old testing of mine (my
initial studies in org-mode some time ago) that is exported. The exports
aren't my primary issue here but perhaps it'll lead us to something.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »