(mark-sexp): Mark more if repeated.
This commit is contained in:
parent
d3b32bfd6c
commit
f07493e7d0
1 changed files with 5 additions and 1 deletions
|
@ -72,10 +72,14 @@ move forward across N balanced expressions."
|
|||
(defun mark-sexp (&optional arg)
|
||||
"Set mark ARG sexps from point.
|
||||
The place mark goes is the same place \\[forward-sexp] would
|
||||
move to with the same argument."
|
||||
move to with the same argument.
|
||||
If this command is repeated, it marks the next ARG sexps after the ones
|
||||
already marked."
|
||||
(interactive "p")
|
||||
(push-mark
|
||||
(save-excursion
|
||||
(if (and (eq last-command this-command) (mark t))
|
||||
(goto-char (mark)))
|
||||
(forward-sexp (or arg 1))
|
||||
(point))
|
||||
nil t))
|
||||
|
|
Loading…
Add table
Reference in a new issue