Ticket #1651 (closed defect: fixed)

Opened 15 years ago

Last modified 14 years ago

user menu: filetype-specific items don't show in 'mc -e' standalone

Reported by: csigaa Owned by: andrew_b
Priority: minor Milestone: 4.7.5
Component: mc-core Version: master
Keywords: filename match user menu Cc:
Blocked By: Blocking:
Branch state: Votes for changeset: committed-master

Description

When called with 'mc -e' or mcedit, the standalone editor doesn't recognize (thus doesn't show the filetype-specific menu items for) the file types defined only by '+ f REGEX'.

For example:
--- entry begins ---
+ y Perl\ Program | f \.pl$
2 while ()

cat <<EOF > %b
%iwhile() {
%i}
EOF

--- entry ends ---

This shows up in standalone mode, because the type 'Perl\sProgram' is defined in $PREFIX/share/syntax/Syntax, so the file type is recognized correctly.

But:
--- entry begins ---
+ f \.c$ | f \.cc$
3 if ()

cat <<EOF > %b
%iif () {
%i}
EOF

--- entry ends ---
This doesn't, because mcedit somehow ignores the filename-based file type recognition.

Problem is present in 4.6 and 4.7pre also.
In 4.7, because the lack of $PREFIX/share/syntax/Syntax file, none of the filetype-specific menu items work in standalone editor mode.

Change History

comment:1 Changed 15 years ago by csigaa

  • Summary changed from user menu: filename-based matching doesn't work in 'mc -e' standalone to user menu: filetype-specific items don't show in 'mc -e' standalone

comment:2 Changed 15 years ago by csigaa

  • Type changed from enhancement to defect

comment:3 Changed 14 years ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b
  • severity changed from no branch to on review
  • Milestone changed from 4.7 to 4.7.5

Created 1651_editor_user_menu branch. Parent branch is master.
changeset:e62e04c66d4d2625aa7112f127da29e6c271520b

comment:4 Changed 14 years ago by angel_il

  • Votes for changeset set to angel_il

comment:5 Changed 14 years ago by slavazanko

  • Votes for changeset changed from angel_il to angel_il slavazanko
  • severity changed from on review to approved

comment:6 Changed 14 years ago by andrew_b

  • Status changed from accepted to testing
  • Component changed from mcedit to mc-core
  • Votes for changeset changed from angel_il slavazanko to committed-master
  • Resolution set to fixed
  • severity changed from approved to merged

comment:7 Changed 14 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.