[Top][All Lists]

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

Re: [PATCH] lisp/files.el and lisp/buf-menu.el

From: Stefan Monnier
Subject: Re: [PATCH] lisp/files.el and lisp/buf-menu.el
Date: Thu, 16 Jul 2009 23:08:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

> As earlier explained, I have the case of creating
> a buffer with no visited file, yet I would like
> to use (normal-mode) to set the mode AS IF the
> name of the visited file was a particular string.

You'll probbaly also want to reuse the coding-system auto-detection, and
maybe more.

> It was also pointed out to me that I should make
> sure "list-buffers-noselect" puts something helpful
> where a file name would usually go.

What's the difference between list-buffers-description and 

> I have accordingly patched lisp/files.el and lisp/buf-menu.el.

I'm not completely convinced that buffer-automode-file-name is
a good idea.  Why not just let-bind buffer-file-name instead?
Also, if let-binding buffer-file-name is not good enough, maybe I'd
rather see a refactoring of the code.


reply via email to

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