GNU bug report logs - #5522
emacs does not activate c++ mode when opening a cxxtest file

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Nil Geisweiller <ngeiswei@HIDDEN>; dated Thu, 4 Feb 2010 10:12:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 5522 <at> debbugs.gnu.org:


Received: (at 5522) by debbugs.gnu.org; 10 Feb 2010 09:15:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 10 04:15:55 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Nf8fr-0002eh-1K
	for submit <at> debbugs.gnu.org; Wed, 10 Feb 2010 04:15:55 -0500
Received: from ey-out-2122.google.com ([74.125.78.25])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <ngeiswei@HIDDEN>) id 1Nf8fp-0002ec-3a
	for 5522 <at> debbugs.gnu.org; Wed, 10 Feb 2010 04:15:53 -0500
Received: by ey-out-2122.google.com with SMTP id 22so502374eye.33
	for <5522 <at> debbugs.gnu.org>; Wed, 10 Feb 2010 01:15:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:from:date:message-id:subject:to:cc:content-type;
	bh=LlilKPSw8mY7tYiWGzRiXvk/JWwlHAdI0T3XXC0sxXU=;
	b=h0tXIkn/pEhyfwjyU6zg99aQjIl39tqH0SHLIin1lcZNJRdZUSxyYSg4TLznopCCQZ
	vpFjh3YEQHTZlVsvpZywbqKu4dAfBFn8DCBUH4dOC/PPXBdDZylL4t/b93sMIioMr857
	pYb7XD1eo0rBn/G09VEejQrEjy49azW1lEopI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	b=WpoMH3aBDwl4XCeo8uFAsBbTerLLZHD2spWCLYqFQBUrRwj0OFBRwmxNipbZxhXpta
	0Aut6PyuuJyf+1UE0tSbitEoNVXCDNvR/NloTW3ovKLznZhA31Kmfr4t2Sa1vHH+hax4
	HxgEd0do0AWn79K4ezwW2GV1T3mzQ+iKjoiBU=
MIME-Version: 1.0
Received: by 10.213.50.67 with SMTP id y3mr1595538ebf.31.1265793339128; Wed, 
	10 Feb 2010 01:15:39 -0800 (PST)
In-Reply-To: <8ieikty2c7.fsf@HIDDEN>
References: <a348b7fe1002040158s2f5a78a8oa6da713b98161b58@HIDDEN> 
	<8ieikty2c7.fsf@HIDDEN>
From: Nil Geisweiller <ngeiswei@HIDDEN>
Date: Wed, 10 Feb 2010 11:15:19 +0200
Message-ID: <a348b7fe1002100115p3743f87ftf143abaf75fccce3@HIDDEN>
Subject: Re: bug#5522: emacs does not activate c++ mode when opening a cxxtest
	file
To: Glenn Morris <rgm@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: 5522
Cc: 5522 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.7 (---)

