GNU bug report logs - #61653
CC Mode: Add new cleanup space-before-keyword-exp

Previous Next

Package: emacs;

Reported by: Jason Thatcher <jason <at> jthat.com>

Date: Mon, 20 Feb 2023 14:09:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jason Thatcher <jason <at> jthat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: CC Mode: Add new cleanup space-before-keyword-exp
Date: Mon, 20 Feb 2023 22:02:45 +1000
[Message part 1 (text/plain, inline)]
Hi,

This patch adds a `space-before-keyword-exp` cleanup to CC Mode that 
inserts a space between a keyword and its subsequent opening 
parenthesis. For example, typing `if(` will clean up to `if (`. Clean up 
occurs when the opening parenthesis is typed, as per `space-before-funcall`.

I would appreciate any feedback. This is my first attempt to contribute; 
I'm not sure if this requires a copyright assignment.

Thanks,
Jason
[0001-CC-Mode-Add-new-cleanup-space-before-keyword-exp.patch (text/plain, attachment)]

This bug report was last modified 2 years and 123 days ago.

Previous Next


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