From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: August Karlstrom Newsgroups: gmane.emacs.help Subject: Re: Filling Block Comment Date: Sat, 18 Mar 2006 23:42:45 GMT Organization: Telia Internet Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1142728856 6093 80.91.229.2 (19 Mar 2006 00:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Mar 2006 00:40:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 19 01:40:54 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FKlyT-00071i-Dc for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Mar 2006 01:40:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKlyS-0006zt-So for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Mar 2006 19:40:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 53 Original-NNTP-Posting-Host: 83.250.237.84 Original-X-Complaints-To: abuse@telia.com Original-X-Trace: newsb.telia.net 1142725365 83.250.237.84 (Sun, 19 Mar 2006 00:42:45 CET) Original-NNTP-Posting-Date: Sun, 19 Mar 2006 00:42:45 CET Original-Xref: shelby.stanford.edu gnu.emacs.help:138256 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33874 Archived-At: Andreas Röhler wrote: > August Karlstrom wrote: >>With >> >>(require 'newcomment) > >>(setq comment-start "/*") >>(setq comment-end "*/") > > Probably you don't need this explicit settings. > > toggle c-mode Well, the thing is I'm writing my own major mode for a C-like language. > with active region and transient-mark-mode > > call comment-dwim. It's at M-; Yes, I know. The function `comment-dwim' (and `dabbrev-expand') is one of the most useful Emacs commands. >>How do I make `fill-comment-paragraph' work with block >>comments? > > There is a var `comment-style' via customize, change that appropriatly. I tried setting `comment-style' to `multi-line' (set (make-local-variable 'comment-style) 'multi-line) but that doesn't solve the problem, block-comments are still filled as /* blah blah blah /* blah blah blah */ rather than /* blah blah blah blah blah blah */ > I'm just writing a func, which will allow you to switch between // and /* */. > Send a mail, if you need that. Thanks, but that is not what I'm looking for. August -- I am the "ILOVEGNU" signature virus. Just copy me to your signature. This email was infected under the terms of the GNU General Public License.