From: Uwe B. <ou...@ma...> - 2018-02-05 21:23:12
|
>>> "Eric" == Eric Ludlam <Eri...@ma...> writes: Hi Eric Thanks > Your examples work for me , but I don't have Emacs 27. I tried out Emacs 26, same problem, I deactivated any auto-fill function. > The only thing I can think of is some sort of auto-fill behavior is > going off, but that seems unlikely with just an indent-region. What is strange is the following If the file just contains for k=1:N+1 x(k+1)=x(k)+h; y(k+1)=f(x(k+1)); z(k+1)=g(x(k+1)); end Then indent-region does the right thing But if the file has f=@(x)[x*exp(-x)]; g=@(x)[exp(-x^2); for k=1:N+1 x(k+1)=x(k)+h; y(k+1)=f(x(k+1)); z(k+1)=g(x(k+1)); end Then the indent-region function acts in a bizarre way. Can somebody please confirm this? |