Should `flet` be replaced with `cl-flet` or `cl-letf` ?

后端 未结 4 1124
天命终不由人
天命终不由人 2021-01-07 21:20

Some elisp functions that I have installed generate warnings:

`flet\' is an obsolete macro (as of 24.3); use either `cl-flet\' or `cl-letf\'.
4条回答
  •  天命终不由人
    2021-01-07 22:02

    I've recently wrote a post on the subject. The gist of the post is that the best replacement for flet (if you need dynamic binding) is noflet. It's a third party library, but it's almost a drop-in replacement for flet (while adding some extra capabilities).

提交回复
热议问题