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 align the comments to start from the same column? Date: Tue, 10 Jul 2007 10:44:58 +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: 7bit X-Trace: sea.gmane.org 1184035517 19218 80.91.229.12 (10 Jul 2007 02:45:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2007 02:45:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 10 04:45:15 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 1I85j0-0006fr-1Z for ged-emacs-devel@m.gmane.org; Tue, 10 Jul 2007 04:45:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I85iz-0007lD-BP for ged-emacs-devel@m.gmane.org; Mon, 09 Jul 2007 22:45:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I85iu-0007j8-RJ for emacs-devel@gnu.org; Mon, 09 Jul 2007 22:45:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I85is-0007iv-Lc for emacs-devel@gnu.org; Mon, 09 Jul 2007 22:45:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I85is-0007ir-Id for emacs-devel@gnu.org; Mon, 09 Jul 2007 22:45:06 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I85is-0002ET-3P for emacs-devel@gnu.org; Mon, 09 Jul 2007 22:45:06 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so1572639wah for ; Mon, 09 Jul 2007 19:45:03 -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:mime-version:content-transfer-encoding:message-id:user-agent; b=C9eSyZ14pxzXsb/Q7mV13TQKi3yENbti+bCFZUE3EU8ptz5LvWYpzlVHgkGJavROlFCvXdJ61EUwgijqJEpI7CaFCVFRLZUQ2pnqmYHqbjFgf26yjC9pUPtcXkOWuxC4dnw4Dp9yQMZ/OSuL6IR5JDOukLPX7uGo9BoYHr30e7Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:subject:from:organization:content-type:mime-version:content-transfer-encoding:message-id:user-agent; b=ViL+nlQAMO7jZKYhS2RGFTtKZu0R/2RIRXKRfPh1k33aP7aQ9TfN0wqtuftDYSAx3K+OzMUQWoIzOJ40qOw2V4JJ67/VgVjODMiFQ67YnDQJXJ+ukxdqIFxojoPiRl4n5hH3zxI3tl7q+zYiriROSxQF74v3Fiw+kQdsSB4g1us= Original-Received: by 10.114.110.1 with SMTP id i1mr3707792wac.1184035503156; Mon, 09 Jul 2007 19:45:03 -0700 (PDT) Original-Received: from williamnb ( [222.92.124.222]) by mx.google.com with ESMTP id y25sm20550273pod.2007.07.09.19.45.01 (version=SSLv3 cipher=OTHER); Mon, 09 Jul 2007 19:45:02 -0700 (PDT) User-Agent: Opera Mail/9.21 (Win32) X-detected-kernel: Linux 2.6 (newer, 2) 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:74535 Archived-At: Hi, when I am coding in cpp files, I will use M-; to make some comments, like following: IoCreateFileSpecifyDeviceObjectHint(&h_rd_file, // file handle GENERIC_READ | GENERIC_WRITE, // desire access &rd_file_obj_attr, // object attributes &rd_io_status_block, // io status block 0, // allocation size FILE_ATTRIBUTE_NORMAL, // file attributes FILE_SHARE_READ, // share access Is there a way to format the comments to the same column? I want something like: 1. select the codes as a region 2. press a magic keybinding 3. the comments align to the longest column of comments in the region. :) -- Sincerely yours, William