Re: tree view, more tweaking - switching to mc HEAD version.

2010-05-19 Thread Janek Kozicki
Yury V. Zaytsev said: (by the date of Tue, 18 May 2010 17:11:14 +0200)

 On Tue, 2010-05-18 at 16:56 +0200, Janek Kozicki wrote:
 
  During the course I have learned a bit of how that tree-view code
  works, and I already have an idea how to optimize the current patch a
  little bit more. Depending on your patience you can either apply this
  patch or wait for the next one.
 
 That depends on how much time you would want to invest into this
 venture. Either you come up with a patch, attach it to the Trac ticket,
 we create a branch, review it and merge into the current master tree or
 you can checkout the latest source from git and then push your branch to
 github or somewhere else so that we can pull from you.

I'm unfamiliar with git - never used it, except for mc. I used svn
and bzr, but not git.

If you care to tell me how to commit my patches to your repository I
could do that. I have no idea how to set a git hub, so that you could
pull from it. And my IP address is behind a firewall, so you couldn't
reach my PC anyway.

I am fine with sending patches, OTOH I'm afraid that *if* I continue to
improve a tree-view code I might want to send more patches, so write
access to repo might be useful. OTOH My limited time is conflicting with
this obviously and I'm really unable to decide how dedicated to it
I can be.

But just for now, I am trying to update my branch as you suggested,
to use the latest version, so I do:

  git reset --hard
  git checkout master
  git pull

like this:

  ja...@atak:~/usr/deb-src/mc/mc-ORIGINAL-COPY$ git reset --hard
  HEAD is now at 70c0c3d Merge branch '2157_ncurses_fill_region'
  ja...@atak:~/usr/deb-src/mc/mc-ORIGINAL-COPY$ git checkout master
  Already on 'master'
  ja...@atak:~/usr/deb-src/mc/mc-ORIGINAL-COPY$ git pull
  Already up-to-date.

Does it mean that I am at release 5.0 ? I see that version.h says:
4.7.2-48-g70c0c3d, but maybe it's filled in during compilation, and
I couldn't compile the HEAD, read on.

I am stuck with debian packages. I mean - I don't want to run 'mc'
in any different way than by ending the compilation process by making
a .deb package and installing it.

I mean - everytime when I modify a source file, I compile to generate
a .deb and install it, just to run mc. This is maybe longer, but it's
the safest/laziest way for me.

So, inside that directory with git branch have a /debian/
subdirectory so I just did:

  cd debian 
  svn up
  svn info

like this:

  ja...@atak:~/usr/deb-src/mc/mc-ORIGINAL-COPY$ cd debian 
  ja...@atak:~/usr/deb-src/mc/mc-ORIGINAL-COPY/debian$ svn up
  At revision 408.
  ja...@atak:~/usr/deb-src/mc/mc-ORIGINAL-COPY/debian$ svn info
  Path: .
  URL: svn://svn.debian.org/svn/pkg-mc/trunk/debian
  Repository Root: svn://svn.debian.org/svn/pkg-mc
  Repository UUID: 1da7b59f-b76e-4e7a-8c78-615837a07e4c
  Revision: 408
  Node Kind: directory
  Schedule: normal
  Last Changed Author: zaytsev-guest
  Last Changed Rev: 408
  Last Changed Date: 2010-05-18 10:52:59 +0200 (wto, 18 maj 2010)

So, with the latest version of debian build system in place, I want
to compile, so I proceed in following manner:

  cd ..
  fakeroot debian/rules binary


Which fails with error:

  config.status: error: cannot find input file: `vfs/extfs/a.in'

And now, I am unable to make a debian package. 

What's wrong?

I could try to download a fresh checkout of git repository, and put
in there a fresh checkout of debian built system from repository.
But I just forgot how I did that in the first place, and would need to
look it up. So it was easier to update the current one :)


So while HEAD isn't compiling, I'll continue today to tweak my
current version of tree view with older mc checkout.


 In fact, rebasing to the latest master is recommended as we are now
 applying auto-indent to every file we touch so that hopefully the crazy
 ad hoc indentation will finally go away without causing too much
 conflicts.

Which files did you already auto indent?

Currently it's PITA, because I am using TAB character which is
8 chars long. But whole mc code seems to be tabulated at 4 space
characters. Are you drifting away from this, or towards this?

I have no preference here (forget the TAB flame war), I'm just asking
for vim flags, so that vim will take care of this for me :)

 
 If you make a patch on top of an source file that has been subsequently
 auto-indented it will become essentially un-applicable for us.

of course :)
 
 P.S. We all should probably be doing something else... :-)

hell yeah :)

-- 
Janek Kozicki   http://janek.kozicki.pl/  |
___
mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


how does skin recognize that UTF-8 is available?

2010-05-19 Thread Janek Kozicki
I wanted to check how to use  ▶ / ▼ for (un)folding a directory in
tree view. If UTF-8 is available then I'd like to use ▶ / ▼. Andrew
recommended using skin engine for that.

So I suppose that I would just call for an up-arrow and get either a
UTF8 on or a ASCII one. But now I'm troubled. I switched to UTF8
recently and mc is still using ' and , to show the sorting direction.
Instead of ↓ and ↑.

A quick grep shows that the character is fixed to a skin, and not to
UTF8 availability:

$ grep sort-sign-up ./* -R
./misc/skins/darkfar.ini:sort-sign-up=↑
./misc/skins/featured.ini:sort-sign-up = ↑
./misc/skins/default.ini:sort-sign-up = '
./misc/skins/double-lines.ini:sort-sign-up = '

Maybe 'mc' should detect if UTF8 is available and either use
default-ASCII.ini skin or default-UTF8.ini skin. But there is
currently just one: the ASCII one default.ini.

Or I'm just not getting it, and it just works. Then - how?

-- 
Janek Kozicki   http://janek.kozicki.pl/  |
___
mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: how does skin recognize that UTF-8 is available?

2010-05-19 Thread Andrew Borodin
On Wed, 19 May 2010 21:45:05 +0200 Janek Kozicki wrote:
 I wanted to check how to use  ▶ / ▼ for (un)folding a directory in
 tree view. If UTF-8 is available then I'd like to use ▶ / ▼. Andrew
 recommended using skin engine for that.

Skin engine is a single correct way for that.

 So I suppose that I would just call for an up-arrow and get either a
 UTF8 on or a ASCII one. But now I'm troubled. I switched to UTF8
 recently and mc is still using ' and , to show the sorting direction.
 Instead of ↓ and ↑.

MC uses a default skin or a skin set in command line (-S option) or
a skin set in the ~/.mc/ini file (skin key). You can try use another
skin to view non-default sotring symbols.
 
 Maybe 'mc' should detect if UTF8 is available and either use
 default-ASCII.ini skin or default-UTF8.ini skin. But there is
 currently just one: the ASCII one default.ini.

I don't think so.

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