]> git.eshelyaron.com Git - emacs.git/commitdiff
Backport trivial fixes from the trunk.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 12 Aug 2008 22:23:30 +0000 (22:23 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 12 Aug 2008 22:23:30 +0000 (22:23 +0000)
* desktop.el (desktop-minor-mode-table): Add `savehist-mode'.

* play/solitaire.el (solitaire-solve): Err out if the solitaire
  is already in progress.

lisp/ChangeLog
lisp/desktop.el
lisp/play/solitaire.el

index 41d2b1902a3c861e69529d60673c2ac4b8e40436..8e4f7bb0f2137483ff1af046752d44f5edfcc909 100644 (file)
@@ -1,3 +1,10 @@
+2008-08-12  Juanma Barranquero  <lekktu@gmail.com>
+
+       * desktop.el (desktop-minor-mode-table): Add `savehist-mode'.
+
+       * play/solitaire.el (solitaire-solve): Err out if the solitaire
+       is already in progress.
+
 2008-08-12  NAKAGAWA Makoto  <gha03025@nifty.ne.jp>  (tiny change)
 
        * net/ldap.el (ldap-search-internal): Tweak URL regexp.
index a042828e19c44d0b6f207f5ce2eb2f296251e143..2bee425e7c2c41572d12d2a1f5a7edea762f4d21 100644 (file)
@@ -454,7 +454,8 @@ Furthermore the major mode function must be autoloaded.")
 (defcustom desktop-minor-mode-table
   '((auto-fill-function auto-fill-mode)
     (vc-mode nil)
-    (vc-dired-mode nil))
+    (vc-dired-mode nil)
+    (savehist-mode nil))
   "Table mapping minor mode variables to minor mode functions.
 Each entry has the form (NAME RESTORE-FUNCTION).
 NAME is the name of the buffer-local variable indicating that the minor
index 243d9525ce46fbb288389dc395b5bad8e4597e00..3532d47e32c26d870c3b7fe12fa3a1bdfee50495 100644 (file)
@@ -431,6 +431,8 @@ Seen in info on text lines."
   "Spoil solitaire by solving the game for you - nearly ...
 ... stops with five stones left ;)"
   (interactive)
+  (when (< solitaire-stones 32)
+    (error "Cannot solve game in progress"))
   (let ((allmoves [up up S-down up left left S-right up up left S-down
                      up up right right S-left down down down S-up up
                      S-down down down down S-up left left down