From: "Andreas Röhler" <andreas.roehler@online.de>
To: help-gnu-emacs@gnu.org
Subject: Re: spaces before function calls in perl
Date: Tue, 11 Mar 2008 07:38:16 +0100 [thread overview]
Message-ID: <200803110738.16547.andreas.roehler@online.de> (raw)
In-Reply-To: <200803102200.m2AM0ST17789@f7.net>
Am Montag, 10. März 2008 23:00 schrieb Karl Berry:
> The standard GNU style is to put spaces before function calls, and
> between function arguments, as in:
>
> foo (1, 2, 3);
>
> Does anyone happen to know of a way to get these spaces inserted
> automatically (that is, when typing a "(" or ","), in a perl mode? I
> can imagine some ways to hack it up, but it seemed like it might already
> exist. I just couldn't find it.
>
> Thanks,
> Karl
>
>
>
It seems "cperl-mode.el" contains that kind of things:
,----
| (defcustom cperl-electric-lbrace-space nil
| "*Non-nil (and non-null) means { after $ should be preceded by ` '.
`----
So a hack could start from there.
Andreas Röhler
next prev parent reply other threads:[~2008-03-11 6:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 22:00 spaces before function calls in perl Karl Berry
2008-03-11 6:38 ` Andreas Röhler [this message]
[not found] <mailman.8676.1205186600.18990.help-gnu-emacs@gnu.org>
2008-03-11 11:49 ` Johan Bockgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200803110738.16547.andreas.roehler@online.de \
--to=andreas.roehler@online.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.