Blender  V2.59
Classes | Defines | Typedefs | Enumerations | Functions | Variables
text_ops.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
#include <errno.h>
#include "MEM_guardedalloc.h"
#include "DNA_text_types.h"
#include "DNA_userdef_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "PIL_time.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_text.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_text.h"
#include "ED_curve.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "text_intern.h"

Go to the source code of this file.

Classes

struct  TextScroll
struct  SetSelection

Defines

#define TEXT_FIND   0
#define TEXT_REPLACE   1
#define TEXT_MARK_ALL   2

Typedefs

typedef struct TextScroll TextScroll
typedef struct SetSelection SetSelection

Enumerations

enum  { TO_SPACES, TO_TABS }
enum  { SCROLLHANDLE_BAR, SCROLLHANDLE_MIN_OUTSIDE, SCROLLHANDLE_MAX_OUTSIDE }
enum  { RESOLVE_IGNORE, RESOLVE_RELOAD, RESOLVE_SAVE, RESOLVE_MAKE_INTERNAL }

Functions

static int text_new_poll (bContext *UNUSED(C))
static int text_edit_poll (bContext *C)
static int text_space_edit_poll (bContext *C)
static int text_region_edit_poll (bContext *C)
void text_update_line_edited (TextLine *line)
void text_update_edited (Text *text)
static int new_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_new (wmOperatorType *ot)
static void open_init (bContext *C, wmOperator *op)
static int open_cancel (bContext *UNUSED(C), wmOperator *op)
static int open_exec (bContext *C, wmOperator *op)
static int open_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_open (wmOperatorType *ot)
static int reload_exec (bContext *C, wmOperator *op)
void TEXT_OT_reload (wmOperatorType *ot)
static int text_unlink_poll (bContext *C)
static int unlink_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_unlink (wmOperatorType *ot)
static int make_internal_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_make_internal (wmOperatorType *ot)
static int save_poll (bContext *C)
static void txt_write_file (Text *text, ReportList *reports)
static int save_exec (bContext *C, wmOperator *op)
void TEXT_OT_save (wmOperatorType *ot)
static int save_as_exec (bContext *C, wmOperator *op)
static int save_as_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_save_as (wmOperatorType *ot)
static int run_script_poll (bContext *C)
static int run_script (bContext *C, ReportList *reports)
static int run_script_exec (bContext *C, wmOperator *op)
void TEXT_OT_run_script (wmOperatorType *ot)
static int refresh_pyconstraints_exec (bContext *UNUSED(C), wmOperator *UNUSED(op))
void TEXT_OT_refresh_pyconstraints (wmOperatorType *ot)
static char * txt_copy_selected (Text *text)
static int paste_exec (bContext *C, wmOperator *op)
void TEXT_OT_paste (wmOperatorType *ot)
static void txt_copy_clipboard (Text *text)
static int copy_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_copy (wmOperatorType *ot)
static int cut_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_cut (wmOperatorType *ot)
static int indent_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_indent (wmOperatorType *ot)
static int unindent_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_unindent (wmOperatorType *ot)
static int line_break_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_line_break (wmOperatorType *ot)
static int comment_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_comment (wmOperatorType *ot)
static int uncomment_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_uncomment (wmOperatorType *ot)
static int convert_whitespace_exec (bContext *C, wmOperator *op)
void TEXT_OT_convert_whitespace (wmOperatorType *ot)
static int select_all_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_all (wmOperatorType *ot)
static int select_line_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_line (wmOperatorType *ot)
static int select_word_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_word (wmOperatorType *ot)
static int previous_marker_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_previous_marker (wmOperatorType *ot)
static int next_marker_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_next_marker (wmOperatorType *ot)
static int clear_all_markers_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_markers_clear (wmOperatorType *ot)
static int text_get_cursor_rel (SpaceText *st, ARegion *ar, TextLine *linein, int rell, int relc)
static int cursor_skip_find_line (SpaceText *st, ARegion *ar, int lines, TextLine **linep, int *charp, int *rell, int *relc)
static void wrap_move_bol (SpaceText *st, ARegion *ar, short sel)
static void wrap_move_eol (SpaceText *st, ARegion *ar, short sel)
static void wrap_move_up (SpaceText *st, ARegion *ar, short sel)
static void wrap_move_down (SpaceText *st, ARegion *ar, short sel)
static void cursor_skip (SpaceText *st, ARegion *ar, Text *text, int lines, int sel)
static int move_cursor (bContext *C, int type, int select)
static int move_exec (bContext *C, wmOperator *op)
void TEXT_OT_move (wmOperatorType *ot)
static int move_select_exec (bContext *C, wmOperator *op)
void TEXT_OT_move_select (wmOperatorType *ot)
static int jump_exec (bContext *C, wmOperator *op)
static int jump_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_jump (wmOperatorType *ot)
static int delete_exec (bContext *C, wmOperator *op)
void TEXT_OT_delete (wmOperatorType *ot)
static int toggle_overwrite_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_overwrite_toggle (wmOperatorType *ot)
static void screen_skip (SpaceText *st, ARegion *ar, int lines)
static int text_scroll_poll (bContext *C)
static int scroll_exec (bContext *C, wmOperator *op)
static void scroll_apply (bContext *C, wmOperator *op, wmEvent *event)
static void scroll_exit (bContext *C, wmOperator *op)
static int scroll_modal (bContext *C, wmOperator *op, wmEvent *event)
static int scroll_cancel (bContext *C, wmOperator *op)
static int scroll_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_scroll (wmOperatorType *ot)
static int text_region_scroll_poll (bContext *C)
static int scroll_bar_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_scroll_bar (wmOperatorType *ot)
static void set_cursor_to_pos (SpaceText *st, ARegion *ar, int x, int y, int sel)
static void set_cursor_apply (bContext *C, wmOperator *op, wmEvent *event)
static void set_cursor_exit (bContext *C, wmOperator *op)
static int set_selection_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int set_selection_modal (bContext *C, wmOperator *op, wmEvent *event)
static int set_selection_cancel (bContext *C, wmOperator *op)
void TEXT_OT_selection_set (wmOperatorType *ot)
static int set_cursor_exec (bContext *C, wmOperator *op)
static int set_cursor_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_cursor_set (wmOperatorType *ot)
static int line_number_invoke (bContext *C, wmOperator *UNUSED(op), wmEvent *event)
void TEXT_OT_line_number (wmOperatorType *ot)
static int insert_exec (bContext *C, wmOperator *op)
static int insert_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_insert (wmOperatorType *ot)
static int find_and_replace (bContext *C, wmOperator *op, short mode)
static int find_exec (bContext *C, wmOperator *op)
void TEXT_OT_find (wmOperatorType *ot)
static int replace_exec (bContext *C, wmOperator *op)
void TEXT_OT_replace (wmOperatorType *ot)
static int mark_all_exec (bContext *C, wmOperator *op)
void TEXT_OT_mark_all (wmOperatorType *ot)
static int find_set_selected_exec (bContext *C, wmOperator *op)
void TEXT_OT_find_set_selected (wmOperatorType *ot)
static int replace_set_selected_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_replace_set_selected (wmOperatorType *ot)
int text_file_modified (Text *text)
static void text_ignore_modified (Text *text)
static int resolve_conflict_exec (bContext *C, wmOperator *op)
static int resolve_conflict_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_resolve_conflict (wmOperatorType *ot)
static int to_3d_object_exec (bContext *C, wmOperator *op)
void TEXT_OT_to_3d_object (wmOperatorType *ot)
void ED_text_undo_step (bContext *C, int step)

