unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "William Xue" <william.xue@gmail.com>
To: emacs-devel@gnu.org
Subject: How to use c-style to comment a region?
Date: Thu, 10 May 2007 09:46:34 +0800	[thread overview]
Message-ID: <op.tr1viwlvhkv0w5@williamnb> (raw)

Hi,

In cpp files, in following code, for e.g.:

ln_time_out.QuadPart = -((LONGLONG) 10 * 1000 * 1000 * 5);

I wanted to modify the second 1000 to 2000 for testing, but wanted to keep  
the orignal value for restoring it later.

after selected 1000 and pressed C-c C-c :

                 ln_time_out.QuadPart = -((LONGLONG) 10 * 1000 * // 1000
                                          * 5); // 1 second

Can it be:

                 ln_time_out.QuadPart = -((LONGLONG) 10 * 1000 * /* 1000  
*/  * 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

             reply	other threads:[~2007-05-10  1:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10  1:46 William Xue [this message]
2007-05-10  8:50 ` How to use c-style to comment a region? martin rudalics
2007-05-10 17:22   ` Stefan Monnier
2007-05-10 21:40     ` martin rudalics
2007-05-11  2:04   ` William Xue
2007-05-10 21:14 ` Alan Mackenzie
2007-05-11  2:10   ` William Xue

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=op.tr1viwlvhkv0w5@williamnb \
    --to=william.xue@gmail.com \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).