Mercurial > emacs
comparison lisp/isearch.el @ 1885:9e79ffe97d5b
Fix minor bugs in previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 17 Feb 1993 21:30:25 +0000 |
parents | b707809f29bb |
children | f2dbfd43a1c5 |
comparison
equal
deleted
inserted
replaced
1884:4a8bc12e7017 | 1885:9e79ffe97d5b |
---|---|
2 ;; Copyright (C) 1992 Free Software Foundation, Inc. | 2 ;; Copyright (C) 1992 Free Software Foundation, Inc. |
3 | 3 |
4 ;; LCD Archive Entry: | 4 ;; LCD Archive Entry: |
5 ;; isearch-mode|Daniel LaLiberte|liberte@cs.uiuc.edu | 5 ;; isearch-mode|Daniel LaLiberte|liberte@cs.uiuc.edu |
6 ;; |A minor mode replacement for isearch.el. | 6 ;; |A minor mode replacement for isearch.el. |
7 ;; |$Date: 1993/01/26 01:48:27 $|$Revision: 1.17 $|~/modes/isearch-mode.el | 7 ;; |$Date: 1993/02/17 20:34:20 $|$Revision: 1.18 $|~/modes/isearch-mode.el |
8 | 8 |
9 ;; This file is not yet part of GNU Emacs, but it is based almost | 9 ;; This file is not yet part of GNU Emacs, but it is based almost |
10 ;; entirely on isearch.el which is part of GNU Emacs. | 10 ;; entirely on isearch.el which is part of GNU Emacs. |
11 | 11 |
12 ;; GNU Emacs is distributed in the hope that it will be useful, | 12 ;; GNU Emacs is distributed in the hope that it will be useful, |
86 ;; - Hooks and options for failed search. | 86 ;; - Hooks and options for failed search. |
87 | 87 |
88 ;;;==================================================================== | 88 ;;;==================================================================== |
89 ;;; Change History | 89 ;;; Change History |
90 | 90 |
91 ;;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/isearch-mode.el,v 1.17 1993/01/26 01:48:27 jimb Exp rms $ | 91 ;;; $Header: /gd/gnu/emacs/19.0/lisp/RCS/isearch-mode.el,v 1.18 1993/02/17 20:34:20 rms Exp rms $ |
92 ;;; $Log: isearch-mode.el,v $ | 92 ;;; $Log: isearch-mode.el,v $ |
93 ; Revision 1.18 1993/02/17 20:34:20 rms | |
94 ; (isearch-backward-regexp): | |
95 ; New arg no-recursive-edit, always non-nil for interactive call. | |
96 ; Rename first arg, and set it right in interactive call. | |
97 ; (isearch-forward-regexp): Likewise. | |
98 ; (isearch-forward, isearch-backward): Likewise no-recursive-edit. | |
99 ; | |
93 ; Revision 1.17 1993/01/26 01:48:27 jimb | 100 ; Revision 1.17 1993/01/26 01:48:27 jimb |
94 ; JimB's changes since January 18th | 101 ; JimB's changes since January 18th |
95 ; | 102 ; |
96 ; Revision 1.16 1992/11/16 01:37:06 jimb | 103 ; Revision 1.16 1992/11/16 01:37:06 jimb |
97 ; * bytecomp.el: Declare unread-command-char an obsolete variable. | 104 ; * bytecomp.el: Declare unread-command-char an obsolete variable. |
464 | 471 |
465 If this function is called non-interactively, it does not return to | 472 If this function is called non-interactively, it does not return to |
466 the calling function until the search is done." | 473 the calling function until the search is done." |
467 | 474 |
468 (interactive "P\np") | 475 (interactive "P\np") |
469 (isearch-mode t (not (null regexp-p)) nil no-recursive-edit)) | 476 (isearch-mode t (not (null regexp-p)) nil (not no-recursive-edit))) |
470 | 477 |
471 (defun isearch-forward-regexp (&optional not-regexp no-recursive-edit) | 478 (defun isearch-forward-regexp (&optional not-regexp no-recursive-edit) |
472 "\ | 479 "\ |
473 Do incremental search forward for regular expression. | 480 Do incremental search forward for regular expression. |
474 With a prefix argument, do a regular string search instead. | 481 With a prefix argument, do a regular string search instead. |
475 Like ordinary incremental search except that your input | 482 Like ordinary incremental search except that your input |
476 is treated as a regexp. See \\[isearch-forward] for more info." | 483 is treated as a regexp. See \\[isearch-forward] for more info." |
477 (interactive "P\np") | 484 (interactive "P\np") |
478 (isearch-mode t (null not-regexp) nil no-recursive-edit)) | 485 (isearch-mode t (null not-regexp) nil (not no-recursive-edit))) |
479 | 486 |
480 (defun isearch-backward (&optional regexp-p no-recursive-edit) | 487 (defun isearch-backward (&optional regexp-p no-recursive-edit) |
481 "\ | 488 "\ |
482 Do incremental search backward. | 489 Do incremental search backward. |
483 With a prefix argument, do a regular expression search instead. | 490 With a prefix argument, do a regular expression search instead. |
484 See \\[isearch-forward] for more information." | 491 See \\[isearch-forward] for more information." |
485 (interactive "P\np") | 492 (interactive "P\np") |
486 (isearch-mode nil (not (null regexp-p)) nil no-recursive-edit)) | 493 (isearch-mode nil (not (null regexp-p)) nil (not no-recursive-edit))) |
487 | 494 |
488 (defun isearch-backward-regexp (&optional not-regexp no-recursive-edit) | 495 (defun isearch-backward-regexp (&optional not-regexp no-recursive-edit) |
489 "\ | 496 "\ |
490 Do incremental search backward for regular expression. | 497 Do incremental search backward for regular expression. |
491 With a prefix argument, do a regular string search instead. | 498 With a prefix argument, do a regular string search instead. |
492 Like ordinary incremental search except that your input | 499 Like ordinary incremental search except that your input |
493 is treated as a regexp. See \\[isearch-forward] for more info." | 500 is treated as a regexp. See \\[isearch-forward] for more info." |
494 (interactive "P\np") | 501 (interactive "P\np") |
495 (isearch-mode nil (null not-regexp) nil no-recursive-edit)) | 502 (isearch-mode nil (null not-regexp) nil (not no-recursive-edit))) |
496 | 503 |
497 | 504 |
498 (defun isearch-mode-help () | 505 (defun isearch-mode-help () |
499 (interactive) | 506 (interactive) |
500 (describe-function 'isearch-forward) | 507 (describe-function 'isearch-forward) |
1551 ;; last-command-event (character-to-event last-command-char) | 1558 ;; last-command-event (character-to-event last-command-char) |
1552 ;; this-command 'isearch-printing-char)))) | 1559 ;; this-command 'isearch-printing-char)))) |
1553 ;; )) | 1560 ;; )) |
1554 | 1561 |
1555 ;;)) | 1562 ;;)) |
1563 |