From: "B.T. Raven" <ejmn@cpinternet.com>
Subject: Re: How can I add space between operands and operator in emacs?
Date: Sat, 26 Feb 2005 15:56:35 -0600 [thread overview]
Message-ID: <1121s4mqelu1t05@corp.supernews.com> (raw)
In-Reply-To: 87wtsw5a72.fsf@hotmail.com
"Zhou Lei" <dark_eaglet@hotmail.com> wrote in message
news:87wtsw5a72.fsf@hotmail.com...
>
> Hi friends, how can I add a space between operands and operator, like
this: from
> "a=c+++3;" to "a = c++ + 3;"? I use GNU Indent for C code, but GNU
Indent cannot
> deal with something for C++. What should I do? Thanks.
M-% +++ ret ++ + ret !
Since addition is a commutative operation you could have written a = 3 +
c++;
What is the operator precedence of inc and binary +?
Here's an example of something even more perverse:
char*f="char*f=%c%s%c;main()
{printf(f,34,f,34,10);}%c";
main(){printf(f,34,f,34,10);}
or, more on topic:
((lambda (x)
(list x (list (quote quote) x)))
(quote
(lambda (x)
(list x (list (quote quote) x)))))
Both programs print themselves and were called quines by Douglas
Hofstadter, after the logician:
http://www.nyx.net/~gthompso/quine.htm
next prev parent reply other threads:[~2005-02-26 21:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-26 2:25 How can I add space between operands and operator in emacs? Zhou Lei
2005-02-26 21:56 ` B.T. Raven [this message]
2005-02-27 10:25 ` Zhou Lei
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1121s4mqelu1t05@corp.supernews.com \
--to=ejmn@cpinternet.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).