Function: subword-mark

subword-mark is an interactive and byte-compiled function defined in subword.el.gz.

Signature

(subword-mark ARG)

Documentation

Do the same as mark-word but on subwords.

See the command subword-mode(var)/subword-mode(fun) for a description of subwords. Optional argument ARG is the same as for mark-word.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/subword.el.gz
(defun subword-mark (arg)
  "Do the same as `mark-word' but on subwords.
See the command `subword-mode' for a description of subwords.
Optional argument ARG is the same as for `mark-word'."
  ;; This code is almost copied from `mark-word' in GNU Emacs.
  (interactive "p")
  (cond ((and (eq last-command this-command) (mark t))
	 (set-mark
	  (save-excursion
	    (goto-char (mark))
	    (subword-forward arg)
	    (point))))
	(t
	 (push-mark
	  (save-excursion
	    (subword-forward arg)
	    (point))
	  nil t))))