branch: externals/shift-number
commit 0538161aa693676d6ab662302250995fac3ebdf1
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Don't attempt to run number shift on read-only buffers
---
shift-number.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shift-number.el b/shift-number.el
index 534869c0ca..21d0d55e35 100644
--- a/shift-number.el
+++ b/shift-number.el
@@ -270,13 +270,13 @@ REGION-BEG & REGION-END define the region."
;;;###autoload
(defun shift-number-up (&optional arg)
"Increase the number at point (or on the current line) by ARG."
- (interactive "p")
+ (interactive "*p")
(shift-number--on-context arg))
;;;###autoload
(defun shift-number-down (&optional arg)
"Decrease the number at point (or on the current line) by ARG."
- (interactive "p")
+ (interactive "*p")
(shift-number--on-context (- arg)))
(provide 'shift-number)