[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new buffer - should its mode reflect its name when the name matches
From: |
Deniz Dogan |
Subject: |
Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist? |
Date: |
Tue, 22 Sep 2009 16:47:04 +0200 |
2009/9/22 Drew Adams <address@hidden>:
> Haven't thought about this before, but I wonder if the mode should respect
> auto-mode-alist when you create a new buffer? There's no doubt a good reason
> or
> two why we don't do this - just wondering.
>
> E.g. `C-x b foo.el', where there is no existing buffer foo.el. The mode is
> Fundamental; should it be Emacs-Lisp instead?
>
> (I realize that a new buffer need not be intended to be saved as a file.)
>
As an end-user and not having contributed anything to Emacs myself, I
would expect the buffer to "respect" auto-mode-alist, i.e. set the
mode depending on the buffer name. However, I think the default
behavior when creating buffers non-interactively should *not* respect
auto-mode-alist.
--
Deniz Dogan
- new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Drew Adams, 2009/09/22
- Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist?,
Deniz Dogan <=
- RE: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Drew Adams, 2009/09/22
- Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Kevin Rodgers, 2009/09/23
- RE: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Drew Adams, 2009/09/23
- Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Juri Linkov, 2009/09/24
- RE: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Drew Adams, 2009/09/24
- Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Stefan Monnier, 2009/09/24
- Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Juri Linkov, 2009/09/25
- Re: new buffer - should its mode reflect its name when the name matches auto-mode-alist?, Stefan Monnier, 2009/09/25