unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to use c-style to comment a region?
@ 2007-05-10  1:46 William Xue
  2007-05-10  8:50 ` martin rudalics
  2007-05-10 21:14 ` Alan Mackenzie
  0 siblings, 2 replies; 7+ messages in thread
From: William Xue @ 2007-05-10  1:46 UTC (permalink / raw)
  To: emacs-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-11  2:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10  1:46 How to use c-style to comment a region? William Xue
2007-05-10  8:50 ` 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

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