Re: Makeing the subshell reliable

2006-07-15 Thread Oswald Buddenhagen
On Fri, Jul 14, 2006 at 11:27:27AM +0300, Pavel Tsekov wrote:
 On Fri, 14 Jul 2006, Oswald Buddenhagen wrote:
 without the subshell i can't operate mc while the command is executed, i
 
 Ok. But it can be  as simple as Ctrl-O, execute command, Ctrl-O. There is
 only an extra Ctrl-O.
 
yes, and i can't use alt-a, alt-enter and ctlr-shift-j.

 can't use the shell's much better completion, history and line editing,
 
 The subshell prompt widget doesn't perform these via the subshell.
 
oh, really? ;)

 aliases  shell functions and whatever cool features a modern unix shell
 
 Well yes - but see above. Again Ctrl-O followed by a command should do 
 just fine.
 
and again i can't mix it with functionality provided by the panels.

 offers, and i can't execute a series of commands without switching off
 
 I dont understand this.
 
forget it, it was based on the observation of no subshell at all (mc -u).

 I am not advertising the removal of the subshell . I just want to remove 
 the ability to execute commands typed at MC's prompt widget trough the
 subshell (if it isn't clear yet).

good. but exactly this integration makes it so valuable for me.
otherwise i could just use another xterm/vt/screen.

 However, if this functionality is to remain we have to define exactly
 how it is supposed to work and the subshell prompt should definitely
 go. My opinion is that if we start to impose restrictions on that
 feature there would alway be a group of confused users since it want
 behave exactly as they would expect to. But I am open to suggestions.
 
the current implementation is a mc command prompt and a real shell
prompt. the mc prompt can inject commands into the shell. disadvantages
are that it is strictly one-way and it seems to be somewhat whacky (but
i must say, i'm obviously trained enough not to do the stupid things - i
didn't have problems with it for ages).

the second variant would be embedding the real shell prompt into the
panels. this could work by presenting the shell a really tiny pty. to
reduce clashes with the emacs keybindings (which are typically used by
shells, due to readline usage), mc would have to switch the meanings of
ctrl-p/-n with alt-p/-n and probably some more, also to maintain
consistency. command injection would happen in pieces, like when
pressing alt-a, making a completion, etc.  the advantage would be the full
bidirectionality of the two views. disadvantages would be the loss of
mc's command history window (but honestly, i could not care less, as i'm
way faster with ctrl-r in the shell prompt anyway) and the potentially
very hard implementation - way more then the current one.

the third variant is the nc-like one where there is no real shell
prompt at all and the commander pretends to be the interactive shell in
both views. again, we would gain equivalence of the two views, would
keep mc's history (even with disabled panels), and we would not have to
detect whether the shell is idle, as there would be none. however,
implementing a feature set comparable with a modern unix shell (think
zsh) is an *imense* workload. given features like programmable
completion, i think it is actually impossible without completely merging
a real shell into mc, or, seen the other way round, making mc that
shell's shiny front-end. however, that would easily triple mc's size and
annoy all the people who are using one of the roughly three million
other shells we did not choose.

variant three is technically cleanest, but given the effort and the
incredible flaming potential i think it is outright unrealistic. and
extending mc's prompt just slightly and offering a castrated pseudo
shell prompt doesn't sound exactly desirable to me.
personally i'd go with variant two (unless somebody points out a
fundamental flaw in the idea (no, i'm not talking about implementation
problems)). to even think about that, we need to get the current code
working reliably. i'll investigate this myself - however, i won't make
*any* promises about the time frame.

btw, in any case, i think the mc command prompt should be able to grow
to a configurable number of lines (3 by default, maybe). currently
working with long paths (which i typically have in my multimedia
collection) is outright painful.

btw2, we need an alternative to alt-tab for completion, as alt-tab is
the sort-of-standard keybinding for switching windows in x and some
other well known OSs. i think it would make sense to have it on alt-c
(and have changeDir on alt-d - that's way more intuitive anyway. oh,
btw, i never used this quick cd - if the prompt is busy, i can either
navigate with ctrl-pgup/-pgdn or i simply ctrl-o into the shell).

btw3, i just found that we need a function follow symlink (presumably
mapped to alt-f) that would, well, guess what, set the current panel on
the target of the symlink the panel was on.

btw4, i should write fewer btws and file wishes instead. :)

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, 

Re: obsolete RPM tags highlighting

2006-07-15 Thread Leonard den Ottolander
Hello Jindrich,

