summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/smie.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-03-26 09:36:24 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2015-03-26 09:36:24 -0400
commit5e0314f6fabca1af214240177a28d3822d6ef3e5 (patch)
tree09acde5768811b8ffd827eeedf085661709f3062 /lisp/emacs-lisp/smie.el
parent13cf575c1d32bbe7cf42e017bce2e8cdc30a2946 (diff)
downloademacs-5e0314f6fabca1af214240177a28d3822d6ef3e5.tar.gz
emacs-5e0314f6fabca1af214240177a28d3822d6ef3e5.tar.bz2
emacs-5e0314f6fabca1af214240177a28d3822d6ef3e5.zip
* smie.el (smie*ward-sexp-command): Don't pretend the arg is optional
Fixes: debbugs:20205 * lisp/emacs-lisp/smie.el (smie-backward-sexp-command) (smie-forward-sexp-command): Don't pretend the arg is optional.
Diffstat (limited to 'lisp/emacs-lisp/smie.el')
-rw-r--r--lisp/emacs-lisp/smie.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el
index 184912d9fc4..4f3f12d5285 100644
--- a/lisp/emacs-lisp/smie.el
+++ b/lisp/emacs-lisp/smie.el
@@ -834,12 +834,12 @@ Possible return values:
;;; Miscellaneous commands using the precedence parser.
-(defun smie-backward-sexp-command (&optional n)
+(defun smie-backward-sexp-command (n)
"Move backward through N logical elements."
(interactive "^p")
(smie-forward-sexp-command (- n)))
-(defun smie-forward-sexp-command (&optional n)
+(defun smie-forward-sexp-command (n)
"Move forward through N logical elements."
(interactive "^p")
(let ((forw (> n 0))