GNU bug report logs - #11090
24.0.94; Allow customization of inline-comment offset

Previous Next

Package: emacs;

Reported by: Philipp Haselwarter <philipp.haselwarter <at> gmx.de>

Date: Sun, 25 Mar 2012 17:25:01 UTC

Severity: normal

Found in version 24.0.94

Fixed in version 24.2

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: Philipp Haselwarter <philipp.haselwarter <at> gmx.de>
To: 11090 <at> debbugs.gnu.org
Subject: bug#11090: 24.0.94; Allow customization of inline-comment offset
Date: Sun, 25 Mar 2012 18:52:35 +0200
[Message part 1 (text/plain, inline)]

When I ran pep8 over some python code it indicated that the offset
between code and comments on the same line should be at least two
whitespace characters.
Ref.:
http://www.python.org/dev/peps/pep-0008/#inline-comments


The attached patch allows for `comment-indent' to configure that offset,
that is currently hard-coded to one space, by introducing the new
variable `comment-inline-offset'.

The default behavior remains unchanged.

-- 
Philipp Haselwarter
[0001-Allow-customization-of-the-offset-between-code-and-i.patch (text/x-patch, attachment)]

This bug report was last modified 13 years and 57 days ago.

Previous Next


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