bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11434: 24.0.96; Determining major mode for a given file extension


From: Stefan Monnier
Subject: bug#11434: 24.0.96; Determining major mode for a given file extension
Date: Wed, 09 May 2012 08:35:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>> I'd use (let ((buffer-file-name "foo.js")) (set-auto-mode)) instead.
> So it's just my Lisp that's bad, not my approach? :)

I think so, yes.  You can also use create-file-buffer with some dummy
file name and then call after-find-file (that's what I did in PCL-CVS).


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]