diff options
| author | Richard M. Stallman | 1997-09-07 03:40:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-07 03:40:29 +0000 |
| commit | 8896f22d605f01bfb113f13951591aca0cf1af31 (patch) | |
| tree | 3741aa2ebe10204e17a731a55b94b70ead5efba2 | |
| parent | fc0678afb9207f0da28512e3c7ccd3ce5217a7ec (diff) | |
| download | emacs-8896f22d605f01bfb113f13951591aca0cf1af31.tar.gz emacs-8896f22d605f01bfb113f13951591aca0cf1af31.zip | |
(ispell-command-loop):
Restore dedicated flg of selected window.
(ispell-overlay-window): Move dedicated flag of old window
into the bottom of the two windows made from it.
| -rw-r--r-- | lisp/textmodes/ispell.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 79ca7737979..727a3653f10 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1036,6 +1036,8 @@ used." | |||
| 1036 | ispell-choices-win-default-height)) | 1036 | ispell-choices-win-default-height)) |
| 1037 | (command-characters '( ? ?i ?a ?A ?r ?R ?? ?x ?X ?q ?l ?u ?m )) | 1037 | (command-characters '( ? ?i ?a ?A ?r ?R ?? ?x ?X ?q ?l ?u ?m )) |
| 1038 | (skipped 0) | 1038 | (skipped 0) |
| 1039 | (window (selected-window)) | ||
| 1040 | (dedicated (window-dedicated-p (selected-window))) | ||
| 1039 | char num result textwin highlighted) | 1041 | char num result textwin highlighted) |
| 1040 | 1042 | ||
| 1041 | ;; setup the *Choices* buffer with valid data. | 1043 | ;; setup the *Choices* buffer with valid data. |
| @@ -1263,7 +1265,8 @@ used." | |||
| 1263 | (if ispell-highlight-p ; unhighlight | 1265 | (if ispell-highlight-p ; unhighlight |
| 1264 | (save-window-excursion | 1266 | (save-window-excursion |
| 1265 | (select-window textwin) | 1267 | (select-window textwin) |
| 1266 | (ispell-highlight-spelling-error start end)))))) | 1268 | (ispell-highlight-spelling-error start end))) |
| 1269 | (set-window-dedicated-p window dedicated)))) | ||
| 1267 | 1270 | ||
| 1268 | 1271 | ||
| 1269 | ;;;###autoload | 1272 | ;;;###autoload |
| @@ -1497,6 +1500,12 @@ scrolling the current window. Leave the new window selected." | |||
| 1497 | (if (string-match "19\.9.*Lucid" (emacs-version)) | 1500 | (if (string-match "19\.9.*Lucid" (emacs-version)) |
| 1498 | (setq height (1+ height))) | 1501 | (setq height (1+ height))) |
| 1499 | (split-window nil height) | 1502 | (split-window nil height) |
| 1503 | ;; The lower of the two windows is the logical successor | ||
| 1504 | ;; of the original window, so move the dedicated flag to there. | ||
| 1505 | ;; The new upper window should not be dedicated. | ||
| 1506 | (set-window-dedicated-p (next-window) | ||
| 1507 | (window-dedicated-p (selected-window))) | ||
| 1508 | (set-window-dedicated-p (selected-window) nil) | ||
| 1500 | (set-window-start (next-window) top)))) | 1509 | (set-window-start (next-window) top)))) |
| 1501 | 1510 | ||
| 1502 | 1511 | ||