From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastian Beischer Newsgroups: gmane.emacs.help Subject: Re: comment-region comment style Date: Mon, 19 Apr 2010 16:48:45 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001485f7c47c16394c0484980f9c X-Trace: dough.gmane.org 1271688606 32636 80.91.229.12 (19 Apr 2010 14:50:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 14:50:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Gary ." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 19 16:50:05 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O3sIR-0002h1-8g for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 16:49:59 +0200 Original-Received: from localhost ([127.0.0.1]:44632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3sIQ-0002Vl-Qt for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 10:49:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3sHR-00026u-GO for help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 10:48:57 -0400 Original-Received: from [140.186.70.92] (port=42586 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3sHQ-00025w-1E for help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 10:48:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3sHO-0005n3-E5 for help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 10:48:55 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.148]:27376) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3sHO-0005mL-7o for help-gnu-emacs@gnu.org; Mon, 19 Apr 2010 10:48:54 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 4so306920eyg.34 for ; Mon, 19 Apr 2010 07:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=VbpCdwDFWiu/qUHqKOubYVuB32kORpBmlxBW9ow9IZU=; b=B9XoyWW88mTDeqN7uaWmJKWwg9/6X++ingMZtBHokHpTmnH9o5JxwcQiN0SJXKNoIQ 8VvuPQ/grlJN+/APWFaPNOTDlVZc5hy4z88kUcv58UnDXtXYXK0NVLHKd8Dj4Xe83uhE iNZknLZbm3rnKoNxWo2uvKnGHEvTrDT3P7w00= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NDPY41dsEnlbS6zfXVjLGIfsMoR4YJHZjXF8XNez34voT2o4vH7S3gd3HUjrG7+Rfs zZg6dLE//naqxvzX3K8FnnTtze8B65rkcSECqVByQZEUhPDOogiktK3hYWPMxs208Lfv iiXzcITvDiyZnWvkkLDfaRSBTb7c+tq8K8eJw= Original-Received: by 10.239.148.129 with HTTP; Mon, 19 Apr 2010 07:48:45 -0700 (PDT) In-Reply-To: Original-Received: by 10.239.187.210 with SMTP id m18mr484294hbh.19.1271688529852; Mon, 19 Apr 2010 07:48:49 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:72755 Archived-At: --001485f7c47c16394c0484980f9c Content-Type: text/plain; charset=ISO-8859-1 First of all, which major-mode are you using comment-region in? I'm surprised because here in C/C++ mode the comments of comment-region already look like //... by default and it has alwas been that way. You can customize behavior with M-x customize-variable -> comment-style Hope it helped... Bastian On Mon, Apr 19, 2010 at 11:25 AM, Gary . wrote: > When I currently run this function I get commented out lines that look > > /* like */ > /* this */ > > Is it possible to configure this to use "C++" style single lnie > comments so they would look > > // like > // this > > > -- Bastian Beischer I. Physikalisches Institut B (RWTH Aachen) Sommerfeldstr. 14 52074 Aachen GERMANY Office: 28-C-203 Phone: +49 241 - 8027205 --001485f7c47c16394c0484980f9c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable First of all, which major-mode are you using comment-region in? I'm sur= prised because here in C/C++ mode the comments of comment-region already lo= ok like //... by default and it has alwas been that way.

You can customize behavior with M-x customize-variable -> comment-style<= /div>

Hope it helped...

Bastian=

On Mon, Apr 19, 2010 at 11:25 AM, Gary .= <he= lp-gnu-emacs@garydjones.name> wrote:
When I currently run this function I get co= mmented out lines that look

/* like */
/* this */

Is it possible to configure this to use "C++" style single lnie comments so they would look

// like
// this





--
Bastian Beischer
I. Physikalisches Institut B (RWTH Aachen)
Sommerfeldstr. 14
52074 = Aachen
GERMANY

Office: 28-C-203
Phone: +49 241 - 8027205

--001485f7c47c16394c0484980f9c--