Mercurial > emacs
comparison lisp/emulation/vi.el @ 3591:507f64624555
Apply typo patches from Paul Eggert.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 09 Jun 1993 11:59:12 +0000 |
parents | a52da8d63ff3 |
children | 6f9b0830f124 |
comparison
equal
deleted
inserted
replaced
3590:d5f22061277d | 3591:507f64624555 |
---|---|
330 | 330 |
331 (defvar vi-last-find-char nil ; cons cell | 331 (defvar vi-last-find-char nil ; cons cell |
332 "Save last direction, char and upto-flag used for char finding.") | 332 "Save last direction, char and upto-flag used for char finding.") |
333 | 333 |
334 (defvar vi-last-change-command nil ; cons cell | 334 (defvar vi-last-change-command nil ; cons cell |
335 "Save commmands for redoing last changes. Each command is in (FUNC . ARGS) | 335 "Save commands for redoing last changes. Each command is in (FUNC . ARGS) |
336 form that is ready to be 'apply'ed.") | 336 form that is ready to be 'apply'ed.") |
337 | 337 |
338 (defvar vi-last-shell-command nil ; last shell op command line | 338 (defvar vi-last-shell-command nil ; last shell op command line |
339 "Save last shell command given for \"!\" operator.") | 339 "Save last shell command given for \"!\" operator.") |
340 | 340 |
788 (interactive "p") | 788 (interactive "p") |
789 (scroll-down count)) | 789 (scroll-down count)) |
790 | 790 |
791 (defun vi-char-argument (arg) | 791 (defun vi-char-argument (arg) |
792 "Get following character (could be any CHAR) as part of the prefix argument. | 792 "Get following character (could be any CHAR) as part of the prefix argument. |
793 Possible perfix-arg cases are NIL, INTEGER, (NIL . CHAR) or (INTEGER . CHAR)." | 793 Possible prefix-arg cases are NIL, INTEGER, (NIL . CHAR) or (INTEGER . CHAR)." |
794 (interactive "P") | 794 (interactive "P") |
795 (let ((char (read-char))) | 795 (let ((char (read-char))) |
796 (cond ((null arg) (setq prefix-arg (cons nil char))) | 796 (cond ((null arg) (setq prefix-arg (cons nil char))) |
797 ((integerp arg) (setq prefix-arg (cons arg char))) | 797 ((integerp arg) (setq prefix-arg (cons arg char))) |
798 ; This can happen only if the user changed his/her mind for CHAR, | 798 ; This can happen only if the user changed his/her mind for CHAR, |
1344 (t (message "Ask for: l(ine number), c(ursor position), p(age number)") | 1344 (t (message "Ask for: l(ine number), c(ursor position), p(age number)") |
1345 (setq char (read-char)) | 1345 (setq char (read-char)) |
1346 (vi-ask-for-info char)))) | 1346 (vi-ask-for-info char)))) |
1347 | 1347 |
1348 (defun vi-mark-region (arg region) | 1348 (defun vi-mark-region (arg region) |
1349 "Mark region approriately. The next char REGION is d(efun),s(-exp),b(uffer), | 1349 "Mark region appropriately. The next char REGION is d(efun),s(-exp),b(uffer), |
1350 p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence), | 1350 p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence), |
1351 l(ines)." | 1351 l(ines)." |
1352 (interactive "p\nc") | 1352 (interactive "p\nc") |
1353 (cond ((char-equal region ?d) (mark-defun arg)) | 1353 (cond ((char-equal region ?d) (mark-defun arg)) |
1354 ((char-equal region ?s) (mark-sexp arg)) | 1354 ((char-equal region ?s) (mark-sexp arg)) |