aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-10-18 16:13:18 +0000
committerStefan Monnier2005-10-18 16:13:18 +0000
commit67f05bf61a50c0b8aef001f43a6c2c2364a9edba (patch)
treef21deca454e42bf6a364acafefd275c5a44bafe8
parentd902d95e82c5d9a0a23deb159cd9ff9925d815ac (diff)
downloademacs-67f05bf61a50c0b8aef001f43a6c2c2364a9edba.tar.gz
emacs-67f05bf61a50c0b8aef001f43a6c2c2364a9edba.zip
(savehist-load): Revert to checking XEmacs.
-rw-r--r--lisp/savehist.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/savehist.el b/lisp/savehist.el
index 75a2e61e320..de0f1504ff8 100644
--- a/lisp/savehist.el
+++ b/lisp/savehist.el
@@ -173,7 +173,7 @@ other time."
173 ;; executes in under 5 ms on my system. 173 ;; executes in under 5 ms on my system.
174 (unless savehist-timer 174 (unless savehist-timer
175 (setq savehist-timer 175 (setq savehist-timer
176 (if (fboundp 'start-itimer) 176 (if (featurep 'xemacs)
177 (start-itimer 177 (start-itimer
178 "savehist" 'savehist-autosave savehist-autosave-interval 178 "savehist" 'savehist-autosave savehist-autosave-interval
179 savehist-autosave-interval) 179 savehist-autosave-interval)
@@ -234,8 +234,10 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved,
234 (cond 234 (cond
235 ((listp value) 235 ((listp value)
236 (when (and savehist-length (> (length value) savehist-length)) 236 (when (and savehist-length (> (length value) savehist-length))
237 ;; This should be: (setq value (subseq value 0 savehist-length))
237 (setq value (copy-sequence value)) 238 (setq value (copy-sequence value))
238 (setcdr (nthcdr savehist-length value) nil)) 239 (setcdr (nthcdr savehist-length value) nil))
240 ;; And this should be (remove-if-not #'savehist-printable value)
239 (delq nil (mapcar (lambda (x) (if (savehist-printable x) x)) value))) 241 (delq nil (mapcar (lambda (x) (if (savehist-printable x) x)) value)))
240 ((savehist-printable value) value) 242 ((savehist-printable value) value)
241 (t nil))) 243 (t nil)))