emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: AW <alexander.willand@t-online.de>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Set org-file-apps to open a *.doc file under linux with Word ?
Date: Thu, 05 Dec 2013 17:35:20 +0100	[thread overview]
Message-ID: <1929679.UkPdR2a41B@linux-j9m3.site> (raw)
In-Reply-To: <8738m7jpcv.fsf@gmail.com>

Am Donnerstag, 5. Dezember 2013, 20:51:04 schrieb Jambunathan K:
> AW <alexander.willand@t-online.de> writes:
> > Thank you, customization worked, but it did not start word -- I'm going
> > another way now.
> 
> I am playing a guessing game and really don't know what I am saying.
> 
> Try this.
> 
> 
>     M-: (shell-quote-argument (read-string "Enter string:"))
>          ^^^^^^^^^^^^^^^^^^^^
> 
> When prompted enter
> 
>     whatever wine whatever "%s"
> 
> Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your
> .emacs.  See the attached snippet.el for what I get.
> 
> Instead of passing env as part of the command, I think you can add this
> to your .emacs.
> 
>     (setenv "WINEPREFIX" "/home/AW/.wine-office")
> 
> You can also do
> 
>     M-x setenv
> 
> to set environment variables.

I found out, that things are much more complicated: 

I wrote a bash script "word.sh" (see my other mail on this) and tried to figure 
out how to pass a filename to it. Even this is not obvious, because from the 
viewpoint of Word under Wine filenames differ from the real filename in the 
system. I did not suceed to make Word start and open a file foo.docx. You know, 
something weird as

"word.sh" "C:/users/AW/Meine Dokumente/Dokumente/temp/foo.docx"

made Word start, but not open a document, and Word complains about missing dot 
something. And often people send files with names which are a pain to read, 
including "$" -signs, brackets and whatever. 

The whole thing is way too difficult for me and I have to dismiss the idea.

Thanks to you and everyone who offered help, but it was not a good idea.

Regards,

Alexander

  reply	other threads:[~2013-12-05 16:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04 21:56 Set org-file-apps to open a *.doc file under linux with Word ? AW
2013-12-04 23:26 ` Nick Dokos
2013-12-05  3:12   ` Jambunathan K
2013-12-05  3:18   ` Jambunathan K
2013-12-05 13:36     ` AW
2013-12-05 15:17       ` Jambunathan K
2013-12-05 15:21       ` Jambunathan K
2013-12-05 16:35         ` AW [this message]
2013-12-05 16:40           ` Jambunathan K
2013-12-05 13:34   ` AW
2013-12-05 19:48     ` Achim Gratz
2013-12-05  9:01 ` Achim Gratz
2013-12-05 13:38   ` AW

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1929679.UkPdR2a41B@linux-j9m3.site \
    --to=alexander.willand@t-online.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).