From: Chad Perrin Date: 2006-08-16T02:57:25+09:00 Subject: Re: block commenting-out On Wed, Aug 16, 2006 at 12:53:24AM +0900, Christian Neukirchen wrote: > Daniel Harple writes: > > > On Aug 15, 2006, at 6:42 AM, Christian Neukirchen wrote: > > > >> Chad Perrin writes: > >>> > >>> Vim could, of course, do it via a substitution iterating over a > >>> number > >>> of lines indicated by a prepended number. I'm sure EMACS (Esc > >>> Meta Alt > >>> Ctrl Shift) could do something similar, but with four times as > >>> many keys > >>> involved. > >>> > >>> What, me biased? Never. > >> > >> M-x comment-region > >> > >> Bind to every key you like (I don't use it often). > >> > >> C-u M-x comment-region (or M-x uncomment-region) will uncomment. > > > > Try M-; (comment-dwim). > > I knew there was an easier way, but M-; requires using transient-mark > mode (shudder). Well, not too bad in Emacs 22, C-SPC, C-SPC. What do "comment-region" and "comment-dwim" mean in practical terms in this case? How many modes are there to emacs? -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "There comes a time in the history of any project when it becomes necessary to shoot the engineers and begin production." - MacUser, November 1990