From: matz@... (Yukihiro Matsumoto) Date: 2004-01-30T08:17:43+09:00 Subject: Re: Emacs comments 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)