all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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; 33+ 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] 33+ messages in thread

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

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3677.1541718983.1284.help-gnu-emacs@gnu.org>
2018-11-12  5:39 ` Invoking a function from a list of functions Rusi
2018-11-12 15:19   ` [OFFTOPIC] " Stefan Monnier
     [not found]   ` <mailman.3921.1542036006.1284.help-gnu-emacs@gnu.org>
2018-11-16  2:48     ` Rusi
2018-11-16 16:40       ` James K. Lowden
2018-11-17 15:59         ` Rusi
2018-11-19 22:23           ` James K. Lowden
2018-11-19 23:11             ` Stefan Monnier
2018-11-20  6:15               ` Amin Bandali
2018-11-21 15:05                 ` Stefan Monnier
2018-11-23  3:41                   ` Amin Bandali
     [not found]               ` <mailman.4291.1542694542.1284.help-gnu-emacs@gnu.org>
2018-11-28 14:14                 ` Rusi
2018-12-11 18:48                   ` Amin Bandali
     [not found]             ` <mailman.4280.1542669123.1284.help-gnu-emacs@gnu.org>
2018-11-28 14:10               ` Rusi
2018-11-28 16:31                 ` Eli Zaretskii
2018-11-28 18:15                   ` Yuri Khan
2018-11-28 18:57                     ` Eli Zaretskii
2018-11-28 19:08                       ` Yuri Khan
     [not found]                       ` <mailman.4820.1543432126.1284.help-gnu-emacs@gnu.org>
2018-11-29  5:37                         ` Rusi
2018-11-16 16:40       ` James K. Lowden
2018-11-16 17:15         ` Drew Adams
2018-11-08 23:01 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.