emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: John Hendy <jw.hendy@gmail.com>
Cc: "Loyall, David" <david.loyall@nebraska.gov>,
	emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: We're doing it wrong. [WAS]: Zip utility on Windows for ODT exporter
Date: Sat, 06 Apr 2013 20:09:15 +0200	[thread overview]
Message-ID: <87d2u7bkfo.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CA+M2ft_c+CU_4ks+Yp8Rd=M3mYn9kyD7Oup7qoD=T3a5x+jDOw@mail.gmail.com> (John Hendy's message of "Sat, 6 Apr 2013 12:56:08 -0500")

Hi John,

John Hendy <jw.hendy@gmail.com> writes:

> I guess there's no time like the present for learning some lisp.

:)

> *If* I can figure out how to do this, it would be a simple variable to
> set the name of the zip utility. I'd add documentation specific to
> Windows linking to INFO-zip or some other utility, instructions, and
> then to set the variable to "C:/path/to/zip.exe" instead of just
> "zip."

There are three occurrences of "zip" in ox-odt.el.

But two of them come with switches (see lines 4101):

	  (cmds `(("zip" "-mX0" ,target-name "mimetype")
		  ("zip" "-rmTq" ,target-name "."))))

Two problems: (1) I don't know what these switches do, and
(2) I infer there are specific to zip.

So you would need to find out if there are necessary and what
equivalent switches are needed for other zip utilities.  If they
are not necessary, let's remove them.  If these switches are the
same for all zip utilities (we can dream, right?), let's only 
have an option `org-odt-zip-executable'.

If they are pecualiar to zip, then maybe the option should be an
alist of executables to search for, along with formatting strings
for those two occurrences -- something like:

(setq org-odt-zip-executable
      '(("zip" "zip -mX0 %s mimetype" "zip -rmTq %s .")))

> *nix users could simply leave the default variable, "zip", or change
> to a direct path as well if they wanted.

Yes.  The problem is with the switches.  That would be too simple
otherwise :)  Let us know if you can come up with something that
is good enough for you!

-- 
 Bastien

  reply	other threads:[~2013-04-06 18:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27 14:06 We're doing it wrong. [WAS]: Zip utility on Windows for ODT exporter Loyall, David
2013-03-27 22:04 ` John Hendy
2013-04-06  0:10   ` Bastien
2013-04-06 17:56     ` John Hendy
2013-04-06 18:09       ` Bastien [this message]
2013-04-06 18:15         ` John Hendy
2013-04-06 18:19           ` Bastien
2013-04-06 20:54           ` Achim Gratz
2013-04-07  7:50 ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2013-04-11 14:58 Loyall, David
2013-04-11 15:11 ` Bastien
2013-04-11 18:13 ` Achim Gratz

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=87d2u7bkfo.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=david.loyall@nebraska.gov \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@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).