Subject: Re: bug#8920: 24.0.50; Calendar raises error with #included diary file

From: Glenn Morris <[email-masked]>
Date: Fri, 24 Jun 2011 14:49:43 -0400

Stephen Berman wrote:

> (add-hook 'find-file-hook
> 	  (lambda () (set-window-buffer (selected-window)
> 					(set-buffer (current-buffer)))))

Help me out: what is this supposed to be for?

Since find-file-noselect runs find-file-hook, at first sight it looks to
me like all you are doing is deliberately breaking find-file-noselect.

So my initial reaction is: "if it hurts when you do that, don't do that".