mhayashi1120 / Emacs-wgrep

Writable grep buffer and apply the changes to files
GNU General Public License v3.0
661 stars 43 forks source link

error "Invalid search bound (wrong side of poin #90

Closed getong closed 1 year ago

getong commented 1 year ago

I use consult-grep and embark. The error msg:

Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
  re-search-backward("^$" 66 t)
  wgrep-prepare-header&footer()
  wgrep-prepare-to-edit()
  wgrep-change-to-wgrep-mode()
  #<subr funcall-interactively>(wgrep-change-to-wgrep-mode)
  apply(#<subr funcall-interactively> wgrep-change-to-wgrep-mode)
  funcall-interactively(wgrep-change-to-wgrep-mode)
  #<subr call-interactively>(wgrep-change-to-wgrep-mode record nil)
  apply(#<subr call-interactively> (wgrep-change-to-wgrep-mode record nil))
  explain-pause--wrap-call-interactively(#<subr call-interactively> wgrep-change-to-wgrep-mode record nil)
  apply(explain-pause--wrap-call-interactively #<subr call-interactively> (wgrep-change-to-wgrep-mode record nil))
  call-interactively(wgrep-change-to-wgrep-mode record nil)
  command-execute(wgrep-change-to-wgrep-mode record)
  execute-extended-command(nil "wgrep-change-to-wgrep-mode" nil)
  #<subr funcall-interactively>(execute-extended-command nil "wgrep-change-to-wgrep-mode" nil)
  apply(#<subr funcall-interactively> (execute-extended-command nil "wgrep-change-to-wgrep-mode" nil))
  funcall-interactively(execute-extended-command nil "wgrep-change-to-wgrep-mode" nil)
  #<subr call-interactively>(execute-extended-command nil nil)
  apply(#<subr call-interactively> (execute-extended-command nil nil))
  explain-pause--wrap-call-interactively(#<subr call-interactively> execute-extended-command nil nil)
  apply(explain-pause--wrap-call-interactively #<subr call-interactively> (execute-extended-command nil nil))
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)