Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Is this indentation of multi-line argument lists expected?

Aperta
#128 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
emacs-lisp, php
Ambito
tooling

Direzione di ricerca

Riproduci l'esempio in php-mode usando c-set-style con pear, symfony2, wordpress e drupal, quindi confronta l'indentazione tramite TAB o C-M-. Leggi i punti di ingresso dell'indentazione e dello stile di codifica della modalità; il lavoro è concluso quando si determina se il comportamento elencato è intenzionale oppure lo si corregge con un controllo di regressione per gli elenchi di argomenti su più righe.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug

Hi,
I install php-mode from MELPA and usually have the most recent master version (GNU Emacs 24.3.1, php mode-version 1.12, package version 20130902.1944).

Sometime in the last week it seems like indentation of function argument lists that span lines has changed. However, since I haven't explicitly set php-mode's coding style in the past, I am not sure whether this is a bug or user error on my part.

If I open a new file and type

some_function($foo,
$bar,
$baz);

then indent with TAB or C-M-, the second and third arguments remain at the left margin, when I had expected them to be lined up with $foo. This happens when c-set-style is pear, symfony2, wordpress. In drupal style the 2nd & 3rd arguments are indented by two spaces.

After looking briefly at the PEAR standards, it seems like they encourage either all arguments on one line, or putting a newline after the open paren, so now I am wondering if I have been doing argument lists wrong all this time ;-) Is the above the expected behavior?

Lingua principale
Emacs Lisp
Stelle
602
Fork
117
Merge medio
12h 54m
PR unite (30g)
3

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di emacs-php/php-mode

Tutte le issue di emacs-php/php-mode

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.