[Top][All Lists]

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

Re: How to restore the layout?

From: martin rudalics
Subject: Re: How to restore the layout?
Date: Fri, 05 Jul 2013 17:39:23 +0200

> That (restoring buffer lists) would be better, but still it is
> possible that no previous buffer can be found, so creating *scratch*
> or defaulting to something else will still be required.

How about replacing

    (set-window-buffer window (get-buffer-create (car state)))

by the (completely untested)

    (let ((buffer ((get-buffer (car state)))))
      (if buffer        
          (set-window-buffer window buffer)
        (switch-to-prev-buffer window)))


reply via email to

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