emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use c-style to comment a region?


From: William Xue
Subject: How to use c-style to comment a region?
Date: Thu, 10 May 2007 09:46:34 +0800
User-agent: Opera Mail/9.20 (Win32)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]