function - Emacs: how hooks work? -


I went through a different tutorial and manual, but still can not put things together.

As I understand, when I have to add a new function to a function, while an old functional is still saved, I call a code by calling add-hook Adding The function is added at the beginning of the hook list (if necessary) as long as the optional argument APPEND is non-zero then the manual on add-hook :

Entry

Then the hook is just a list of a function. But what does this list look like? Works? From my small research I found that in addition to car and cdr , there is also an invisible unlimited slot for one function pointer (one might not index it, it does not matter). So how do I manually create a list of functions and execute it? Probably with the add-to-list function, but whatever I tried, it triggers errors in the manual too:

with setq Like any other variable variable, you can set a hook variable,

Here's something wrong, because an indicator function does not get copied with the setq Ie:

 (Onemorefunc) , debugger trigger Does,  setq  Only the value of the anonymous element rareens in which the pointer is stored. 

To call a function, which is in a variable, you Funcall or Apply :

  (Freescale onMorefunk) (Apply Onomorphon) ())  

when Imix is ​​processing a hook variable, it iterates through the list:

  (hook blah-hook) () (hook hook)) (Funcal (car) Hook))  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -