Re: change default configuration

2018-08-02 Thread Oswald Buddenhagen
On Fri, Jul 27, 2018 at 10:29:28PM +0200, Yury V. Zaytsev wrote:
> I fought against it for quite some time, but, in the end, this was not
> a fight that I could win. Debian Policy says it should be this way,
> thus so it is, and so it will be :-/
> 
fwiw, this refers to
https://www.debian.org/doc/debian-policy/ch-customized-programs.html#editors-and-pagers
and the only trace of a "fight" i found quickly was
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557126 which is
somewhat unspectacular. i also found
https://bugs.launchpad.net/ubuntu/+source/mc/+bug/263442 showing that
ubuntu was more reasonable about it.

anyway, i call bullshit on debian's decision. mcedit is built into mc,
and it's an integral part of the mc experience. while mc offers an
"escape route" (which it totally wouldn't have to, btw, and then what,
debian?), it's absolutely obvious that it should prefer its own solution
by default. the chosen interpretation of the policy would also imply
that the libreoffice shell must start calligra words just because it's
the preferred word processor in the desktop's mime type associations.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: change default configuration

2018-07-27 Thread Yury V. Zaytsev
I fought against it for quite some time, but, in the end, this was not a fight 
that I could win. Debian Policy says it should be this way, thus so it is, and 
so it will be :-/

Sent from my iPad

> On 27. Jul 2018, at 21:06, Felix Miata via mc-devel  
> wrote:
> 
> Egmont Koblinger composed on 2018-07-27 20:43 (UTC+0200):
> 
>> Oswald Buddenhagen wrote:
> 
>>> fwiw, i always found that default setting rather surprising and
>>> counter-productive, too. the vim/emacs/etc. hardliners will find the way
>>> to launch their personal deity, err, preferred editor soon enough, while
>>> average joe (in as far as he uses mc at all) won't appreciate being
>>> dropped into vi by default ("how do i quit that crap?!" was also my
>>> first experience).
> 
> +++
> 
>> I fully agree, and recommend to change the default to mcedit.
> 
> AFAICT, external is a misfeature of .deb mc packages, one of the most annoying
> things about using Knoppix (pause after run off in mc being the other). Fedora
> and openSUSE rpms AFAICR are always mcedit.
> -- 
> "Wisdom is supreme; therefore get wisdom. Whatever else you
> get, get wisdom." Proverbs 4:7 (New Living Translation)
> 
> Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
> 
> Felix Miata  ***  http://fm.no-ip.com/
> ___
> mc-devel mailing list
> https://mail.gnome.org/mailman/listinfo/mc-devel

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: change default configuration

2018-07-27 Thread Felix Miata via mc-devel
Egmont Koblinger composed on 2018-07-27 20:43 (UTC+0200):

> Oswald Buddenhagen wrote:

>> fwiw, i always found that default setting rather surprising and
>> counter-productive, too. the vim/emacs/etc. hardliners will find the way
>> to launch their personal deity, err, preferred editor soon enough, while
>> average joe (in as far as he uses mc at all) won't appreciate being
>> dropped into vi by default ("how do i quit that crap?!" was also my
>> first experience).

+++

> I fully agree, and recommend to change the default to mcedit.

AFAICT, external is a misfeature of .deb mc packages, one of the most annoying
things about using Knoppix (pause after run off in mc being the other). Fedora
and openSUSE rpms AFAICR are always mcedit.
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: change default configuration

2018-07-27 Thread Egmont Koblinger via mc-devel
On Fri, Jul 27, 2018 at 7:28 PM, Oswald Buddenhagen <
oswald.buddenha...@gmx.de> wrote:

>
> fwiw, i always found that default setting rather surprising and
> counter-productive, too. the vim/emacs/etc. hardliners will find the way
> to launch their personal deity, err, preferred editor soon enough, while
> average joe (in as far as he uses mc at all) won't appreciate being
> dropped into vi by default ("how do i quit that crap?!" was also my
> first experience).
>

I fully agree, and recommend to change the default to mcedit.

cheers,
egmont
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: change default configuration

2018-07-27 Thread Oswald Buddenhagen
On Fri, Jul 27, 2018 at 05:01:17PM +0300, Sergey Naumov via mc-devel wrote:
>I'm curious whether there is a way to change default configuration
>that is generated when user invokes mc for the first time?
>
according to the manual's FILES section, you can create
$prefix/share/mc/mc.ini.

fwiw, i always found that default setting rather surprising and
counter-productive, too. the vim/emacs/etc. hardliners will find the way
to launch their personal deity, err, preferred editor soon enough, while
average joe (in as far as he uses mc at all) won't appreciate being
dropped into vi by default ("how do i quit that crap?!" was also my
first experience).
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: change default configuration

2018-07-27 Thread Andrew Borodin
On Fri, 27 Jul 2018 17:01:17 +0300 Sergey Naumov via mc-devel wrote:
> I'm curious whether there is a way to change default configuration that is
> generated when user invokes mc for the first time?
> 
> For example, I want "use_internal_edit" to be true by default instead of
> false for any new user.

In vanilla mc the initial value of use_internal_edit is true. Some distros
(Debian and some others) change this to false.

> If there is a way to do it, then is it possible to just use lines that I
> want to change, not the whole configuration, say
> 
> [Midnight-Commander]
> use_internal_edit=true

Before first run, ~/.config/mc/ini doesn't exist.
If ~/.config/mc/ini doesn't exist, /etc/mc/mc.ini is used.
If /etc/mc/mc.ini doesn't exist, /usr/share/mc/mc.ini is used.
You can create one of these files with required default settings set.

Unfortunately, there is no info about /etc/mc/mc.ini in the man page.
I'll fix that at this weekend.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel