Mercurial > emacs
comparison lisp/view.el @ 13168:aa2fb1aa0c94
Doc fixes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 09 Oct 1995 19:44:26 +0000 |
parents | c378e215f4d0 |
children | d01d8c5b6e30 |
comparison
equal
deleted
inserted
replaced
13167:c378e215f4d0 | 13168:aa2fb1aa0c94 |
---|---|
377 (- (view-scroll-size))))) | 377 (- (view-scroll-size))))) |
378 | 378 |
379 (defun View-search-regexp-forward (n regexp) | 379 (defun View-search-regexp-forward (n regexp) |
380 "Search forward for Nth occurrence of REGEXP. | 380 "Search forward for Nth occurrence of REGEXP. |
381 Displays line found at center of window. REGEXP is remembered for | 381 Displays line found at center of window. REGEXP is remembered for |
382 searching with \\[View-search-last-regexp-forward] and \\[View-search-last-regexp-backward]. Sets mark at starting position and pushes mark ring." | 382 searching with \\[View-search-last-regexp-forward] and \\[View-search-last-regexp-backward]. Sets mark at starting position and pushes mark ring. |
383 | |
384 The variable `view-highlight-face' controls the face that is used | |
385 for highlighting the match that is found." | |
383 (interactive "p\nsSearch forward (regexp): ") | 386 (interactive "p\nsSearch forward (regexp): ") |
384 ;;;(view-last-command 'View-search-last-regexp-forward n) | 387 ;;;(view-last-command 'View-search-last-regexp-forward n) |
385 (view-search n (if (equal regexp "") view-last-regexp regexp))) | 388 (view-search n (if (equal regexp "") view-last-regexp regexp))) |
386 | 389 |
387 (defun View-search-regexp-backward (n regexp) | 390 (defun View-search-regexp-backward (n regexp) |
388 "Search backward from window start for Nth instance of REGEXP. | 391 "Search backward from window start for Nth instance of REGEXP. |
389 Displays line found at center of window. REGEXP is remembered for | 392 Displays line found at center of window. REGEXP is remembered for |
390 searching with \\[View-search-last-regexp-forward] and \\[View-search-last-regexp-backward]. Sets mark at starting position and pushes mark ring." | 393 searching with \\[View-search-last-regexp-forward] and \\[View-search-last-regexp-backward]. Sets mark at starting position and pushes mark ring. |
394 | |
395 The variable `view-highlight-face' controls the face that is used | |
396 for highlighting the match that is found." | |
391 (interactive "p\nsSearch backward (regexp): ") | 397 (interactive "p\nsSearch backward (regexp): ") |
392 (View-search-regexp-forward (- n) | 398 (View-search-regexp-forward (- n) |
393 (if (equal regexp "") view-last-regexp regexp))) | 399 (if (equal regexp "") view-last-regexp regexp))) |
394 | 400 |
395 (defun View-search-last-regexp-forward (n) | 401 (defun View-search-last-regexp-forward (n) |
396 "Search forward from window end for Nth instance of last regexp. | 402 "Search forward from window end for Nth instance of last regexp. |
397 Displays line found at center of window. Sets mark at starting position | 403 Displays line found at center of window. Sets mark at starting position |
398 and pushes mark ring." | 404 and pushes mark ring. |
405 | |
406 The variable `view-highlight-face' controls the face that is used | |
407 for highlighting the match that is found." | |
399 (interactive "p") | 408 (interactive "p") |
400 (View-search-regexp-forward n view-last-regexp)) | 409 (View-search-regexp-forward n view-last-regexp)) |
401 | 410 |
402 (defun View-search-last-regexp-backward (n) | 411 (defun View-search-last-regexp-backward (n) |
403 "Search backward from window start for Nth instance of last regexp. | 412 "Search backward from window start for Nth instance of last regexp. |
404 Displays line found at center of window. Sets mark at starting position and | 413 Displays line found at center of window. Sets mark at starting position and |
405 pushes mark ring." | 414 pushes mark ring. |
415 | |
416 The variable `view-highlight-face' controls the face that is used | |
417 for highlighting the match that is found." | |
406 (interactive "p") | 418 (interactive "p") |
407 (View-search-regexp-backward n view-last-regexp)) | 419 (View-search-regexp-backward n view-last-regexp)) |
408 | 420 |
409 (defun View-back-to-mark (&optional ignore) | 421 (defun View-back-to-mark (&optional ignore) |
410 "Return to last mark set in View mode, else beginning of file. | 422 "Return to last mark set in View mode, else beginning of file. |