Variables

static EnumPropertyItem whitespace_type_items []
static EnumPropertyItem move_type_items []
static EnumPropertyItem delete_type_items []
static EnumPropertyItem resolution_items []

Detailed Description

Definition in file text_ops.c.


Define Documentation

#define TEXT_FIND   0

Definition at line 2828 of file text_ops.c.

Referenced by find_and_replace(), find_exec(), and find_set_selected_exec().

#define TEXT_MARK_ALL   2

Definition at line 2830 of file text_ops.c.

Referenced by find_and_replace(), and mark_all_exec().

#define TEXT_REPLACE   1

Definition at line 2829 of file text_ops.c.

Referenced by find_and_replace(), and replace_exec().


Typedef Documentation

typedef struct SetSelection SetSelection
typedef struct TextScroll TextScroll

Enumeration Type Documentation

anonymous enum
Enumerator:
TO_SPACES 
TO_TABS 

Definition at line 1078 of file text_ops.c.

anonymous enum
Enumerator:
SCROLLHANDLE_BAR 
SCROLLHANDLE_MIN_OUTSIDE 
SCROLLHANDLE_MAX_OUTSIDE 

Definition at line 2073 of file text_ops.c.

anonymous enum
Enumerator:
RESOLVE_IGNORE 
RESOLVE_RELOAD 
RESOLVE_SAVE 
RESOLVE_MAKE_INTERNAL 

