Resolving symlinked dirs when execing command

2007-09-28 Thread Denys Vlasenko
Hi Pavel,

[I hope to find time and test release candidate this weekend]

One thing which may be simple to fix:

On my machine I have:

$ ls -l /software
lrwxrwxrwx1 root root   14 Jun 26 12:23 /software -> 
/auto/software

If I cd into /software while I am in mc, and then
I run any command, it is run in *resolved dir*:

$ pwd
/auto/software

It differs from what happens under e.g. shell:

sh-3.1$ cd /software
sh-3.1$ pwd
/software

Why mc resolves dir and cd'es into it before it forks a child?
--
vda
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: GNU Midnight Commander 4.6.2-pre1

2007-09-28 Thread Pavel Tsekov
Hello,

 Original-Nachricht 
> Datum: Fri, 28 Sep 2007 22:51:05 +0200
> Von: Oswald Buddenhagen
> Betreff: Re: GNU Midnight Commander 4.6.2-pre1

> On Thu, Sep 27, 2007 at 11:01:27PM -0500, [EMAIL PROTECTED]
> wrote:
> > Notice the <--> things in what I just copied? 
> > 
> > I can kindof see why this was introduced. Presumably, it is an
> > indication that the TAB key has been used while the file from which I
> > copied was being written.
> >
> yes
> 
> > But I am not sure if this is a desirable feature, or not.
> >
> it is
> 
> > I can easily think that, if I want to copy a block of C code from one
> > file to another using the mouse, I would feel quite frustrated if this
> > is what actually happens with every line where the tab key got used.
> > 
> just mark the text within mcedit before marking it with the mouse.
> 
> but yes, this needs a fix. ctrl-w was supposed to toggle this
> *temporarily*, just like ctrl-s toggles syntax highlighting (not
> temporarily, which is a bug, imo). more on this can be found in the
> respective patch tracker entry.

I'll fix these... I just need some time. I am trying to extract and describe 
all those changes that happened between 4.6.1 and the current cvs version. I am 
also trying to fix the copyright notices in all files. You can open an bug 
report in the tracker if you want...

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: GNU Midnight Commander 4.6.2-pre1

2007-09-28 Thread Oswald Buddenhagen
On Thu, Sep 27, 2007 at 11:01:27PM -0500, [EMAIL PROTECTED] wrote:
> Notice the <--> things in what I just copied? 
> 
> I can kindof see why this was introduced. Presumably, it is an
> indication that the TAB key has been used while the file from which I
> copied was being written.
>
yes

> But I am not sure if this is a desirable feature, or not.
>
it is

> I can easily think that, if I want to copy a block of C code from one
> file to another using the mouse, I would feel quite frustrated if this
> is what actually happens with every line where the tab key got used.
> 
just mark the text within mcedit before marking it with the mouse.

but yes, this needs a fix. ctrl-w was supposed to toggle this
*temporarily*, just like ctrl-s toggles syntax highlighting (not
temporarily, which is a bug, imo). more on this can be found in the
respective patch tracker entry.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: GNU Midnight Commander 4.6.2-pre1

2007-09-28 Thread kilgota

Pavel,

I have tested this release and it does seem to remedy the search bug in 
the internal editor. Thanks.

I do have one other question, though. You noticed, probably, that I tried 
just now to answer someone's question about how to use the extension file 
in MC. I hope I answered his question, but here is one of my own, given 
rise to by what I just sent to the other gentleman.

To write my reply to him I mouse-copied something from another window. 
Here is the actual result of the mouse-copying, which I edited afterward 
to make it look decent.

include/image
#<->Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
<-->Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (/usr/bin/display 
%f &);
#<->Open=display %f.
<-->View=%view{ascii} identify %f
<-->#View=%view{ascii} asciiview %f

Notice the <--> things in what I just copied? Well, I edited them out 
in the other letter, just now.

I can kindof see why this was introduced. Presumably, it is an indication 
that the TAB key has been used while the file from which I copied was 
being written. But I am not sure if this is a desirable feature, or not. I 
can easily think that, if I want to copy a block of C code from one file 
to another using the mouse, I would feel quite frustrated if this is what 
actually happens with every line where the tab key got used.

Another example follows, an excerpt from 
libgphoto2/camlibs/digigr8/library.c opened with F3 (view)

 {"Vivitar Vivicam35",   GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 
0x905c},
 {"Praktica Slimpix",GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 
0x905c},
 {"ZINA Mini Digital Keychain Camera", 
GP_DRIVER_STATUS_EXPERIMENTAL,
 0x2770, 
0x905c},

 {"Pixie Princess Jelly-Soft",GP_DRIVER_STATUS_EXPERIMENTAL,
 0x2770, 
0x905c},
 {"Disney pix micro",GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 
0x9050},
 {"Suprema Digital Keychain Camera", 
GP_DRIVER_STATUS_EXPERIMENTAL,
 0x2770, 
0x913d},

OK, I was viewing the file, not editing it, so it seems that all worked as 
it should. Now I open the same file with F4 and copy approximately the 
same lines...

<-->{"Nexxtech Mini Digital Camera", GP_DRIVER_STATUS_EXPERIMENTAL, 
0x2770,.
<--><--><--><--><--><--><--><--><-->0x905c},
 {"Vivitar Vivicam35",   GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 
0x905c},
 {"Praktica Slimpix",GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 
0x905c},
 {"ZINA Mini Digital Keychain Camera", 
GP_DRIVER_STATUS_EXPERIMENTAL,.
 <--><--><--><--><--><--><-->0x2770, 
0x905c},
 {"Pixie Princess Jelly-Soft",GP_DRIVER_STATUS_EXPERIMENTAL,.
 <--><--><--><--><--><--><-->0x2770, 
0x905c},
 {"Disney pix micro",GP_DRIVER_STATUS_EXPERIMENTAL, 0x2770, 
0x9050},.
 {"Suprema Digital Keychain Camera", 
GP_DRIVER_STATUS_EXPERIMENTAL,.
 <--><--><--><--><--><--><--><-->0x2770, 
0x913d},
<-->{NULL,0,0,0}

You see what I mean? Ouch. If this were a real piece of C code I would 
really be having fun now, wouldn't I?

I guess there are times when it might be nice to have this as a feature. I 
can not think of any, but I am sure that somebody thought it is a good 
idea. So it would be really nice if there is a way to turn this on or off 
at will. Or, maybe, it was not such a good idea in the first place. It 
must be in some syntax file, but which and where?

Incidentally, I must also say that I am not sure where this all came from. 
I was previously using the standard Slack 12.0 package called

mc-4.6.1_20070309-i486-2.tgz

which had the search bug in it.

Another place I saw a dramatic difference was in looking at a Makefile. 
One used to see there a bar of red if a line started with a tab. Now, it 
is the <--> thing again. So it looks weird if one was accustomed 
to the other way. And, again, to copy with the mouse leads to 
funny-looking things happening which it seems to me ought not to happen.

Comments? Suggestions?

Theodore Kilgore


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