GNU bug report logs - #18502
24.4.50; perl-mode indentation problem

Previous Next

Package: emacs;

Reported by: David Howells <dhowells <at> redhat.com>

Date: Thu, 18 Sep 2014 21:52:03 UTC

Severity: normal

Found in version 24.4.50

Fixed in version 25.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: David Howells <dhowells <at> redhat.com>
Cc: 18502 <at> debbugs.gnu.org
Subject: bug#18502: 24.4.50; perl-mode indentation problem
Date: Sun, 21 Sep 2014 18:01:13 -0400
> perl mode automatically indents substantially off to the right following the
> first sub definition that has an odd number of '$' characters in the argument
> spec, eg.:

> 	#!/usr/bin/perl -w

> 	sub add_funds($) {
> 	    return 0;
> 		      }

Indeed, the code that handles this had a bug which made it fail when the
identifier has an underscore.


        Stefan




This bug report was last modified 10 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.