Definition at line 3037 of file text_ops.c.


Function Documentation

static int clear_all_markers_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int comment_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int convert_whitespace_exec ( bContext C,
wmOperator op 
) [static]
static int copy_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 838 of file text_ops.c.

References CTX_data_edit_text(), OPERATOR_FINISHED, and txt_copy_clipboard().

Referenced by TEXT_OT_copy().

static void cursor_skip ( SpaceText st,
ARegion ar,
Text text,
int  lines,
int  sel 
) [static]
static int cursor_skip_find_line ( SpaceText st,
ARegion ar,
int  lines,
TextLine **  linep,
int *  charp,
int *  rell,
int *  relc 
) [static]
static int cut_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int delete_exec ( bContext C,
wmOperator op 
) [static]
void ED_text_undo_step ( bContext C,
int  step 
)
static int find_and_replace ( bContext C,
wmOperator op,
short  mode 
) [static]
static int find_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 2923 of file text_ops.c.

References find_and_replace(), and TEXT_FIND.

Referenced by TEXT_OT_find().

static int find_set_selected_exec ( bContext C,
wmOperator op 
) [static]
static int indent_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int insert_exec ( bContext C,
wmOperator op 
) [static]
static int insert_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int jump_exec ( bContext C,
wmOperator op 
) [static]
static int jump_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]

Definition at line 1957 of file text_ops.c.

References WM_operator_props_dialog_popup().

Referenced by TEXT_OT_jump().

static int line_break_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int line_number_invoke ( bContext C,
wmOperator UNUSEDop,
wmEvent event 
) [static]
static int make_internal_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int mark_all_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 2961 of file text_ops.c.

References find_and_replace(), and TEXT_MARK_ALL.

Referenced by TEXT_OT_mark_all().

static int move_cursor ( bContext C,
int  type,
int  select 
) [static]
static int move_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 1890 of file text_ops.c.

References move_cursor(), wmOperator::ptr, and RNA_enum_get().

Referenced by TEXT_OT_move().

static int move_select_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 1914 of file text_ops.c.

References move_cursor(), wmOperator::ptr, and RNA_enum_get().

Referenced by TEXT_OT_move_select().

static int new_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int next_marker_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int open_cancel ( bContext UNUSEDC,
wmOperator op 
) [static]

Definition at line 217 of file text_ops.c.

References wmOperator::customdata, MEM_freeN(), and OPERATOR_CANCELLED.

Referenced by TEXT_OT_open().

static int open_exec ( bContext C,
wmOperator op 
) [static]
static void open_init ( bContext C,
wmOperator op 
) [static]
static int open_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int paste_exec ( bContext C,
wmOperator op 
) [static]
static int previous_marker_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int refresh_pyconstraints_exec ( bContext UNUSEDC,
wmOperator UNUSEDop 
) [static]
static int reload_exec ( bContext C,
wmOperator op 
) [static]
static int replace_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 2942 of file text_ops.c.

References find_and_replace(), and TEXT_REPLACE.

Referenced by TEXT_OT_replace().

static int replace_set_selected_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int resolve_conflict_exec ( bContext C,
wmOperator op 
) [static]
static int resolve_conflict_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int run_script ( bContext C,
ReportList reports 
) [static]
static int run_script_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 612 of file text_ops.c.

References BKE_report(), OPERATOR_CANCELLED, wmOperator::reports, RPT_ERROR, and run_script().

