emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with tumme.el


From: Mathias Dahl
Subject: Re: problem with tumme.el
Date: Sat, 13 Jan 2007 19:39:52 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> Bash has other startup files.
>
> Not when executed as /bin/sh AFAIK (in non-login shells at least).
> This is specifically by design for those kinds of reasons we're
> seeing here.

In this particular place we call the command like this:

  (if (not (= 0 (call-process shell-file-name nil nil nil
                              shell-command-switch command)))

Also, in this case we came up with a solution where the noclobber
setting was not important, the tool (jpegtran) has a -outfile
parameter that we can use instead of redirection with ">".

So, is it OK to fix this now?

We are talking about a change from this:

(defcustom tumme-cmd-rotate-original-options
  "%p -rotate %d -copy all \"%o\" > %t"
  "Format of command used to rotate original image.
Available options are %p which is replaced by
`tumme-cmd-rotate-original-program', %d which is replaced by the
number of (positive) degrees to rotate the image, normally 90 or
270 \(for 90 degrees right and left), %o which is replaced by the
original image file name and %t which is replaced by
`tumme-temp-image-file'."
  :type 'string
  :group 'tumme)


to this:

(defcustom tumme-cmd-rotate-original-options
  "%p -rotate %d -copy all -outfile %t \"%o\""
  "Format of command used to rotate original image.
Available options are %p which is replaced by
`tumme-cmd-rotate-original-program', %d which is replaced by the
number of (positive) degrees to rotate the image, normally 90 or
270 \(for 90 degrees right and left), %o which is replaced by the
original image file name and %t which is replaced by
`tumme-temp-image-file'."
  :type 'string
  :group 'tumme)

/Mathias





reply via email to

[Prev in Thread] Current Thread [Next in Thread]