Hi!

Ola Lundqvist wrote:
> Hi again
> 
> After some more investigation I realize that you are not referring to
> function calls but rather arrays.

The array creation function "array" is a function according to PHP.

Nevertheless php-mode indented the same way for other function calls.

> In case you write like this:
> 
> array(
>      'a',
>      'b');
> 
> It will indent correctly. It is only, when you have the first item on the
> same line as the array statement, that you get the wrong indentation.

Interesting.

However, I assume not many people will write code like

$obj = new MyClass(
  "long string or function call with several parameters",
  "long string or function call with several parameters",
  "long string or function call with several parameters");

$obj->printSomething(
  "another string to be printed",
  "even more text");

instead of

$obj = new MyClass("long string or function call with several parameters",
                   "long string or function call with several parameters",
                   "long string or function call with several parameters");

$obj->printSomething("another string to be printed",
                     "even more text");


> I do not know how much that helps but maybe it does.

The other hint - still to be tried out - has more potential to be helpful. :)

In the meantime I've secured the .el file from 1.5.0 :)

Regards

        Joey

-- 
In the beginning was the word, and the word was content-type: text/plain

Please always Cc to me when replying to me on the lists.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to