From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "William Xue" Newsgroups: gmane.emacs.devel Subject: How to use c-style to comment a region? Date: Thu, 10 May 2007 09:46:34 +0800 Organization: wv Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: Quoted-Printable X-Trace: sea.gmane.org 1178761567 2892 80.91.229.12 (10 May 2007 01:46:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 May 2007 01:46:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 10 03:46:04 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HlxjH-0007jA-5u for ged-emacs-devel@m.gmane.org; Thu, 10 May 2007 03:46:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlxqW-0006Eg-QE for ged-emacs-devel@m.gmane.org; Wed, 09 May 2007 21:53:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HlxqT-0006EY-Ej for emacs-devel@gnu.org; Wed, 09 May 2007 21:53:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HlxqS-0006EE-Ip for emacs-devel@gnu.org; Wed, 09 May 2007 21:53:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlxqS-0006E8-EL for emacs-devel@gnu.org; Wed, 09 May 2007 21:53:28 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HlxjC-00056x-0W for emacs-devel@gnu.org; Wed, 09 May 2007 21:45:58 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s17so400014wxc for ; Wed, 09 May 2007 18:45:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:to:subject:from:organization:content-type:message-id:user-agent:mime-version:content-transfer-encoding; b=MaqfMda9QCpDtYgXKAmzFj7HwZI+8zw/px5KbWQvy4GSIzZ2d5lpqjNAuG+779t12mL7Abo3GlZc23WE5K7jFIHu/ZxU9gXpPM3O/Ftj3qiGJzBrAMofCF1/Io6xipoUQEwY0wz3dNDvfRxroA5+3eWLDZaD2IcTuuAOGgISZaI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:subject:from:organization:content-type:message-id:user-agent:mime-version:content-transfer-encoding; b=sxKisuNBHwdLyxTBhHCW7Sw2KORUa2nws94FMJDEuO23GuX8SDKoa/IeZAo0+Yeo/Vf4o87PP30bFhzI9ARqz3Utk0qR82rXuUfELsVXFvo903zZmvLtMbfaR4y7D8Vwrb/jOhEPziOuzt0UJOHtAOt2WLBNSkQlf+oC1BEdXqI= Original-Received: by 10.70.96.3 with SMTP id t3mr2356335wxb.1178761557204; Wed, 09 May 2007 18:45:57 -0700 (PDT) Original-Received: from williamnb ( [222.92.124.222]) by mx.google.com with ESMTP id h10sm4970647wxd.2007.05.09.18.45.56; Wed, 09 May 2007 18:45:57 -0700 (PDT) User-Agent: Opera Mail/9.20 (Win32) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:70730 Archived-At: Hi, In cpp files, in following code, for e.g.: ln_time_out.QuadPart =3D -((LONGLONG) 10 * 1000 * 1000 * 5); I wanted to modify the second 1000 to 2000 for testing, but wanted to ke= ep = the orignal value for restoring it later. after selected 1000 and pressed C-c C-c : ln_time_out.QuadPart =3D -((LONGLONG) 10 * 1000 * // 10= 00 * 5); // 1 second Can it be: ln_time_out.QuadPart =3D -((LONGLONG) 10 * 1000 * /* 10= 00 = */ * 5); // 1 second Maybe there are some settings for it, but I havn't found them. I know that add /* -*- C -*- */ at the beginning of the file can affect = = the comment style for the whole file. That's not my request, I only want a command or a keybinding. Thanks! -- = Sincerely yours, William