From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: change function assignment Date: Sun, 24 Oct 2004 23:21:04 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098660161 2739 80.91.229.6 (24 Oct 2004 23:22:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Oct 2004 23:22:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 25 01:22:29 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CLrgz-00039I-00 for ; Mon, 25 Oct 2004 01:22:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLrob-00006O-Jl for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Oct 2004 19:30:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:mAMQR9+y7ifNakSTXHOR7xv2Z+c= Original-Lines: 20 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1098660064 132.204.24.84 (Sun, 24 Oct 2004 19:21:04 EDT) Original-NNTP-Posting-Date: Sun, 24 Oct 2004 19:21:04 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:126041 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21419 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21419 > I use emacs for C++ programming. The c-mode provides a nice 'comment-box' > function like this: > /***********/ > /* text */ > /***********/ > but in c++-mode this changes to: > /////////////// > // text // > /////////////// `comment-box' is (as the name implies) non-specific to C or C++. It uses comment-start and comment-end to decide what comment markers to use. So you can just change your C++ mode to use /* and */ for comment-start and comment-end. Stefan