Macros | Enumerations
buffer.h File Reference
#include "nvim/vim.h"
#include "nvim/window.h"
#include "nvim/pos.h"
#include "nvim/ex_cmds_defs.h"
#include "nvim/screen.h"
#include "nvim/func_attr.h"
#include "nvim/eval.h"
#include "nvim/macros.h"

Go to the source code of this file.

Macros

#define WITH_BUFFER(b, code)
 

Enumerations

enum  getf_values { GETF_SETMARK = 0x01, GETF_ALT = 0x02, GETF_SWITCH = 0x04 }
 
enum  getf_retvalues {
  GETFILE_ERROR = 1, GETFILE_NOT_WRITTEN = 2, GETFILE_SAME_FILE = 0, GETFILE_OPEN_OTHER = -1,
  GETFILE_UNUSED = 8
}
 
enum  bln_values { BLN_CURBUF = 1, BLN_LISTED = 2, BLN_DUMMY = 4, BLN_NOOPT = 16 }
 
enum  dobuf_action_values {
  DOBUF_GOTO = 0, DOBUF_SPLIT = 1, DOBUF_UNLOAD = 2, DOBUF_DEL = 3,
  DOBUF_WIPE = 4
}
 
enum  dobuf_start_values { DOBUF_CURRENT = 0, DOBUF_FIRST = 1, DOBUF_LAST = 2, DOBUF_MOD = 3 }
 
enum  bfa_values { BFA_DEL = 1, BFA_WIPE = 2, BFA_KEEP_UNDO = 4 }
 

Macro Definition Documentation

#define WITH_BUFFER (   b,
  code 
)
Value:
do { \
win_T *save_curwin = NULL; \
tabpage_T *save_curtab = NULL; \
bufref_T save_curbuf = { NULL, 0, 0 }; \
switch_to_win_for_buf(b, &save_curwin, &save_curtab, &save_curbuf); \
code; \
restore_win_for_buf(save_curwin, save_curtab, &save_curbuf); \
} while (0)
return NULL
Definition: eval.c:22198
struct tabpage_S tabpage_T
Definition: buffer_defs.h:830
struct window_S win_T
Definition: buffer_defs.h:96

Enumeration Type Documentation

enum bfa_values
Enumerator
BFA_DEL 
BFA_WIPE 
BFA_KEEP_UNDO 
enum bln_values
Enumerator
BLN_CURBUF 
BLN_LISTED 
BLN_DUMMY 
BLN_NOOPT 
Enumerator
DOBUF_GOTO 
DOBUF_SPLIT 
DOBUF_UNLOAD 
DOBUF_DEL 
DOBUF_WIPE 
Enumerator
DOBUF_CURRENT 
DOBUF_FIRST 
DOBUF_LAST 
DOBUF_MOD 
Enumerator
GETFILE_ERROR 
GETFILE_NOT_WRITTEN 
GETFILE_SAME_FILE 
GETFILE_OPEN_OTHER 
GETFILE_UNUSED 
Enumerator
GETF_SETMARK 
GETF_ALT 
GETF_SWITCH