[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pabbrev ee7e15f 5/6: No longer error on read-only.
From: |
Phillip Lord |
Subject: |
[elpa] externals/pabbrev ee7e15f 5/6: No longer error on read-only. |
Date: |
Wed, 18 Feb 2015 22:43:49 +0000 |
branch: externals/pabbrev
commit ee7e15fd177649e68efb1c2790e32f3b3902fb8e
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>
No longer error on read-only.
We print an message instead.
---
pabbrev.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pabbrev.el b/pabbrev.el
index 58dbe39..fb86e67 100644
--- a/pabbrev.el
+++ b/pabbrev.el
@@ -357,7 +357,7 @@ this at a later date."
The function `pabbrev-mode' works by altering the local buffer,
so it's pointless within a read only buffer. So, normally, it
-signals an error when an attempt is made to use it in this way.
+prints a message when an attempt is made to use it in this way.
But this is a pain if you toggle buffers read only a lot. Set
this to NIL, and function `pabbrev-mode' will disable it's functionality in
read only buffers silently."
@@ -654,7 +654,7 @@ on in all buffers.
;; FIXME: Signaling an error makes no sense. Just make it a `message'
;; and get rid of pabbrev-read-only-error. After all, the user can
;; enable/disable read-only-mode after pabbrev-mode.
- (error "Can not use pabbrev-mode in read only buffer"))
+ (message "Can not use pabbrev-mode in read only buffer"))
(cond
(pabbrev-mode
(add-hook 'pre-command-hook 'pabbrev-pre-command-hook nil t)
- [elpa] externals/pabbrev updated (2463c39 -> 112251c), Phillip Lord, 2015/02/18
- [elpa] externals/pabbrev bb8127a 1/6: Added default value for pabbrev-debug-enabled., Phillip Lord, 2015/02/18
- [elpa] externals/pabbrev 335af33 4/6: Should we keep working.el support?, Phillip Lord, 2015/02/18
- [elpa] externals/pabbrev ee7e15f 5/6: No longer error on read-only.,
Phillip Lord <=
- [elpa] externals/pabbrev 112251c 6/6: Move to cl-lib., Phillip Lord, 2015/02/18
- [elpa] externals/pabbrev 5f950c3 3/6: Change default excluded-modes., Phillip Lord, 2015/02/18
- [elpa] externals/pabbrev 6532a9a 2/6: Require with-silent-modifications., Phillip Lord, 2015/02/18