aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-03 21:30:01 +0200
committerLars Magne Ingebrigtsen2011-07-03 21:30:01 +0200
commita2d8969d897c49cbb0b1bc7b27fe696becd265d4 (patch)
tree5b8f3e15aeed6558e5d5bbc991daecdaab4232dd
parentbeb7fba1b2d253902e53559f7c2cb54bd9461939 (diff)
downloademacs-a2d8969d897c49cbb0b1bc7b27fe696becd265d4.tar.gz
emacs-a2d8969d897c49cbb0b1bc7b27fe696becd265d4.zip
Back out last commit since we do not have papers from the actual
author.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/play/fortune.el24
2 files changed, 9 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0881f9f5982..6949d776821 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,3 @@
12011-07-03 Juanma Barranquero <lekktu@gmail.com>
2
3 * play/fortune.el (fortune-compile): Make a new fortune dat file
4 compile time if the dat file does not exist (bug#5338).
5
62011-07-03 Richard Kim <emacs18@gmail.com> (tiny change) 12011-07-03 Richard Kim <emacs18@gmail.com> (tiny change)
7 2
8 * textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert 3 * textmodes/texnfo-upd.el (texinfo-insert-menu): Don't insert
diff --git a/lisp/play/fortune.el b/lisp/play/fortune.el
index e675302755c..55b0a564fef 100644
--- a/lisp/play/fortune.el
+++ b/lisp/play/fortune.el
@@ -244,21 +244,15 @@ the value of `fortune-file'. This currently cannot handle directories."
244 (let* ((fortune-file (expand-file-name (substitute-in-file-name file))) 244 (let* ((fortune-file (expand-file-name (substitute-in-file-name file)))
245 (fortune-dat (expand-file-name 245 (fortune-dat (expand-file-name
246 (substitute-in-file-name 246 (substitute-in-file-name
247 (concat fortune-file fortune-database-extension)))) 247 (concat fortune-file fortune-database-extension)))))
248 (fortune-file-exist (file-exists-p fortune-file)) 248 (cond ((file-exists-p fortune-file)
249 (fortune-dat-exist (file-exists-p fortune-dat)) 249 (if (file-exists-p fortune-dat)
250 (fortune-file-newer (file-newer-than-file-p 250 (cond ((file-newer-than-file-p fortune-file fortune-dat)
251 fortune-file fortune-dat))) 251 (message "Compiling new fortune database %s" fortune-dat)
252 (cond 252 (shell-command
253 (fortune-file-exist 253 (concat fortune-strfile fortune-strfile-options
254 (if (or (not fortune-dat-exist) 254 " " fortune-file fortune-quiet-strfile-options))))))
255 (and fortune-dat-exist 255 (t (error "Can't compile fortune file %s" fortune-file)))))
256 fortune-file-newer))
257 (message "Compiling new fortune database %s" fortune-dat)
258 (shell-command
259 (concat fortune-strfile fortune-strfile-options
260 " " fortune-file fortune-quiet-strfile-options))))
261 (t (error "Can't compile fortune file %s" fortune-file)))))
262 256
263 257
264;;; ************** 258;;; **************