Mercurial > octave-nkf
view .dir-locals.el @ 17628:99ffa521ecec
Add possibility to edit the function related to the actual keyword in editor
* octave-qscintilla.cc(get_actual_word): new internal function;
(context_help_doc): uses new function get_actual_word;
(contextMenuEvent): new context menu for editing function of actual keyword
(context_edit): function for edit action in editor file menu;
(contextmenu_edit): new slot for context menu;
* octave-qscintilla.h: new functions context_edit, contextmenu_edit,
get_actual_word
* file-editor-tab.cc(context_edit): new slot for editor menu action
* file-editor-tab.h: new slot context_edit
* file-editor.cc(request_context_edit): new slot for file menu entry;
(construct): new entry in file menu for editing function of actual keyword;
(add_file_editor_tab): connect new signal fetab_context_edit to the new
slot context_edit in file_editor_tab;
(set_shortcuts): enable/disable new shortcut when editor focus changes
(check_actions): enable/disable new action depending on existing tabs
* file-editor.h: new signal fetab_context_edit, new slot request_context_edit,
new edit function action
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 11 Oct 2013 14:12:37 +0200 |
parents | 9ff04de067ce |
children |
line wrap: on
line source
((nil . ((c-file-style . "gnu") (indent-tabs-mode . nil) (fill-column . 72) (eval . (when (and (buffer-file-name) (string-match-p "\\.h\\'" (buffer-file-name)) (not (string-match-p "/gnulib/" (buffer-file-name)))) (c++-mode) (c-set-style "gnu"))))) (change-log-mode . ((indent-tabs-mode . t))) (makefile-mode . ((indent-tabs-mode . t))))