help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining functions on the fly


From: Andreas Röhler
Subject: Re: Defining functions on the fly
Date: Mon, 15 Jun 2015 14:43:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


This seems to work, some function going to char 1:

(dolist (ele (list "a" "b"))
  ;; think some conditions here, which will select the final lambda
(fset (intern-soft (car (read-from-string ele))) #'(lambda ()(goto-char 1))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]