@@ -121,10 +121,8 @@ This hook is set to nil with each call to `ace-window'.")
121
121
122
122
(defun aw--done ()
123
123
" Clean up ace-jump overlays."
124
- ( setq ace-jump-query-char nil )
124
+ ; ; clean up mode line
125
125
(setq ace-jump-current-mode nil )
126
-
127
- ; ; clean the status line
128
126
(setq ace-jump-mode nil )
129
127
(force-mode-line-update )
130
128
@@ -160,7 +158,6 @@ Amend MODE-LINE to the mode line for the duration of the selection."
160
158
(cl-case (length visual-area-list)
161
159
(0 )
162
160
(1
163
- ; ; don't get stuck in an empty read-only buffer
164
161
(select-window (aj-visual-area-window (car visual-area-list))))
165
162
(2
166
163
(select-window
@@ -203,11 +200,10 @@ Amend MODE-LINE to the mode line for the duration of the selection."
203
200
; ; turn off helm transient map
204
201
(remove-hook 'post-command-hook 'helm--maybe-update-keymap )
205
202
(unwind-protect
206
- (let (char node)
203
+ (let (node)
207
204
(catch 'done
208
205
(while t
209
- (setq char (read-char ))
210
- (setq node (cl-position char aw-keys))
206
+ (setq node (cl-position (read-char ) aw-keys))
211
207
(when node
212
208
(setq node (nth node (cdr ace-jump-search-tree))))
213
209
(cond ((null node)
@@ -225,9 +221,6 @@ Amend MODE-LINE to the mode line for the duration of the selection."
225
221
226
222
((eq (car node) 'leaf )
227
223
(let ((aj-data (overlay-get (cdr node) 'aj-data )))
228
- (ace-jump-done)
229
- (ace-jump-push-mark)
230
- (run-hooks 'ace-jump-mode-before-jump-hook )
231
224
(select-window (aj-position-window aj-data)))
232
225
(throw 'done t ))
233
226
@@ -318,7 +311,7 @@ Windows are numbered top down, left to right."
318
311
(select-frame-set-input-focus frame))
319
312
(if (window-live-p window)
320
313
(select-window window)
321
- (error " Bad aj-data, aw-delete- window: %S " aj-data ))))
314
+ (error " Got a dead window %S " window ))))
322
315
323
316
(defun aw-delete-window (window )
324
317
" Delete window WINDOW."
@@ -330,7 +323,7 @@ Windows are numbered top down, left to right."
330
323
(delete-frame frame)
331
324
(if (window-live-p window)
332
325
(delete-window window)
333
- (error " Bad aj-data, aw-delete- window: %S " aj-data )))))
326
+ (error " Got a dead window %S " window )))))
334
327
335
328
(defun aw-swap-window (window )
336
329
" Swap buffers of current window and WINDOW."
0 commit comments