emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]