unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Invoking a function from a list of functions
@ 2018-11-08 23:01 Tim Johnson
  2018-11-09  1:25 ` Eric Abrahamsen
  2018-11-09  8:58 ` Andreas Röhler
  0 siblings, 2 replies; 14+ messages in thread
From: Tim Johnson @ 2018-11-08 23:01 UTC (permalink / raw)
  To: Emacs

Given a list of functions:
(setq funcs '(scroll-up-line scroll-down-line))

And assuming that these functions have a similar argument list, 
I can invoke a function as:

(funcall (nth 1 funcs))
;; or optionally 
(funcall (nth 1 funcs) 2)

That approach is sufficient for my needs at the moment, an example
of which might be to cycle through color themes invoked by my own
functions.

However, in the quest for futher edification I'd welcome URLs to
documentation or discussion, as well as any contributions other
emacsen might choose to make. Keywords also.

I had a heck of a time getting relevant responses from google. I
actually don't know what keywords to search with. 

thanks
GNU Emacs 26.1 GTK+ Version, Ubuntu 16.04

-- 
Tim Johnson
http://www.tj49.com



^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <mailman.3677.1541718983.1284.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2018-11-12  5:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-08 23:01 Invoking a function from a list of functions Tim Johnson
2018-11-09  1:25 ` Eric Abrahamsen
2018-11-09  6:03   ` Tim Johnson
2018-11-09 10:30     ` Marcin Borkowski
2018-11-09 11:52     ` Noam Postavsky
2018-11-09 13:12       ` Van L
2018-11-09 16:14       ` Tim Johnson
2018-11-09 14:16     ` Yuri Khan
2018-11-09 16:22       ` Tim Johnson
2018-11-09 16:37         ` Stefan Monnier
     [not found]   ` <mailman.3694.1541743398.1284.help-gnu-emacs@gnu.org>
2018-11-09  7:09     ` Ihor Radchenko
2018-11-09  8:58 ` Andreas Röhler
2018-11-09 16:24   ` Tim Johnson
     [not found] <mailman.3677.1541718983.1284.help-gnu-emacs@gnu.org>
2018-11-12  5:39 ` Rusi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).