[Top][All Lists]

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

Info buffers in Desktop

From: Juri Linkov
Subject: Info buffers in Desktop
Date: Tue, 27 Apr 2010 22:47:09 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

Currently desktop.el doesn't save virtual Info buffers,
but most of them are very fast to restore.  This patch allows
desktop.el to save virtual Info buffers except when their
definition has a new property `desktop-not-to-save'.
`info-apropos' is very slow to create its output node,
so it has this property:

=== modified file 'lisp/info.el'
--- lisp/info.el        2010-04-22 18:08:17 +0000
+++ lisp/info.el        2010-04-27 19:45:27 +0000
@@ -3202,25 +3217,15 @@
               (toc-nodes . Info-apropos-toc-nodes)
               (find-file . Info-apropos-find-file)
               (find-node . Info-apropos-find-node)
+              (desktop-not-to-save . t)
 (defvar Info-apropos-file "*Apropos*"
@@ -4863,7 +4869,8 @@
 (defun Info-desktop-buffer-misc-data (desktop-dirname)
   "Auxiliary information to be saved in desktop file."
-  (unless (Info-virtual-file-p Info-current-file)
+  (unless (Info-virtual-fun 'desktop-not-to-save
+                           Info-current-file Info-current-node)
     (list Info-current-file Info-current-node)))
 (defun Info-restore-desktop-buffer (desktop-buffer-file-name

Juri Linkov

reply via email to

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