• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/

Lines Matching +defs:line +defs:move

80 ;; making changes to it at the same time, since you never have to move
101 ;; station to which... (etc.). M-C-S-return (vcursor-copy-line)
102 ;; copies to the end of the line instead of just one character,
118 ;; it so that it starts from point whenever you move it again --- note
126 ;; However, point doesn't move unless the view in the window does, so
144 ;; Likewise, M-C-S-left and M-C-S-right move you to the
145 ;; beginning or end of a line, C-S-home and C-S-end the
181 ;; comment out the `add-hook' line at the bottom of this file. (This
184 ;; This was in keeping with the line-by-line way of entering BASIC,
201 ;; on its line. As the command is called interactively all the usual
218 ;; be able to do this fairly easily with (vcursor-relative-move) and
274 ;; move the vcursor instead. Remember how to turn it off (type t),
276 ;; bound by default in this keymap and will continue to move the
293 ;; - The vcursor will not move to point-max, since otherwise it would
302 ;; end of the line. You're welcome to consider this a feature;
321 ;; move to last pushed position) functions.
370 (global-set-key [C-f4] 'vcursor-copy-line)
378 (global-set-key [C-f6] 'vcursor-previous-line)
379 (global-set-key [C-f7] 'vcursor-next-line)
382 (global-set-key [M-f5] 'vcursor-beginning-of-line)
385 (global-set-key [M-f8] 'vcursor-end-of-line)
398 ;;; e.g C-S-up: (global-set-key "\M-[\C-f\M-\C-m" 'vcursor-previous-line)
425 (global-set-key (vcursor-cs-binding "up") 'vcursor-previous-line)
426 (global-set-key (vcursor-cs-binding "down") 'vcursor-next-line)
454 (global-set-key (vcursor-cs-binding "left" t) 'vcursor-beginning-of-line)
455 (global-set-key (vcursor-cs-binding "right" t) 'vcursor-end-of-line)
460 (global-set-key (vcursor-cs-binding "return" t) 'vcursor-copy-line)
503 The commands `vcursor-copy', `vcursor-relative-move' and the ones for
526 (define-key vcursor-map "\C-p" 'vcursor-previous-line)
527 (define-key vcursor-map "\C-n" 'vcursor-next-line)
544 (define-key vcursor-map "\C-a" 'vcursor-beginning-of-line)
545 (define-key vcursor-map "\C-e" 'vcursor-end-of-line)
548 (define-key vcursor-map "\M-l" 'vcursor-copy-line)
643 (defun vcursor-move (pt &optional leave-b leave-w)
658 (move-overlay vcursor-overlay pt (+ pt 1) (current-buffer))
678 (defun vcursor-relative-move (func &rest args)
679 "Call FUNC with arbitrary ARGS ... to move the virtual cursor.
689 (vcursor-move (point))
722 (vcursor-move here)))
788 ;; right, so make sure vcursor-move doesn't pick others.
789 (vcursor-move (point) nil t))
845 (vcursor-move (point))
917 (vcursor-move p2 t)
963 (vcursor-move p2 t)
968 (defun vcursor-next-line (arg)
970 ;; This is next-line rewritten for the vcursor. Maybe it would
971 ;; be easier simply to rewrite line-move.
977 (if (or (eq last-command 'vcursor-next-line)
978 (eq last-command 'vcursor-previous-line))
980 (setq last-command 'next-line) ; trick line-move
983 (or (not (bolp)) (eq last-command 'end-of-line)))
987 (line-move arg)
991 (vcursor-move (point))
997 (defun vcursor-previous-line (arg)
1000 (vcursor-next-line (- arg))
1006 (vcursor-relative-move 'forward-char arg)
1012 (vcursor-relative-move 'backward-char arg)
1018 (vcursor-relative-move 'forward-word arg)
1024 (vcursor-relative-move 'backward-word arg)
1027 (defun vcursor-beginning-of-line (arg)
1028 "Move the virtual cursor to beginning of its current line.
1029 ARG is as for `beginning-of-line'."
1031 (vcursor-relative-move 'beginning-of-line
1035 (defun vcursor-end-of-line (arg)
1036 "Move the virtual cursor to end of its current line.
1037 ARG is as for `end-of-line'."
1039 (vcursor-relative-move 'end-of-line
1047 (vcursor-relative-move
1061 (vcursor-relative-move
1105 (vcursor-move end)))))
1115 (defun vcursor-copy-line (arg)
1116 "Copy up to ARGth line after virtual cursor position.
1117 With no argument, copy to the end of the current line.
1120 `kill-line'; the main difference is that whitespace at the end of the
1121 line is treated like ordinary characters."
1125 (count (vcursor-get-char-count 'end-of-line num)))
1132 keymap, allowing you to move the vcursor with ordinary motion keys.