Referenced by TEXT_OT_run_script().

static int run_script_poll ( bContext C) [static]

Definition at line 573 of file text_ops.c.

References CTX_data_edit_text(), and NULL.

Referenced by TEXT_OT_run_script().

static int save_as_exec ( bContext C,
wmOperator op 
) [static]
static int save_as_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int save_exec ( bContext C,
wmOperator op 
) [static]
static int save_poll ( bContext C) [static]
static void screen_skip ( SpaceText st,
ARegion ar,
int  lines 
) [static]
static void scroll_apply ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int scroll_bar_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int scroll_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 2202 of file text_ops.c.

References OPERATOR_CANCELLED, and scroll_exit().

Referenced by TEXT_OT_scroll(), and TEXT_OT_scroll_bar().

static int scroll_exec ( bContext C,
wmOperator op 
) [static]
static void scroll_exit ( bContext C,
wmOperator op 
) [static]
static int scroll_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int scroll_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int select_all_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int select_line_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int select_word_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void set_cursor_apply ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int set_cursor_exec ( bContext C,
wmOperator op 
) [static]
static void set_cursor_exit ( bContext C,
wmOperator op 
) [static]
static int set_cursor_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static void set_cursor_to_pos ( SpaceText st,
ARegion ar,
int  x,
int  y,
int  sel 
) [static]
static int set_selection_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 2618 of file text_ops.c.

References OPERATOR_FINISHED, and set_cursor_exit().

Referenced by TEXT_OT_selection_set().

static int set_selection_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int set_selection_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_edit_poll ( bContext C) [static]
int text_file_modified ( Text text)
static int text_get_cursor_rel ( SpaceText st,
ARegion ar,
TextLine linein,
int  rell,
int  relc 
) [static]

Definition at line 1414 of file text_ops.c.

References i, TextLine::len, TextLine::line, max, SpaceText::tabnumber, and wrap_width().

Referenced by cursor_skip(), wrap_move_down(), and wrap_move_up().

static void text_ignore_modified ( Text text) [static]
static int text_new_poll ( bContext UNUSEDC) [static]

Definition at line 78 of file text_ops.c.

Referenced by TEXT_OT_new(), and TEXT_OT_open().

void TEXT_OT_comment ( wmOperatorType ot)
void TEXT_OT_convert_whitespace ( wmOperatorType ot)
void TEXT_OT_copy ( wmOperatorType ot)
void TEXT_OT_cursor_set ( wmOperatorType ot)
void TEXT_OT_cut ( wmOperatorType ot)
void TEXT_OT_delete ( wmOperatorType ot)
void TEXT_OT_find ( wmOperatorType ot)
void TEXT_OT_find_set_selected ( wmOperatorType ot)
void TEXT_OT_indent ( wmOperatorType ot)
void TEXT_OT_insert ( wmOperatorType ot)
void TEXT_OT_jump ( wmOperatorType ot)
void TEXT_OT_line_break ( wmOperatorType ot)
void TEXT_OT_line_number ( wmOperatorType ot)
void TEXT_OT_make_internal ( wmOperatorType ot)
void TEXT_OT_mark_all ( wmOperatorType ot)
void TEXT_OT_markers_clear ( wmOperatorType ot)
void TEXT_OT_move ( wmOperatorType ot)
void TEXT_OT_move_select ( wmOperatorType ot)
void TEXT_OT_new ( wmOperatorType ot)
void TEXT_OT_next_marker ( wmOperatorType ot)
void TEXT_OT_open ( wmOperatorType ot)
void TEXT_OT_overwrite_toggle ( wmOperatorType ot)
void TEXT_OT_paste ( wmOperatorType ot)
void TEXT_OT_previous_marker ( wmOperatorType ot)
void TEXT_OT_refresh_pyconstraints ( wmOperatorType ot)
void TEXT_OT_reload ( wmOperatorType ot)
void TEXT_OT_replace ( wmOperatorType ot)
void TEXT_OT_replace_set_selected ( wmOperatorType ot)
void TEXT_OT_resolve_conflict ( wmOperatorType ot)
void TEXT_OT_run_script ( wmOperatorType ot)
void TEXT_OT_save ( wmOperatorType ot)
void TEXT_OT_save_as ( wmOperatorType ot)
void TEXT_OT_scroll ( wmOperatorType ot)
void TEXT_OT_scroll_bar ( wmOperatorType ot)
void TEXT_OT_select_all ( wmOperatorType ot)
void TEXT_OT_select_line ( wmOperatorType ot)
void TEXT_OT_select_word ( wmOperatorType ot)
void TEXT_OT_selection_set ( wmOperatorType ot)
void TEXT_OT_to_3d_object ( wmOperatorType ot)
void TEXT_OT_uncomment ( wmOperatorType ot)
void TEXT_OT_unindent ( wmOperatorType ot)
void TEXT_OT_unlink ( wmOperatorType ot)
static int text_region_edit_poll ( bContext C) [static]
static int text_region_scroll_poll ( bContext C) [static]
static int text_scroll_poll ( bContext C) [static]

Definition at line 2089 of file text_ops.c.

References CTX_data_edit_text(), and NULL.

Referenced by TEXT_OT_scroll().

static int text_space_edit_poll ( bContext C) [static]
static int text_unlink_poll ( bContext C) [static]

Definition at line 351 of file text_ops.c.

References CTX_data_edit_text(), and NULL.

Referenced by TEXT_OT_unlink().

void text_update_edited ( Text text)

Definition at line 148 of file text_ops.c.

References ListBase::first, Text::lines, TextLine::next, and text_update_line_edited().

void text_update_line_edited ( TextLine line)
static int to_3d_object_exec ( bContext C,
wmOperator op 
) [static]
static int toggle_overwrite_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void txt_copy_clipboard ( Text text) [static]

Definition at line 826 of file text_ops.c.

References MEM_freeN(), txt_copy_selected(), and WM_clipboard_text_set().

Referenced by copy_exec(), and cut_exec().

static char* txt_copy_selected ( Text text) [static]
static void txt_write_file ( Text text,
ReportList reports 
) [static]
static int uncomment_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int unindent_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int unlink_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void wrap_move_bol ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void wrap_move_down ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void wrap_move_eol ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void wrap_move_up ( SpaceText st,
ARegion ar,
short  sel 
) [static]

Variable Documentation

Initial value:
 {
        {DEL_NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
        {DEL_PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
        {DEL_NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
        {DEL_PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
        {0, NULL, 0, NULL, NULL}}

Definition at line 1981 of file text_ops.c.

Initial value:
 {
        {LINE_BEGIN, "LINE_BEGIN", 0, "Line Begin", ""},
        {LINE_END, "LINE_END", 0, "Line End", ""},
        {FILE_TOP, "FILE_TOP", 0, "File Top", ""},
        {FILE_BOTTOM, "FILE_BOTTOM", 0, "File Bottom", ""},
        {PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
        {NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
        {PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
        {NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
        {PREV_LINE, "PREVIOUS_LINE", 0, "Previous Line", ""},
        {NEXT_LINE, "NEXT_LINE", 0, "Next Line", ""},
        {PREV_PAGE, "PREVIOUS_PAGE", 0, "Previous Page", ""},
        {NEXT_PAGE, "NEXT_PAGE", 0, "Next Page", ""},
        {0, NULL, 0, NULL, NULL}}

Definition at line 1398 of file text_ops.c.

Initial value:
 {
        {RESOLVE_IGNORE, "IGNORE", 0, "Ignore", ""},
        {RESOLVE_RELOAD, "RELOAD", 0, "Reload", ""},
        {RESOLVE_SAVE, "SAVE", 0, "Save", ""},
        {RESOLVE_MAKE_INTERNAL, "MAKE_INTERNAL", 0, "Make Internal", ""},
        {0, NULL, 0, NULL, NULL}}

Definition at line 3038 of file text_ops.c.

Initial value:
 {
        {TO_SPACES, "SPACES", 0, "To Spaces", NULL},
        {TO_TABS, "TABS", 0, "To Tabs", NULL},
        {0, NULL, 0, NULL, NULL}}

Definition at line 1079 of file text_ops.c.