On Fri, 2006-07-14 at 19:52 +0200, Jindrich Novy wrote:
 On Fri, 2006-07-14 at 15:33 +0200, Leonard den Ottolander wrote:
  \{Gg\}\{Rr\}\{Oo\}\{Uu\}\{Pp\}

 This is a joke, isn't it?
 
 Just imagine a nice spec like this:
 
 SuMmArY: Programs for backing up and restoring ext2/ext3 filesystems
 nAMe: dump
 veRSioN: 0.4b41

I agree it looks odd but it's valid syntax :-) .

 At least the first capital letter should be mandatory upper-case

Although I don't really mind that we put some restrictions on the user
as to what capitalization is being highlighted I disagree with this. All
lowercase tags should be highlighted imo. Using all lowercase is rather
consistent and I encounter an occasional spec file that does this. And
why should we allow the decapitalization of the a in BuildArch but not
the B?

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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


mc-2006-07-12-22 bug report

2006-07-15 Thread enrico
$ ./mc -V
Warning: file /usr/local/share/mc/extfs/extfs.ini not found
Warning: file /usr/local/share/mc/extfs/sfs.ini not found
GNU Midnight Commander 2006-07-12-22
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish
With builtin Editor
Using included S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
Data types: char 8 int 32 long 32 void * 32 off_t 64 ecs_char 8

$ gdb ./mc
(gdb) run

here I try to copy one file from my local filesystem to a ftp one

(gdb)
Program received signal SIGSEGV, Segmentation fault.
││   ││
0x080be9e0 in vfs_s_generate_entry (me=0x81043c0, name=0x81b69f0 WA,
parent=0x0, mode=493) at direntry.c:179   ││
179 inode = vfs_s_new_inode (me, parent-super, st); 


(gdb) where  │
││   ││
#0  0x080be9e0 in vfs_s_generate_entry (me=0x81043c0, name=0x81b6c18
WA, parent=0x0, mode=493) at direntry.c:179│
#1  0x080bf832 in vfs_s_open (me=0x81043c0, file=0xffed Address
0xffed out of bounds, flags=577, mode=384)  │
at direntry.c:755│
││   ││
#2  0x080c2eb8 in mc_open (filename=0x81b66e8
/#ftp:[EMAIL PROTECTED]/WA, flags=577) at vfs.c:342  │
│
#3  0x080671ec in copy_file_file (ctx=0x81a2d70, src_path=0x81b5c68
/home/enrico/scan,  │
dst_path=0x81b66e8 /#ftp:[EMAIL PROTECTED]/WA,
ask_overwrite=1, progress_count=0xbff507c8, │   ││
progress_bytes=0xbff507c0, is_toplevel_file=1) at file.c:613
│   ││
#4  0x08068ce5 in panel_operate (source_panel=0x81a31f8,
operation=OP_COPY, force_single=0) at file.c:1886   ││
#5  0x0805c54b in copy_cmd () at cmd.c:310   │││
│   ││
#6  0x080973b3 in buttonbar_call (bb=Variable bb is not available.
│   ││
) at widget.c:2279   │   │││
│   ││
#7  0x080975e9 in buttonbar_callback (w=0x81a6000, msg=WIDGET_HOTKEY,
parm=1005) at widget.c:2301│   ││
#8  0x08062540 in dlg_process_event (h=0x819c4e0, key=1005,
event=0xbff508a0) at dialog.c:614│   ││
#9  0x0806294f in run_dlg (h=0x819c4e0) at dialog.c:785   ││
│   ││
#10 0x08078724 in main (argc=1, argv=0xbff519f4) at main.c:1675│

end bugreport.
Cheers, enrico.


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


mc-2006-07-12-22 bug report

2006-07-15 Thread enrico
I have forgotten some specs:
 
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c
++,java,f95,objc,ada,treelang --prefix=/usr
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared
--with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

GNU linux 2.6.12-10-386 

./configure  make



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


Re: obsolete RPM tags highlighting

2006-07-15 Thread Jindrich Novy
Hi Leonard,

On Sat, 2006-07-15 at 13:11 +0200, Leonard den Ottolander wrote:
 And
 why should we allow the decapitalization of the a in BuildArch but not
 the B?

Because buildArch or buildPreReq in spec looks just wrong? ;-)

Jindrich

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


Re: obsolete RPM tags highlighting

2006-07-15 Thread Leonard den Ottolander
Hi Jindrich,

On Sat, 2006-07-15 at 17:35 +0200, Jindrich Novy wrote:
 Because buildArch or buildPreReq in spec looks just wrong? ;-)

As you might have guessed I was actually referring to buildarch and
buildprereq. But I guess that if I prefer all lowercase tags to be
highlighted I need to propose a patch here.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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