From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nil Geisweiller Newsgroups: gmane.emacs.bugs Subject: bug#5522: emacs does not activate c++ mode when opening a cxxtest file Date: Wed, 10 Feb 2010 11:15:19 +0200 Message-ID: References: <8ieikty2c7.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1265793780 4128 80.91.229.12 (10 Feb 2010 09:23:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 09:23:00 +0000 (UTC) Cc: 5522@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 10:22:57 2010 Return-path: Envelope-to: geb-bug-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 1Nf8mW-0000sW-T2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 10:22:56 +0100 Original-Received: from localhost ([127.0.0.1]:34590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf8mR-0002tF-4o for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 04:22:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nf8mA-0002ob-Sx for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 04:22:26 -0500 Original-Received: from [199.232.76.173] (port=42709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf8mA-0002oG-8k for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 04:22:26 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nf8m8-0003y3-H8 for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 04:22:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59425) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nf8m8-0003xw-98 for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 04:22:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nf8fx-0002ey-O5; Wed, 10 Feb 2010 04:16:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Nil Geisweiller Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Feb 2010 09:16:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5522 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5522-submit@debbugs.gnu.org id=B5522.126579335510214 (code B ref 5522); Wed, 10 Feb 2010 09:16:01 +0000 Original-Received: (at 5522) by debbugs.gnu.org; 10 Feb 2010 09:15:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf8fr-0002eh-1K for submit@debbugs.gnu.org; Wed, 10 Feb 2010 04:15:55 -0500 Original-Received: from ey-out-2122.google.com ([74.125.78.25]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf8fp-0002ec-3a for 5522@debbugs.gnu.org; Wed, 10 Feb 2010 04:15:53 -0500 Original-Received: by ey-out-2122.google.com with SMTP id 22so502374eye.33 for <5522@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= Original-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@fencepost.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Feb 2010 04:16:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35010 Archived-At: On Wed, Feb 10, 2010 at 9:30 AM, Glenn Morris 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