Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 545188

Summary: app-misc/mc not using external editor
Product: Gentoo Linux Reporter: Mark I Manning IV <mark4th>
Component: Current packagesAssignee: Alex Alexander (RETIRED) <wired>
Status: RESOLVED NEEDINFO    
Severity: normal CC: desktop-misc, polynomial-c, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mark I Manning IV 2015-03-31 22:01:54 UTC
Configured mc to use an external editor, set the EDITOR environment variable, pressed F4 to edit a file and... was presented with the midnight commander internal editor.  

I verified that the new config changes had been saved by quitting out of mc and relaunching and looking at the config.  External editor is still selected but this setting is now ignored.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-04-01 06:28:52 UTC
You can get rid of mcedit by installing mc with the "edit" USE flag being disabled.
Would that be a feasible solution for you?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2015-04-01 07:37:41 UTC
(In reply to Mark I Manning IV from comment #0)
> Configured mc to use an external editor, set the EDITOR environment
> variable, pressed F4 to edit a file and... was presented with the midnight
> commander internal editor.  
> 
> I verified that the new config changes had been saved by quitting out of mc
> and relaunching and looking at the config.  External editor is still
> selected but this setting is now ignored.

I can't confirm the behaviour on my setup.

Please show your:
1. emerge --info app-misc/mc
2. echo $EDITOR
3. grep internal_edit ~/.config/mc/ini