aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2007-10-28 14:49:41 +0000
committerJuri Linkov2007-10-28 14:49:41 +0000
commit72a69d7f8170f7224f98205e32ccf488563e28e9 (patch)
treecf3d50f2d511d594fe1f8ffcae5eefcec88ca6e8
parent747e8ee222c08cb73319180ef2f4dd0798776cc7 (diff)
downloademacs-72a69d7f8170f7224f98205e32ccf488563e28e9.tar.gz
emacs-72a69d7f8170f7224f98205e32ccf488563e28e9.zip
(isearch-other-meta-char): Call `isearch-edit-string' when mouse is
clicked on the isearch message. (isearch-resume): Call `isearch-update' at the end. Rename argument `search' to `string' to conform to the isearch terminology.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/isearch.el15
2 files changed, 19 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 27fe92bad28..3a87e527307 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12007-10-28 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-other-meta-char): Call `isearch-edit-string'
4 when mouse is clicked on the isearch message.
5 (isearch-resume): Call `isearch-update' at the end.
6 Rename argument `search' to `string' to conform to the
7 isearch terminology.
8
12007-10-28 Stefan Monnier <monnier@iro.umontreal.ca> 92007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2 10
3 Rewrite abbrev.c in Elisp. 11 Rewrite abbrev.c in Elisp.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index c9a4cf45664..afc9ee2036a 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1738,6 +1738,12 @@ Isearch mode."
1738 (isearch-back-into-window (eq ab-bel 'above) isearch-point) 1738 (isearch-back-into-window (eq ab-bel 'above) isearch-point)
1739 (goto-char isearch-point))) 1739 (goto-char isearch-point)))
1740 (isearch-update)) 1740 (isearch-update))
1741 ;; A mouse click on the isearch message starts editing the search string
1742 ((and (eq (car-safe main-event) 'down-mouse-1)
1743 (window-minibuffer-p (posn-window (event-start main-event))))
1744 ;; Swallow the up-event.
1745 (read-event)
1746 (isearch-edit-string))
1741 (search-exit-option 1747 (search-exit-option
1742 (let (window) 1748 (let (window)
1743 (isearch-unread-key-sequence keylist) 1749 (isearch-unread-key-sequence keylist)
@@ -2499,19 +2505,20 @@ Attempt to do the search exactly the way the pending isearch would."
2499 (run-at-time lazy-highlight-interval nil 2505 (run-at-time lazy-highlight-interval nil
2500 'isearch-lazy-highlight-update))))))))) 2506 'isearch-lazy-highlight-update)))))))))
2501 2507
2502(defun isearch-resume (search regexp word forward message case-fold) 2508(defun isearch-resume (string regexp word forward message case-fold)
2503 "Resume an incremental search. 2509 "Resume an incremental search.
2504SEARCH is the string or regexp searched for. 2510STRING is the string or regexp searched for.
2505REGEXP non-nil means the resumed search was a regexp search. 2511REGEXP non-nil means the resumed search was a regexp search.
2506WORD non-nil means resume a word search. 2512WORD non-nil means resume a word search.
2507FORWARD non-nil means resume a forward search. 2513FORWARD non-nil means resume a forward search.
2508MESSAGE is the echo-area message recorded for the search resumed. 2514MESSAGE is the echo-area message recorded for the search resumed.
2509CASE-FOLD non-nil means the search was case-insensitive." 2515CASE-FOLD non-nil means the search was case-insensitive."
2510 (isearch-mode forward regexp nil nil word) 2516 (isearch-mode forward regexp nil nil word)
2511 (setq isearch-string search 2517 (setq isearch-string string
2512 isearch-message message 2518 isearch-message message
2513 isearch-case-fold-search case-fold) 2519 isearch-case-fold-search case-fold)
2514 (isearch-search)) 2520 (isearch-search)
2521 (isearch-update))
2515 2522
2516;; arch-tag: 74850515-f7d8-43a6-8a2c-ca90a4c1e675 2523;; arch-tag: 74850515-f7d8-43a6-8a2c-ca90a4c1e675
2517;;; isearch.el ends here 2524;;; isearch.el ends here