From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "B.T. Raven" Newsgroups: gmane.emacs.help Subject: Re: How can I add space between operands and operator in emacs? Date: Sat, 26 Feb 2005 15:56:35 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <1121s4mqelu1t05@corp.supernews.com> References: <87wtsw5a72.fsf@hotmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109455013 29829 80.91.229.2 (26 Feb 2005 21:56:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Feb 2005 21:56:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 26 22:56:53 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D59vV-00032u-Hx for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Feb 2005 22:56:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5ADX-0001Fn-4h for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Feb 2005 17:15:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!4.24.21.218.MISMATCH!newsfeed2.dallas1.level3.net!news.level3.com!bos-service1.raytheon.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 38 Original-Xref: shelby.stanford.edu gnu.emacs.help:128847 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24387 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24387 "Zhou Lei" 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