[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5f9ee38 04/11: Check file can be read
From: |
Ingo Lohmar |
Subject: |
[elpa] master 5f9ee38 04/11: Check file can be read |
Date: |
Sun, 02 Aug 2015 14:43:03 +0000 |
branch: master
commit 5f9ee3897707acac78d2da59fb359d26e05ccc7b
Author: Ingo Lohmar <address@hidden>
Commit: Ingo Lohmar <address@hidden>
Check file can be read
---
wconf.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/wconf.el b/wconf.el
index 8b48d6d..7012285 100644
--- a/wconf.el
+++ b/wconf.el
@@ -176,8 +176,10 @@ position INDEX."
(defun wc-load (&optional filename)
"Load stored configurations from FILENAME, defaults to `wc-file'."
(interactive)
- (wc--reset)
(let ((filename (or filename wc-file)))
+ (unless (file-readable-p filename)
+ (error "wc: Cannot read file %s" filename))
+ (wc--reset)
(with-temp-buffer
(insert-file-contents filename)
(goto-char (point-min))
- [elpa] master updated (6340c15 -> 43c8384), Ingo Lohmar, 2015/08/02
- [elpa] master 5f9ee38 04/11: Check file can be read,
Ingo Lohmar <=
- [elpa] master dcce243 03/11: Update README and docstring, Ingo Lohmar, 2015/08/02
- [elpa] master 3bc4e13 02/11: Add a README, Ingo Lohmar, 2015/08/02
- [elpa] master facc191 01/11: Initial commit, Ingo Lohmar, 2015/08/02
- [elpa] master 8f3160b 07/11: Fix missing dependency on cl-lib, Ingo Lohmar, 2015/08/02
- [elpa] master 2cb1de6 06/11: Fix/enhance interactive declarations, this fixes #1, Ingo Lohmar, 2015/08/02
- [elpa] master e5f23d1 05/11: Only deal with window configurations now, update doc, Ingo Lohmar, 2015/08/02
- [elpa] master b8ea22f 10/11: Bump version and copyright, Ingo Lohmar, 2015/08/02
- [elpa] master ae106c9 08/11: Make interactive functions more robust/friendly, Ingo Lohmar, 2015/08/02
- [elpa] master f67e959 09/11: Use "wconf" as package and filename prefix, Ingo Lohmar, 2015/08/02
- [elpa] master 43c8384 11/11: Add 'packages/wconf/' from commit 'b8ea22f80bff19222136d9495f685888dc682b9d', Ingo Lohmar, 2015/08/02