bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Glenn Morris
Subject: bug#8920: 24.0.50; Calendar raises error with #included diary file
Date: Fri, 24 Jun 2011 14:49:43 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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".





reply via email to

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