unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Reuben Thomas <rrt@sc3d.org>
Cc: 11434@debbugs.gnu.org
Subject: bug#11434: 24.0.96; Determining major mode for a given file extension
Date: Wed, 09 May 2012 08:35:57 -0400	[thread overview]
Message-ID: <jwvbolxtu4l.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAOnWdoha0nFqavvE974t8WC45MhdbwA1ahGCuVF6TS4WUJwP=w@mail.gmail.com> (Reuben Thomas's message of "Tue, 8 May 2012 19:30:40 +0100")

>> 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	other threads:[~2012-05-09 12:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 16:38 bug#11434: 24.0.96; Determining major mode for a given file extension Reuben Thomas
2012-05-08 16:44 ` Reuben Thomas
2012-05-08 18:24   ` Stefan Monnier
2012-05-08 18:30     ` Reuben Thomas
2012-05-09 12:35       ` Stefan Monnier [this message]
2019-10-31  7:31         ` Stefan Kangas
2019-11-29 12:45           ` Stefan Kangas
2019-11-01 18:12         ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvbolxtu4l.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11434@debbugs.gnu.org \
    --cc=rrt@sc3d.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).