ratsubst within logarithm



Hi,

If I do

texput(%lambda,"\\lambda");
assume(%lambda > 0);
integrate(1/(1+A*exp(%lambda*(p-s))),p,x,inf);

I get an expression where x-s always occurs together, so it would be
convenient to replace them by a single parameter y=x-s.  I tried

ratsubst(y,x-s,%);

but the substitution is not performed inside the logarithm.  Is there
a way I could make Maxima simplify this?  I guess I need to cancel the
exp(something)*exp(-something) terms first inside the log, but I don't
know how.

Best,

Tamas