Skip to content

corfu--metadata-get(nil) with tempel on upgrade to Emacs 30 #564

@titaniumbones

Description

@titaniumbones

Hi,

I am having a little trouble with corfu and tempel after upgrading to emacs 30 (debugger output pasted below). The problem seems to be that (corfu--metadata-get 'category) returns nil, but I am not smart enough to follow the ins and outs of the code. Do you have any clues as to what's going on?

 Debugger entered--Lisp error: (void-function nil)
 nil((metadata) category)
  corfu--metadata-get(category)
  corfu--recompute("begin" 5 ((caption "#+caption: ") (drawer ":" p ":" n r ":end:") (begin "#+begin_" (s name) n> r> n "#+end_" name) (quote "#+begin_quote" n> r> n "#+end_quote") (sidenote "#+begin_sidenote" n> r> n "#+end_sidenote") (marginnote "#+begin_marginnote" n> r> n "#+end_marginnote") (example "#+begin_example" n> r> n "#+end_example") (center "#+begin_center" n> r> n "#+end_center") (ascii "#+begin_export ascii" n> r> n "#+end_export") (html "#+begin_export html" n> r> n "#+end_export") (latex "#+begin_export latex" n> r> n "#+end_export") (comment "#+begin_comment" n> r> n "#+end_comment") (verse "#+begin_verse" n> r> n "#+end_verse") (src "#+begin_src " q n r n "#+end_src") (elisp "#+begin_src emacs-lisp " q n r n "#+end_src") (aider "#+begin_src aider " q n r n "#+end_src") (gnuplot "#+begin_src gnuplot :var data=" (p "table") " :file " (p "plot.png") n r n "#+end_src" :post (org-edit-src-code)) (elisp "#+begin_src emacs-lisp" n r n "#+end_src" :post (org-edit-src-code)) (inlsrc "src_" p "{" q "}") (title "#+title: " p n "#+author: Daniel Mendler" n "#+language: en") (lec "Lecture {{{n}}}: ") (struc "\n- *Readings:*") (box "┌─" (make-string (length str) 9472) "─┐" n "│ " (s str) " │" n "└─" (make-string (length str) 9472) "─┘" n) (abox "+-" (make-string (length str) 45) "-+" n "| " (s str) " |" n "+-" (make-string (length str) 45) "-+" n) (cut "--8<---------------cut here---------------start------------->8---" n r n "--8<---------------cut here---------------end--------------->8---" n) (rot13 (p "plain text" text) n "----" n (rot13 text)) (calc (p "taylor(sin(x),x=0,3)" formula) n "----" n (format "%s" (calc-eval formula))) (today (format-time-string "%Y-%m-%d"))) nil)
  corfu--in-region-1(#<marker at 153 in aider.org> 158 ((caption "#+caption: ") (drawer ":" p ":" n r ":end:") (begin "#+begin_" (s name) n> r> n "#+end_" name) (quote "#+begin_quote" n> r> n "#+end_quote") (sidenote "#+begin_sidenote" n> r> n "#+end_sidenote") (marginnote "#+begin_marginnote" n> r> n "#+end_marginnote") (example "#+begin_example" n> r> n "#+end_example") (center "#+begin_center" n> r> n "#+end_center") (ascii "#+begin_export ascii" n> r> n "#+end_export") (html "#+begin_export html" n> r> n "#+end_export") (latex "#+begin_export latex" n> r> n "#+end_export") (comment "#+begin_comment" n> r> n "#+end_comment") (verse "#+begin_verse" n> r> n "#+end_verse") (src "#+begin_src " q n r n "#+end_src") (elisp "#+begin_src emacs-lisp " q n r n "#+end_src") (aider "#+begin_src aider " q n r n "#+end_src") (gnuplot "#+begin_src gnuplot :var data=" (p "table") " :file " (p "plot.png") n r n "#+end_src" :post (org-edit-src-code)) (elisp "#+begin_src emacs-lisp" n r n "#+end_src" :post (org-edit-src-code)) (inlsrc "src_" p "{" q "}") (title "#+title: " p n "#+author: Daniel Mendler" n "#+language: en") (lec "Lecture {{{n}}}: ") (struc "\n- *Readings:*") (box "┌─" (make-string (length str) 9472) "─┐" n "│ " (s str) " │" n "└─" (make-string (length str) 9472) "─┘" n) (abox "+-" (make-string (length str) 45) "-+" n "| " (s str) " |" n "+-" (make-string (length str) 45) "-+" n) (cut "--8<---------------cut here---------------start------------->8---" n r n "--8<---------------cut here---------------end--------------->8---" n) (rot13 (p "plain text" text) n "----" n (rot13 text)) (calc (p "taylor(sin(x),x=0,3)" formula) n "----" n (format "%s" (calc-eval formula))) (today (format-time-string "%Y-%m-%d"))) nil)
  corfu--in-region(#<marker at 153 in aider.org> 158 ((caption "#+caption: ") (drawer ":" p ":" n r ":end:") (begin "#+begin_" (s name) n> r> n "#+end_" name) (quote "#+begin_quote" n> r> n "#+end_quote") (sidenote "#+begin_sidenote" n> r> n "#+end_sidenote") (marginnote "#+begin_marginnote" n> r> n "#+end_marginnote") (example "#+begin_example" n> r> n "#+end_example") (center "#+begin_center" n> r> n "#+end_center") (ascii "#+begin_export ascii" n> r> n "#+end_export") (html "#+begin_export html" n> r> n "#+end_export") (latex "#+begin_export latex" n> r> n "#+end_export") (comment "#+begin_comment" n> r> n "#+end_comment") (verse "#+begin_verse" n> r> n "#+end_verse") (src "#+begin_src " q n r n "#+end_src") (elisp "#+begin_src emacs-lisp " q n r n "#+end_src") (aider "#+begin_src aider " q n r n "#+end_src") (gnuplot "#+begin_src gnuplot :var data=" (p "table") " :file " (p "plot.png") n r n "#+end_src" :post (org-edit-src-code)) (elisp "#+begin_src emacs-lisp" n r n "#+end_src" :post (org-edit-src-code)) (inlsrc "src_" p "{" q "}") (title "#+title: " p n "#+author: Daniel Mendler" n "#+language: en") (lec "Lecture {{{n}}}: ") (struc "\n- *Readings:*") (box "┌─" (make-string (length str) 9472) "─┐" n "│ " (s str) " │" n "└─" (make-string (length str) 9472) "─┘" n) (abox "+-" (make-string (length str) 45) "-+" n "| " (s str) " |" n "+-" (make-string (length str) 45) "-+" n) (cut "--8<---------------cut here---------------start------------->8---" n r n "--8<---------------cut here---------------end--------------->8---" n) (rot13 (p "plain text" text) n "----" n (rot13 text)) (calc (p "taylor(sin(x),x=0,3)" formula) n "----" n (format "%s" (calc-eval formula))) (today (format-time-string "%Y-%m-%d"))) nil)
  completion-in-region(#<marker at 153 in aider.org> 158 ((caption "#+caption: ") (drawer ":" p ":" n r ":end:") (begin "#+begin_" (s name) n> r> n "#+end_" name) (quote "#+begin_quote" n> r> n "#+end_quote") (sidenote "#+begin_sidenote" n> r> n "#+end_sidenote") (marginnote "#+begin_marginnote" n> r> n "#+end_marginnote") (example "#+begin_example" n> r> n "#+end_example") (center "#+begin_center" n> r> n "#+end_center") (ascii "#+begin_export ascii" n> r> n "#+end_export") (html "#+begin_export html" n> r> n "#+end_export") (latex "#+begin_export latex" n> r> n "#+end_export") (comment "#+begin_comment" n> r> n "#+end_comment") (verse "#+begin_verse" n> r> n "#+end_verse") (src "#+begin_src " q n r n "#+end_src") (elisp "#+begin_src emacs-lisp " q n r n "#+end_src") (aider "#+begin_src aider " q n r n "#+end_src") (gnuplot "#+begin_src gnuplot :var data=" (p "table") " :file " (p "plot.png") n r n "#+end_src" :post (org-edit-src-code)) (elisp "#+begin_src emacs-lisp" n r n "#+end_src" :post (org-edit-src-code)) (inlsrc "src_" p "{" q "}") (title "#+title: " p n "#+author: Daniel Mendler" n "#+language: en") (lec "Lecture {{{n}}}: ") (struc "\n- *Readings:*") (box "┌─" (make-string (length str) 9472) "─┐" n "│ " (s str) " │" n "└─" (make-string (length str) 9472) "─┘" n) (abox "+-" (make-string (length str) 45) "-+" n "| " (s str) " |" n "+-" (make-string (length str) 45) "-+" n) (cut "--8<---------------cut here---------------start------------->8---" n r n "--8<---------------cut here---------------end--------------->8---" n) (rot13 (p "plain text" text) n "----" n (rot13 text)) (calc (p "taylor(sin(x),x=0,3)" formula) n "----" n (format "%s" (calc-eval formula))) (today (format-time-string "%Y-%m-%d"))) nil)
  completion-at-point()
  tempel--interactive(tempel-complete)
  tempel-complete(t)
  funcall-interactively(tempel-complete t)
  command-execute(tempel-complete record)
  execute-extended-command(nil "tempel-complete" nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions