From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#5522: emacs does not activate c++ mode when opening a cxxtest file Date: Wed, 10 Feb 2010 02:30:48 -0500 Message-ID: <8ieikty2c7.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265788367 20133 80.91.229.12 (10 Feb 2010 07:52:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 07:52:47 +0000 (UTC) Cc: 5522@debbugs.gnu.org To: Nil Geisweiller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 08:52:43 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 1Nf7NK-0002Gr-Pq for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 08:52:43 +0100 Original-Received: from localhost ([127.0.0.1]:48318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf7NK-0002MP-Aw for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 02:52:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nf7N4-0002DU-9L for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 02:52:26 -0500 Original-Received: from [199.232.76.173] (port=41139 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf7N3-0002DC-OT for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 02:52:25 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nf7N1-0003H6-NB for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 02:52:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34998) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nf7N1-0003H2-2U for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 02:52:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nf72L-0001Uz-TG; Wed, 10 Feb 2010 02:31:01 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: Resent-From: Glenn Morris 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 07:31: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.12657870555751 (code B ref 5522); Wed, 10 Feb 2010 07:31:01 +0000 Original-Received: (at 5522) by debbugs.gnu.org; 10 Feb 2010 07:30: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 1Nf72F-0001Ui-1K for submit@debbugs.gnu.org; Wed, 10 Feb 2010 02:30:55 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf72C-0001Ud-LL for 5522@debbugs.gnu.org; Wed, 10 Feb 2010 02:30:53 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nf728-00016U-TR; Wed, 10 Feb 2010 02:30:49 -0500 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-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Feb 2010 02:31: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:35003 Archived-At: 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?