elisp macro to write a function?
问题 I have written a few nearly identical functions, except for their names. For example: ; x is name, such as function/paragraph/line/etc. (defun my-x-function (interactive) (mark-x) (do-more-stuff) (modify-x)) Is there a way to automatically generate such functions? I have a feeling this is what macros do, but I am not sure how to use them. Any help, maybe including a small example would be great. Thanks! 回答1: Yep, that's exactly what macros do. Here's a straightforward macro that builds