|
From: | Jean Louis |
Subject: | Re: Passing a list to an interactive function |
Date: | Fri, 18 Dec 2020 14:56:08 +0300 |
User-agent: | Mutt/2.0 (3d08634) (2020-11-07) |
* pietru@caramail.com <pietru@caramail.com> [2020-12-18 14:38]: > I mean, how do I define an interactive function that takes a list as argument? I do it this way: (defun my-function (&optional list) (interactive) continue here... So that way I can run the function by using M-x or I can also run it by providing the list. If I do not do &optional function will require the list and normally I cannot run it with M-x interactively. Jean
[Prev in Thread] | Current Thread | [Next in Thread] |