ze
Loading...
Searching...
No Matches
Files | Functions
Collaboration diagram for Hooks:

Files

file  hooks.c
 Scheme hook invocation implementations.
 

Functions

void preDirOpenHook (void)
 Invoke the Scheme preDirOpenHook with the directory path.
 
void postDirOpenHook (int num_files)
 Invoke the Scheme postDirOpenHook with the file count.
 
void preFileOpenHook (void)
 Invoke the Scheme preFileOpenHook with the filename.
 
void postFileOpenHook (void)
 Invoke the Scheme postFileOpenHook with current buffer contents.
 
void editorPreSaveHook (void)
 Invoke the Scheme preSaveHook with current buffer contents.
 
void editorPostSaveHook (void)
 Invoke the Scheme postSaveHook with current buffer contents.
 

Detailed Description

Function Documentation

◆ editorPostSaveHook()

void editorPostSaveHook ( void  )

Invoke the Scheme postSaveHook with current buffer contents.

Called after saving the current buffer to disk.

Serializes the buffer and passes it to postSaveHook, displaying the returned message.

Postcondition
Status message is updated.
See also
editorRowsToString(), editorSave(), editorPreSaveHook()

◆ editorPreSaveHook()

void editorPreSaveHook ( void  )

Invoke the Scheme preSaveHook with current buffer contents.

Called before saving the current buffer to disk.

Serializes the buffer and passes it to preSaveHook, displaying the returned message.

Postcondition
Status message is updated.
See also
editorRowsToString(), editorSave(), editorPostSaveHook()

◆ postDirOpenHook()

void postDirOpenHook ( int  num_files)

Invoke the Scheme postDirOpenHook with the file count.

Called after reading a directory listing; provides file count.

Calls postDirOpenHook with the number of directory entries scanned and displays its returned message.

Parameters
[in]num_filesNumber of entries returned by scandir(). Must be >= 0.
Postcondition
Status message is updated.
See also
preDirOpenHook(), editorOpen()

◆ postFileOpenHook()

void postFileOpenHook ( void  )

Invoke the Scheme postFileOpenHook with current buffer contents.

Called after a file has been read into the buffer.

Serializes the buffer with editorRowsToString() and passes it to postFileOpenHook. The returned Scheme string is shown in the status bar.

Ownership: the temporary buffer from editorRowsToString() is freed in Guile after conversion; no NUL terminator is guaranteed—length is respected.

Postcondition
Status message is updated.
See also
preFileOpenHook(), editorRowsToString(), editorOpen()

◆ preDirOpenHook()

void preDirOpenHook ( void  )

Invoke the Scheme preDirOpenHook with the directory path.

Called before reading a directory listing into the buffer.

Calls the Guile function preDirOpenHook with E.filename as a Scheme string and displays its returned message in the status bar.

Postcondition
Status message is updated via editorSetStatusMessage().
See also
postDirOpenHook(), preFileOpenHook(), editorOpen()

◆ preFileOpenHook()

void preFileOpenHook ( void  )

Invoke the Scheme preFileOpenHook with the filename.

Called before opening a regular file.

Calls preFileOpenHook with E.filename and displays the returned message.

Postcondition
Status message is updated.
See also
postFileOpenHook(), editorOpen()