[Buildd-tools-devel] Coding style

Roger Leigh rleigh at whinlatter.ukfsn.org
Sun Nov 27 21:47:03 UTC 2005


Hi folks,

Does anyone know how to set up Emacs perl/cperl mode to indent the
sources correctly?  Upstream uses 8 columns with 4 cols when
parentheses continue over lines.  I've tried

 (cperl-break-one-line-blocks-when-indent t)
 (cperl-continued-brace-offset 0)
 (cperl-continued-statement-offset 8)
 (cperl-hairy t)
 (cperl-indent-level 8)
 (cperl-label-offset -6)

but when lines continue to 3 or more lines, they "stair-step":

                } else {
                        $main::chroot_apt_options .=
-                       " -o Dir::State=$absroot/var/lib/apt".
-                       " -o Dir::Cache=$absroot/var/cache/apt".
-                       " -o Dir::Etc=$absroot/etc/apt";
+                               " -o Dir::State=$absroot/var/lib/apt".
+                                       " -o Dir::Cache=$absroot/var/cache/apt".+                                               " -o Dir::Etc=$absroot/etc/apt";                }

This should really be

                        $main::chroot_apt_options .=
                                " -o Dir::State=$absroot/var/lib/apt".
                                " -o Dir::Cache=$absroot/var/cache/apt".
                                " -o Dir::Etc=$absroot/etc/apt";

Does anyone know how to rectify this?


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.



More information about the Buildd-tools-devel mailing list