emacs-devel
[Top][All Lists]
Advanced

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

Re: ERT indentation testing


From: martin rudalics
Subject: Re: ERT indentation testing
Date: Fri, 03 Jun 2011 14:12:24 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> Using `find-file-noselect' will just make me select the buffer in ELisp
> instead of expecting it to become current.  Is there any real reason to
> avoid `find-file'?  Because of the prompts?  I ask because I'm curious;
> I've already changed my patch to use (set-buffer (find-file-noselect...))
> but can't commit because the Bazaar repo is down.

`find-file' uses `switch-to-buffer' and `switch-to-buffer' should be
avoided in Elisp code.

> Also, if `find-file' should be avoided in ELisp generally, the docstring
> should say so, like it does for many other functions.

Indeed.

martin



reply via email to

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