diff options
| author | Jay Belanger | 2010-05-18 17:49:56 -0500 |
|---|---|---|
| committer | Jay Belanger | 2010-05-18 17:49:56 -0500 |
| commit | 134c2f29cef985c940bd9496a1e69dff850b80a3 (patch) | |
| tree | f24c59536e7745d156526f8f59395e721400d61d | |
| parent | 278847cd9230346c8cc210b79a21acaf28f0fb62 (diff) | |
| download | emacs-134c2f29cef985c940bd9496a1e69dff850b80a3.tar.gz emacs-134c2f29cef985c940bd9496a1e69dff850b80a3.zip | |
calc-trail.el (calc-trail-isearch-forward)
(calc-trail-isearch-backward): Ensure that the new window
point is set correctly.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/calc/calc-trail.el | 28 |
2 files changed, 24 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0130fb063e9..ab45bf149f8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-05-18 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-trail.el (calc-trail-isearch-forward) | ||
| 4 | (calc-trail-isearch-backward): Ensure that the new window | ||
| 5 | point is set correctly. | ||
| 6 | |||
| 1 | 2010-05-18 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2010-05-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * subr.el (read-quoted-char): Resolve modifiers after key | 9 | * subr.el (read-quoted-char): Resolve modifiers after key |
diff --git a/lisp/calc/calc-trail.el b/lisp/calc/calc-trail.el index 9bbb4178fd3..20dc1d1b99e 100644 --- a/lisp/calc/calc-trail.el +++ b/lisp/calc/calc-trail.el | |||
| @@ -108,20 +108,28 @@ | |||
| 108 | (defun calc-trail-isearch-forward () | 108 | (defun calc-trail-isearch-forward () |
| 109 | (interactive) | 109 | (interactive) |
| 110 | (calc-with-trail-buffer | 110 | (calc-with-trail-buffer |
| 111 | (save-window-excursion | 111 | (let ((win (get-buffer-window (current-buffer))) |
| 112 | (select-window (get-buffer-window (current-buffer))) | 112 | pos) |
| 113 | (let ((search-exit-char ?\r)) | 113 | (save-window-excursion |
| 114 | (isearch-forward))) | 114 | (select-window win) |
| 115 | (calc-trail-here))) | 115 | (isearch-forward) |
| 116 | (setq pos (point))) | ||
| 117 | (goto-char pos) | ||
| 118 | (set-window-point win pos) | ||
| 119 | (calc-trail-here)))) | ||
| 116 | 120 | ||
| 117 | (defun calc-trail-isearch-backward () | 121 | (defun calc-trail-isearch-backward () |
| 118 | (interactive) | 122 | (interactive) |
| 119 | (calc-with-trail-buffer | 123 | (calc-with-trail-buffer |
| 120 | (save-window-excursion | 124 | (let ((win (get-buffer-window (current-buffer))) |
| 121 | (select-window (get-buffer-window (current-buffer))) | 125 | pos) |
| 122 | (let ((search-exit-char ?\r)) | 126 | (save-window-excursion |
| 123 | (isearch-backward))) | 127 | (select-window win) |
| 124 | (calc-trail-here))) | 128 | (isearch-backward) |
| 129 | (setq pos (point))) | ||
| 130 | (goto-char pos) | ||
| 131 | (set-window-point win pos) | ||
| 132 | (calc-trail-here)))) | ||
| 125 | 133 | ||
| 126 | (defun calc-trail-yank (arg) | 134 | (defun calc-trail-yank (arg) |
| 127 | (interactive "P") | 135 | (interactive "P") |