emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/isearch.el


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/lisp/isearch.el
Date: Thu, 28 Jul 2005 09:55:17 -0400

Index: emacs/lisp/isearch.el
diff -c emacs/lisp/isearch.el:1.267 emacs/lisp/isearch.el:1.268
*** emacs/lisp/isearch.el:1.267 Tue Jul 19 11:39:16 2005
--- emacs/lisp/isearch.el       Thu Jul 28 13:55:16 2005
***************
*** 122,129 ****
  
  (defcustom search-invisible 'open
    "If t incremental search can match hidden text.
! nil means don't match invisible text.
! If the value is `open', if the text matched is made invisible by
  an overlay having an `invisible' property and that overlay has a property
  `isearch-open-invisible', then incremental search will show the contents.
  \(This applies when using `outline.el' and `hideshow.el'.)
--- 122,129 ----
  
  (defcustom search-invisible 'open
    "If t incremental search can match hidden text.
! A nil value means don't match invisible text.
! When the value is `open', if the text matched is made invisible by
  an overlay having an `invisible' property and that overlay has a property
  `isearch-open-invisible', then incremental search will show the contents.
  \(This applies when using `outline.el' and `hideshow.el'.)
***************
*** 188,197 ****
  
  (defvar search-ring-yank-pointer nil
    "Index in `search-ring' of last string reused.
! nil if none yet.")
  (defvar regexp-search-ring-yank-pointer nil
    "Index in `regexp-search-ring' of last string reused.
! nil if none yet.")
  
  (defcustom search-ring-update nil
    "*Non-nil if advancing or retreating in the search ring should cause search.
--- 188,197 ----
  
  (defvar search-ring-yank-pointer nil
    "Index in `search-ring' of last string reused.
! It is nil if none yet.")
  (defvar regexp-search-ring-yank-pointer nil
    "Index in `regexp-search-ring' of last string reused.
! It is nil if none yet.")
  
  (defcustom search-ring-update nil
    "*Non-nil if advancing or retreating in the search ring should cause search.
***************
*** 246,267 ****
  \\[lazy-highlight-cleanup]."
    :type 'boolean
    :group 'lazy-highlight)
! (defvaralias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup)
! (make-obsolete-variable 'isearch-lazy-highlight-cleanup 
'lazy-highlight-cleanup "22.1")
  
  (defcustom lazy-highlight-initial-delay 0.25
    "*Seconds to wait before beginning to lazily highlight all matches."
    :type 'number
    :group 'lazy-highlight)
! (defvaralias 'isearch-lazy-highlight-initial-delay 
'lazy-highlight-initial-delay)
! (make-obsolete-variable 'isearch-lazy-highlight-initial-delay 
'lazy-highlight-initial-delay "22.1")
  
  (defcustom lazy-highlight-interval 0 ; 0.0625
    "*Seconds between lazily highlighting successive matches."
    :type 'number
    :group 'lazy-highlight)
! (defvaralias 'isearch-lazy-highlight-interval 'lazy-highlight-interval)
! (make-obsolete-variable 'isearch-lazy-highlight-interval 
'lazy-highlight-interval "22.1")
  
  (defcustom lazy-highlight-max-at-a-time 20
    "*Maximum matches to highlight at a time (for `lazy-highlight').
--- 246,270 ----
  \\[lazy-highlight-cleanup]."
    :type 'boolean
    :group 'lazy-highlight)
! (define-obsolete-variable-alias 'isearch-lazy-highlight-cleanup
!                                 'lazy-highlight-cleanup
!                                 "22.1")
  
  (defcustom lazy-highlight-initial-delay 0.25
    "*Seconds to wait before beginning to lazily highlight all matches."
    :type 'number
    :group 'lazy-highlight)
! (define-obsolete-variable-alias 'isearch-lazy-highlight-initial-delay
!                                 'lazy-highlight-initial-delay
!                                 "22.1")
  
  (defcustom lazy-highlight-interval 0 ; 0.0625
    "*Seconds between lazily highlighting successive matches."
    :type 'number
    :group 'lazy-highlight)
! (define-obsolete-variable-alias 'isearch-lazy-highlight-interval
!                                 'lazy-highlight-interval
!                                 "22.1")
  
  (defcustom lazy-highlight-max-at-a-time 20
    "*Maximum matches to highlight at a time (for `lazy-highlight').
***************
*** 271,278 ****
    :type '(choice (const :tag "All" nil)
                 (integer :tag "Some"))
    :group 'lazy-highlight)
! (defvaralias 'isearch-lazy-highlight-max-at-a-time 
'lazy-highlight-max-at-a-time)
! (make-obsolete-variable 'isearch-lazy-highlight-max-at-a-time 
'lazy-highlight-max-at-a-time "22.1")
  
  (defface lazy-highlight
    '((((class color) (min-colors 88) (background light))
--- 274,282 ----
    :type '(choice (const :tag "All" nil)
                 (integer :tag "Some"))
    :group 'lazy-highlight)
! (define-obsolete-variable-alias 'isearch-lazy-highlight-max-at-a-time
!                                 'lazy-highlight-max-at-a-time
!                                 "22.1")
  
  (defface lazy-highlight
    '((((class color) (min-colors 88) (background light))
***************
*** 288,295 ****
    :group 'lazy-highlight)
  (put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight)
  (defvar lazy-highlight-face 'lazy-highlight)
! (defvaralias 'isearch-lazy-highlight-face 'lazy-highlight-face)
! (make-obsolete-variable 'isearch-lazy-highlight-face 'lazy-highlight-face 
"22.1")
  
  ;; Define isearch-mode keymap.
  
--- 292,300 ----
    :group 'lazy-highlight)
  (put 'isearch-lazy-highlight-face 'face-alias 'lazy-highlight)
  (defvar lazy-highlight-face 'lazy-highlight)
! (define-obsolete-variable-alias 'isearch-lazy-highlight-face
!                                 'lazy-highlight-face
!                                 "22.1")
  
  ;; Define isearch-mode keymap.
  
***************
*** 312,323 ****
      ;; We need these explicit definitions because, in a dense keymap,
      ;; the binding for t does not affect characters.
      ;; We use a dense keymap to save space.
!     (while (< i ?\ )
        (define-key map (make-string 1 i) 'isearch-other-control-char)
        (setq i (1+ i)))
  
      ;; Single-byte printing chars extend the search string by default.
!     (setq i ?\ )
      (while (< i 256)
        (define-key map (vector i) 'isearch-printing-char)
        (setq i (1+ i)))
--- 317,328 ----
      ;; We need these explicit definitions because, in a dense keymap,
      ;; the binding for t does not affect characters.
      ;; We use a dense keymap to save space.
!     (while (< i ?\s)
        (define-key map (make-string 1 i) 'isearch-other-control-char)
        (setq i (1+ i)))
  
      ;; Single-byte printing chars extend the search string by default.
!     (setq i ?\s)
      (while (< i 256)
        (define-key map (vector i) 'isearch-printing-char)
        (setq i (1+ i)))
***************
*** 531,537 ****
  Type \\[isearch-query-replace] to start `query-replace' with string to\
   replace from last search string.
  Type \\[isearch-query-replace-regexp] to start `query-replace-regexp'\
!  with string to replace from last search string..
  
  Type \\[isearch-toggle-case-fold] to toggle search case-sensitivity.
  Type \\[isearch-toggle-regexp] to toggle regular-expression mode.
--- 536,542 ----
  Type \\[isearch-query-replace] to start `query-replace' with string to\
   replace from last search string.
  Type \\[isearch-query-replace-regexp] to start `query-replace-regexp'\
!  with string to replace from last search string.
  
  Type \\[isearch-toggle-case-fold] to toggle search case-sensitivity.
  Type \\[isearch-toggle-regexp] to toggle regular-expression mode.
***************
*** 1657,1663 ****
               ;; directly to avoid the input method and keyboard
               ;; coding system translating it.
               (if (and (integerp key)
!                       (>= key ?\ ) (/= key 127) (< key 256))
                   (progn
                     (isearch-process-search-char key)
                     (setq keylist (cdr keylist)))
--- 1662,1668 ----
               ;; directly to avoid the input method and keyboard
               ;; coding system translating it.
               (if (and (integerp key)
!                       (>= key ?\s) (/= key 127) (< key 256))
                   (progn
                     (isearch-process-search-char key)
                     (setq keylist (cdr keylist)))
***************
*** 1749,1755 ****
      ;; Assume character codes 0200 - 0377 stand for characters in some
      ;; single-byte character set, and convert them to Emacs
      ;; characters.
!     (if (and isearch-regexp (= char ?\ ))
        (if (subregexp-context-p isearch-string (length isearch-string))
            (isearch-process-search-string "[ ]" " ")
          (isearch-process-search-char char))
--- 1754,1760 ----
      ;; Assume character codes 0200 - 0377 stand for characters in some
      ;; single-byte character set, and convert them to Emacs
      ;; characters.
!     (if (and isearch-regexp (= char ?\s))
        (if (subregexp-context-p isearch-string (length isearch-string))
            (isearch-process-search-string "[ ]" " ")
          (isearch-process-search-char char))
***************
*** 1770,1776 ****
    (interactive)
    (let ((char last-command-char))
      (if (= char ?\S-\ )
!       (setq char ?\ ))
      (if (and enable-multibyte-characters
             (>= char ?\200)
             (<= char ?\377))
--- 1775,1781 ----
    (interactive)
    (let ((char last-command-char))
      (if (= char ?\S-\ )
!       (setq char ?\s))
      (if (and enable-multibyte-characters
             (>= char ?\200)
             (<= char ?\377))
***************
*** 2200,2206 ****
  
  (defun isearch-text-char-description (c)
    (cond
!    ((< c ?\ ) (format "^%c" (+ c 64)))
     ((= c ?\^?) "^?")
     (t (char-to-string c))))
  
--- 2205,2211 ----
  
  (defun isearch-text-char-description (c)
    (cond
!    ((< c ?\s) (format "^%c" (+ c 64)))
     ((= c ?\^?) "^?")
     (t (char-to-string c))))
  
***************
*** 2287,2294 ****
      (cancel-timer isearch-lazy-highlight-timer)
      (setq isearch-lazy-highlight-timer nil)))
  
! (defalias 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup)
! (make-obsolete 'isearch-lazy-highlight-cleanup 'lazy-highlight-cleanup "22.1")
  
  (defun isearch-lazy-highlight-new-loop (&optional beg end)
    "Cleanup any previous `lazy-highlight' loop and begin a new one.
--- 2292,2300 ----
      (cancel-timer isearch-lazy-highlight-timer)
      (setq isearch-lazy-highlight-timer nil)))
  
! (define-obsolete-function-alias 'isearch-lazy-highlight-cleanup
!                                 'lazy-highlight-cleanup
!                                 "22.1")
  
  (defun isearch-lazy-highlight-new-loop (&optional beg end)
    "Cleanup any previous `lazy-highlight' loop and begin a new one.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]