From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#18721: 25.0.50; choose major mode from .dir-locals.el Date: Tue, 14 Oct 2014 14:06:39 -0600 Message-ID: <87ppduza9c.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413317311 11835 80.91.229.3 (14 Oct 2014 20:08:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 20:08:31 +0000 (UTC) To: 18721@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 22:08:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xe8OO-0001UT-9N for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 22:08:24 +0200 Original-Received: from localhost ([::1]:40246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8ON-0006Po-PZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2014 16:08:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8OB-0006F5-9a for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:08:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe8O2-0003xa-6l for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:08:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8O2-0003xW-4K for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xe8O1-00016D-RU for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Oct 2014 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14133172414134 (code B ref -1); Tue, 14 Oct 2014 20:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2014 20:07:21 +0000 Original-Received: from localhost ([127.0.0.1]:43541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe8NL-00014b-MW for submit@debbugs.gnu.org; Tue, 14 Oct 2014 16:07:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39589) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe8NH-00014M-6F for submit@debbugs.gnu.org; Tue, 14 Oct 2014 16:07:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe8N8-0003X6-S9 for submit@debbugs.gnu.org; Tue, 14 Oct 2014 16:07:14 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8N8-0003X2-Op for submit@debbugs.gnu.org; Tue, 14 Oct 2014 16:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8N1-0005lZ-Lu for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe8Mu-0003Iw-HZ for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:06:59 -0400 Original-Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:51286) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Xe8Mu-0003Io-5S for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2014 16:06:52 -0400 Original-Received: (qmail 12304 invoked by uid 0); 14 Oct 2014 20:06:50 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy7.mail.unifiedlayer.com with SMTP; 14 Oct 2014 20:06:50 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id 386i1p00e2f2jeq0186llo; Tue, 14 Oct 2014 14:06:48 -0600 X-Authority-Analysis: v=2.1 cv=e5mVF8Z/ c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=_cZRQKYwz3QA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=X1qvojbhiZEA:10 a=ffD42R2FjGfuSpvkEJMA:9 a=Ndkkvz8I89-9r_FD:21 a=81ughEiEKDEUQsXA:21 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=nnkAXSxBHvlIPPdjCWjcWL8P518TRBNFXqH2LtBkl+M=; b=isonJowiVWnopt3U/MAqQkkItt1GN9ym8Zji2pE5HKXaiTNdDpgZwm5aMMcNTCXuduiIG+RZY5CNf8Uq3YIzVLaRMPIVranBQlalxuC/Qt/KLFs/lEK4YgWNkNsffzpA; Original-Received: from [71.33.139.67] (port=43468 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Xe8Mk-00063R-Rz; Tue, 14 Oct 2014 14:06:43 -0600 X-Attribution: Tom X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.139.67 authed with tom+tromey.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94497 It would be nice if there were a way to associate file extensions with major modes in .dir-locals.el. This would let projects use project-specific extensions without requiring per-file mode cookies or having everybody modify their .emacs In GNU Emacs 25.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-10-09 on pokyo Repository revision: 118080 eggert@cs.ucla.edu-20141009065410-dhgjku4gclzl71kj Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure --prefix=/home/tromey/Emacs/install' Configured features: XPM JPEG TIFF GIF PNG SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: shell-dirtrack-mode: t erc-spelling-mode: t erc-truncate-mode: t diff-auto-refine-mode: t bug-reference-prog-mode: t flyspell-mode: t which-function-mode: t projectile-global-mode: t projectile-mode: t global-auto-revert-mode: t desktop-save-mode: t erc-status-mode: t erc-services-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t savehist-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: tromey-c++-do-auto-fill abbrev-mode: t Recent input: n e n o SPC 1 3 RET SPC 3 0 : SPC SPC SPC 1 3 SPC SPC SPC SPC 9 5 SPC [ SPC SPC SPC 0 ] SPC c o l s p a n SPC 1 RET SPC 3 2 : SPC SPC SPC 1 3 SPC SPC SPC 1 0 8 SPC [ SPC SPC 1 3 ] SPC x d e l t a SPC SPC RET SPC 3 3 : SPC SPC SPC 1 3 SPC SPC SPC 1 0 8 SPC [ SPC SPC SPC 0 ] SPC c o l s p a n SPC 8 RET RET E x c e p t i o n SPC t a b l e : RET k i n d SPC SPC SPC SPC SPC SPC s t a c k SPC SPC SPC SPC s t a r t SPC SPC SPC SPC SPC SPC e n d RET SPC c a t c h SPC SPC SPC SPC SPC SPC SPC SPC 0 SPC SPC SPC SPC SPC SPC SPC 1 4 SPC SPC SPC SPC SPC SPC SPC 4 3 RET SPC f i n a l l y SPC SPC SPC SPC SPC SPC 0 SPC SPC SPC SPC SPC SPC SPC 1 4 SPC SPC SPC SPC SPC SPC SPC 7 9 ESC [ 2 0 1 ~ RET C-a C-k C-x C-x C-g C-u C-@ C-x C-s C-z n C-z n C-z n C-z n C-z n C-z n C-x C-c C-z n M-x r e o p r r e p r p o e r r t r t - e m Recent messages: C-z C-z is undefined Quit (New file) When done with a buffer, type C-x # Mark set Auto-saving... Quit Saving file /tmp/L... Wrote /tmp/L (No files need saving) Load-path shadows: /home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/textmodes/css-mode /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/play/bubbles /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/loaddefs hides /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/obsolete/loaddefs Features: (shadow emacsbug nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok vc-annotate ido log-edit eww log-view pcvs-util novice etags find-dired ffap two-column autoconf autoconf-mode sh-script smie executable shell find-file eieio-opt speedbar sb-image ezimage dframe help-mode gdb-shell webjump dabbrev copyright idutils derived gnus-fun flow-fill gnus-html xml mm-url mailalias bbdb-sc supercite regi mail-hist nnir shr-color color xterm url-http url-gw url-auth url-queue url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars shr browse-url misearch multi-isearch erc-spelling erc-truncate bbdb-gui bbdb-hooks mule-util sort smiley gnus-cite mm-archive gnus-async gnus-bcklg qp gnus-ml disp-table gnus-topic nndraft nnmh nnfolder utf-7 bbdb-gnus bbdb-snarf mail-extr bbdb-com warnings cl gv gnutls network-stream starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-registry registry eieio-base gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo smtpmail sendmail gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader goto-addr add-log dired-aux gud org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode dired org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs conf-mode python sgml-mode vc-arch vc-mtn vc-hg vc-bzr vc-sccs vc-svn vc-cvs vc-rcs js json smerge-mode diff-mode easy-mmode bug-reference vc-git cc-mode cc-fonts cc-guess cc-menus cc-cmds flyspell ispell eldoc diminish appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs which-func imenu projectile edmacro kmacro pkg-info find-func lisp-mnt epl grep compile dash s minimap autorevert filenotify desktop frameset cus-start cus-load status erc-services erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete pcomplete erc-track erc-match erc-button wid-edit cl-loaddefs cl-lib erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat format-spec auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache thingatpt pp advice help-fns vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine cc-vars cc-defs bbdb timezone ange-ftp comint ansi-color ring server savehist dwarf-mode-autoloads jabber-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info easymenu weblogger-autoloads package epg-config bbdb-autoloads time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 2621370 283762) (symbols 48 136643 5) (miscs 40 63207 11870) (strings 32 404536 58294) (string-bytes 1 18990197) (vectors 16 116801) (vector-slots 8 2921863 191230) (floats 8 758 1153) (intervals 56 289543 1523) (buffers 976 821) (heap 1024 349107 75634)) Tom