From: Guillaume Marcais Date: 2004-01-30T08:56:10+09:00 Subject: Re: Emacs comments Works great. Thanks for your quick response. Guillaume. On Thu, 2004-01-29 at 18:17, Yukihiro Matsumoto wrote: > Hi, > > In message "Emacs comments" > on 04/01/30, Guillaume Marcais writes: > > |That's OK. But then, M-x uncomment-region gives me: > | > |Nice comment > |a = 1 > | > |The comment is gone! I am using the mode-ruby.el from ruby-1.8.1 > |distribution. Has anybody out there fixed that so it woul preserve the > |comments? > > Can you try the attached patch? > > matz. > > --- ruby-mode.el 27 Jan 2004 06:05:04 -0000 1.76 > +++ ruby-mode.el 29 Jan 2004 23:16:42 -0000 > @@ -224,3 +224,3 @@ Also ignores spaces after parenthesis wh > (make-variable-buffer-local 'comment-start-skip) > - (setq comment-start-skip "\\(^\\|\\s-\\);?#+ *") > + (setq comment-start-skip "#+ *") > (setq indent-tabs-mode ruby-indent-tabs-mode) >