abo-abo / ace-window

Quickly switch windows in Emacs
984 stars 87 forks source link

Error: void-function map #226

Closed seagle0128 closed 2 years ago

seagle0128 commented 2 years ago

Using the latest version with Emacs 29 on macOS 12.5.1.

Turn on ace-window-posframe-mode and got this error.

Debugger entered--Lisp error: (void-function map)
  map(nil posframe-hide ("*aw-posframe-buffer-(49)*" "*aw-posframe-buffer-(50)*" "*aw-posframe-buffer-(51)*" "*aw-posframe-buffer-(49)*" "*aw-posframe-buffer-(50)*" "*aw-posframe-buffer-(51)*" "*aw-posframe-buffer-(49)*" "*aw-posframe-buffer-(50)*" "*aw-posframe-buffer-(51)*" "*aw-posframe-buffer-(49)*" "*aw-posframe-buffer-(50)*" "*aw-posframe-buffer-(51)*"))
  aw--remove-leading-chars-posframe()
  avy-read(((49 leaf 10 . #<window 3 on trpl-zh-cn.pdf>) (50 leaf 408008 . #<window 16 on *Packages*>) (51 leaf 406758 . #<window 18 on *Packages*>)) aw--lead-overlay-posframe aw--remove-leading-chars-posframe)
  aw-select(" Ace - Window" aw-switch-to-window)
  ace-select-window()
  #f(compiled-function (arg) "Select a window.\nPerform an action based on ARG described below.\n\nBy default, behaves like extended `other-window'.\nSee `aw-scope' which extends it to work with frames.\n\nPrefixed with one \\[universal-argument], does a swap between the\nselected window and the current window, so that the selected\nbuffer moves to current window (and current buffer moves to\nselected window).\n\nPrefixed with two \\[universal-argument]'s, deletes the selected\nwindow." (interactive "p") #<bytecode -0xacbbdea3f9ae4a0>)(2)
  apply(#f(compiled-function (arg) "Select a window.\nPerform an action based on ARG described below.\n\nBy default, behaves like extended `other-window'.\nSee `aw-scope' which extends it to work with frames.\n\nPrefixed with one \\[universal-argument], does a swap between the\nselected window and the current window, so that the selected\nbuffer moves to current window (and current buffer moves to\nselected window).\n\nPrefixed with two \\[universal-argument]'s, deletes the selected\nwindow." (interactive "p") #<bytecode -0xacbbdea3f9ae4a0>) 2)
  ace-window(2)
  funcall-interactively(ace-window 2)
  #<subr command-execute>(ace-window nil nil nil)
  ad-Advice-command-execute(#<subr command-execute> ace-window)
  apply(ad-Advice-command-execute #<subr command-execute> ace-window)
  command-execute(ace-window)

https://github.com/abo-abo/ace-window/blob/e3e6ec105ae8d18208f7a56fc1b068dd1427f1d4/ace-window-posframe.el#L27

abo-abo commented 2 years ago

Thanks!