Commit e3ad7552 authored by Glenn Morris's avatar Glenn Morris
Browse files

* cookie1.el (cookie-snarf): Explicit error if input file cannot be read.

parent 68892d27
2012-04-16 Glenn Morris <>
* play/cookie1.el (cookie-snarf):
Give an explicit error if input file cannot be read.
* play/yow.el (yow-file): Use expand-file-name rather than concat.
* progmodes/perl-mode.el (c-macro-expand):
......@@ -96,6 +96,8 @@ of load, ENDMSG at the end."
"Reads in the PHRASE-FILE, returns it as a vector of strings.
Emit STARTMSG and ENDMSG before and after. Caches the result; second
and subsequent calls on the same file won't go to disk."
(or (file-readable-p phrase-file)
(error "Cannot read file `%s'" phrase-file))
(let ((sym (intern-soft phrase-file cookie-cache)))
(and sym (not (equal (symbol-function sym)
(nth 5 (file-attributes phrase-file))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment