Class: Textbringer::BacktraceMode
- Defined in:
- lib/textbringer/modes/backtrace_mode.rb
Constant Summary collapse
Constants inherited from Mode
Constants included from Commands
Commands::CLIPBOARD_AVAILABLE, Commands::CTAGS, Commands::HELP_RING, Commands::ISEARCH_MODE_MAP, Commands::ISEARCH_STATUS, Commands::KEYBOARD_MACROS, Commands::REGISTERS, Commands::RE_SEARCH_STATUS, Commands::UNIVERSAL_ARGUMENT_MAP
Constants included from Utils
Utils::COMPLETION, Utils::HOOKS, Utils::Y_OR_N_MAP
Instance Attribute Summary
Attributes inherited from Mode
Instance Method Summary collapse
-
#initialize(buffer) ⇒ BacktraceMode
constructor
A new instance of BacktraceMode.
- #jump_to_source_location ⇒ Object
Methods inherited from Mode
define_generic_command, define_local_command, define_syntax, inherited, list, #name, #syntax_table
Methods included from Commands
[], #command_help, command_table, #current_prefix_arg, define_command, #execute_keyboard_macro, #get_tags, #isearch_done, #isearch_mode, #isearch_pre_command_hook, #isearch_prompt, #isearch_repeat, #isearch_repeat_backward, #isearch_repeat_forward, #isearch_search, list, #match_beginning, #match_end, #match_string, #number_prefix_arg, #prefix_numeric_value, #read_keyboard_macro, #read_register, #replace_match, undefine_command, #universal_argument_mode
Methods included from Utils
add_hook, background, complete_for_minibuffer, foreground, foreground!, message, read_buffer, read_char, read_command_name, read_encoding, read_event, read_file_name, read_from_minibuffer, read_key_sequence, read_single_char, received_keyboard_quit?, remove_hook, ruby_install_name, run_hooks, self_insert_and_exit_minibuffer, set_transient_map, show_exception, sit_for, sleep_for, y_or_n?, yes_or_no?
Constructor Details
#initialize(buffer) ⇒ BacktraceMode
Returns a new instance of BacktraceMode.
10 11 12 13 |
# File 'lib/textbringer/modes/backtrace_mode.rb', line 10 def initialize(buffer) super(buffer) buffer.keymap = BACKTRACE_MODE_MAP end |
Instance Method Details
#jump_to_source_location ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/textbringer/modes/backtrace_mode.rb', line 15 def jump_to_source_location file_name, line_number, column_number = get_source_location if file_name find_file(file_name) goto_line(line_number) forward_char(column_number - 1) end end |