On Wed, Feb 10, 2010 at 9:30 AM, Glenn Morris <rgm@HIDDEN> wrote:
> Nil Geisweiller wrote:
>
>> (setq auto-mode-alist (cons '("\\.cxxtest$" . c++-mode) auto-mode-alist))
>>
>> in my .emacs and it works just fine.
>>
>> But it would be good if emacs could load them in C++ mode
>> automatically without adding that config line.
>
> http://www.google.com/codesearch?q=file%3A\.cxxtest%24
>
> returns only 28 files, several of which aren't C++ code, so this does
> not seem a very widely (or consistently) used extension.

well, it seems google code hasn't found our project yet
https://launchpad.net/opencog. But I see your point... I did know
cxxtest were that much not used.

>
> Or were you asking for the type to be deduced based on the contents?
>

no, that seems a much harder task, but I surely it may be interesting too.

Nil




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5522; Package emacs. Full text available.

Message received at 5522 <at> debbugs.gnu.org:


Received: (at 5522) by debbugs.gnu.org; 10 Feb 2010 07:30:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 10 02:30:55 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Nf72F-0001Ui-1K
	for submit <at> debbugs.gnu.org; Wed, 10 Feb 2010 02:30:55 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1Nf72C-0001Ud-LL
	for 5522 <at> debbugs.gnu.org; Wed, 10 Feb 2010 02:30:53 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1Nf728-00016U-TR; Wed, 10 Feb 2010 02:30:49 -0500
To: Nil Geisweiller <ngeiswei@HIDDEN>
Subject: Re: bug#5522: emacs does not activate c++ mode when opening a cxxtest
	file
References: <a348b7fe1002040158s2f5a78a8oa6da713b98161b58@HIDDEN>
From: Glenn Morris <rgm@HIDDEN>
X-Spook: freedom AUTODIN Ortega Steve Case import Qaddafi FIPS140
X-Ran: xW5N+9rT~-/w9G5"G#QDdY&slyJ93Z=V6A+BBF+L;s:Hks_m$\t|{^_}R_~9+tW`ri=~-@
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 10 Feb 2010 02:30:48 -0500
Message-ID: <8ieikty2c7.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.0 (------)
X-Debbugs-Envelope-To: 5522
Cc: 5522 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.0 (------)

Nil Geisweiller wrote:

> (setq auto-mode-alist (cons '("\\.cxxtest$" . c++-mode) auto-mode-alist))
>
> in my .emacs and it works just fine.
>
> But it would be good if emacs could load them in C++ mode
> automatically without adding that config line.

http://www.google.com/codesearch?q=file%3A\.cxxtest%24

returns only 28 files, several of which aren't C++ code, so this does
not seem a very widely (or consistently) used extension.

Or were you asking for the type to be deduced based on the contents?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5522; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Feb 2010 10:11:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 04 05:11:42 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NcygY-0001Zu-9t
	for submit <at> debbugs.gnu.org; Thu, 04 Feb 2010 05:11:42 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <ngeiswei@HIDDEN>) id 1NcygW-0001Zm-8n
	for submit <at> debbugs.gnu.org; Thu, 04 Feb 2010 05:11:41 -0500
Received: from mail.gnu.org ([199.232.76.166]:34348 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.69)
	(envelope-from <ngeiswei@HIDDEN>) id 1NcygS-0000e5-PL
	for submit <at> debbugs.gnu.org; Thu, 04 Feb 2010 05:11:36 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <ngeiswei@HIDDEN>) id 1NcyUf-00037g-Li
	for submit <at> debbugs.gnu.org; Thu, 04 Feb 2010 04:59:27 -0500
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python
X-Spam-Level: 
X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,
	DNS_FROM_RFC_POST,UNPARSEABLE_RELAY autolearn=no version=3.1.0
Received: from lists.gnu.org ([199.232.76.165]:51466)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <ngeiswei@HIDDEN>) id 1NcyUe-00037Q-Iy
	for submit <at> debbugs.gnu.org; Thu, 04 Feb 2010 04:59:24 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NcyUd-0001X9-Ua
	for bug-gnu-emacs@HIDDEN; Thu, 04 Feb 2010 04:59:23 -0500
Received: from [199.232.76.173] (port=49250 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NcyUd-0001Wy-4j
	for bug-gnu-emacs@HIDDEN; Thu, 04 Feb 2010 04:59:23 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <ngeiswei@HIDDEN>) id 1NcyUc-00036m-5G
	for bug-gnu-emacs@HIDDEN; Thu, 04 Feb 2010 04:59:22 -0500
Received: from ey-out-1920.google.com ([74.125.78.147]:6517)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ngeiswei@HIDDEN>) id 1NcyUb-00036f-Te
	for bug-gnu-emacs@HIDDEN; Thu, 04 Feb 2010 04:59:22 -0500
Received: by ey-out-1920.google.com with SMTP id 26so40231eyw.34
	for <bug-gnu-emacs@HIDDEN>; Thu, 04 Feb 2010 01:59:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:from:date:message-id
	:subject:to:content-type;
	bh=6zpPZNsdreSjPaQqjUL2f2cfO7fqFhX3FLlTAMZZsCo=;
	b=MgYuDoQUUK4/49uElKbl7zV1b8GlpW0UiHWV8gaG+KIDZ9TaBTXdLOKfOoqe8v/mRf
	iLrOX3jTxQt/tEQR5KW6OcXLBiahVgZdUYIjYnISvtVy6SdYRzJtNRnvd8KynAuoV5/6
	d/P7JxkNIt0dlrStiBO/LCEWdfAKstpTLojSk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=Njh/tRgOPC2t/oMKNJ4GQTtPfblvBG71MAGBKVWD0g/EgQ+DAz/ImVqZ5HYyp+OIvK
	sZonEFv18UO1OmfGpc8GN2rQFvhwWTx19h1th1wu6O0BT90nNrY10V0ntyEq3Qx4p7X8
	/ycX+2B6403u2jB2th3dMjoyRFCIGLh7cE41U=
MIME-Version: 1.0
Received: by 10.213.109.219 with SMTP id k27mr3288967ebp.37.1265277559304; 
	Thu, 04 Feb 2010 01:59:19 -0800 (PST)
From: Nil Geisweiller <ngeiswei@HIDDEN>
Date: Thu, 4 Feb 2010 11:58:59 +0200
Message-ID: <a348b7fe1002040158s2f5a78a8oa6da713b98161b58@HIDDEN>
Subject: emacs does not activate c++ mode when opening a cxxtest file
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

Hi,

cxxtest files http://cxxtest.tigris.org/ are essentially C++ code

I added

(setq auto-mode-alist (cons '("\\.cxxtest$" . c++-mode) auto-mode-alist))

in my .emacs and it works just fine.

But it would be good if emacs could load them in C++ mode
automatically without adding that config line.

Thanks
Nil





Acknowledgement sent to Nil Geisweiller <ngeiswei@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5522; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.