John E. Davis | 1 Jun 06:48 2006
Picon

Re: UTF-8 problems

Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>You are right. Didn't look at the Debian patches. They patch this function.
>There's no explanation why this patch is there. I file a bugreport.

Please let me know why Debian is patching this function.

Thanks,
--John

Jörg Sommer | 1 Jun 17:55 2006
Picon

describe_bindings: suggestions

Hi,

the function describe_bindings() prints the current mapping of key to
function in a buffer. Three things I think they would be nice:

1. Don't indent with \t, because this leads to:

   ^B 			previous_char_cmd
   ^C ^A 			email_attach_file
   ^C ^D ^C 			remove_excess_quote_levels
   ^C ^D ^S 			email_delete_quoted_sigs

2. Make a diff of the global map or remove lines with self_insert_cmd.

3. Is it possible to insert the description of the function after the
   function name? E.g.
   ^X = 			whatpos "display row and column information in minibuffer"

Bye, Jörg.
--

-- 
Ich halte ihn zwar für einen Schurken und das was er sagt für
falsch - aber ich bin bereit mein Leben dafür einzusetzen, daß
er seine Meinung sagen kann.		(Voltair)

Jörg Sommer | 1 Jun 13:16 2006
Picon

Re: UTF-8 problems

Hallo John,

"John E. Davis" <davis <at> space.mit.edu> wrote:
> Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>>You are right. Didn't look at the Debian patches. They patch this function.
>>There's no explanation why this patch is there. I file a bugreport.
>
> Please let me know why Debian is patching this function.

I think it is a old patch that was forgotten to be removed.

http://bugs.debian.org/369152

Bye, Jörg.
--

-- 
- StGB §§ 328 Absatz 2, Nr.3 : Mit Freiheitsstrafe bis zu
fünf Jahren oder mit Geldstrafe wird bestraft, wer eine
nukleare Explosion verursacht.

John E. Davis | 2 Jun 05:12 2006
Picon

Re: set_color_esc and tt_send

Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>I want underlining. I want to set \e[4m for the color underline. In jed
>this works.

I would rather support an "underline" color than use the set_color_esc
hack.

>> If you want to raise/lower the Xjed window, then press ^Z.  Since
>> suspending makes no sense in X, the poorly-named sys_spawn_cmd function
>> raise/lowers Xjed.
>
>Call "sleep(2); call("sys_spawn_cmd")" at the slang commandline and
>switch to another window. After 2 seconds you can go back and see a
>suspended Xjed. It seams Xjed is doing what it is requested to do. :-)

I see it lowered but not suppended.  Are you sure you see it suspended
in the sense that SIGTSTP was sent to the Xjed process?

Thanks,
--John

Jörg Sommer | 2 Jun 16:31 2006
Picon

read_mini steals prefix argument

Hi,

the prefixargument is not available after read_mini(). Why?

#v+
define g()
{
    message(string(prefix_argument(-1))+"  "+string(_NARGS));
}

set_prefix_argument(12);
g( read_mini("X", "", "") );
#v-

#v+
% xjed -batch -l /tmp/test.sl
X(default )
12  1
#v-

Inside the editor it prints "-1  1".

Bye, Jörg.
--

-- 
Treffen sich zwei Funktionen.
Sagt die eine: "Verschwinde oder ich differenzier' dich!"
Erwidert die andere: "Ätsch, ich bin exponentiell!"

John E. Davis | 2 Jun 17:08 2006
Picon

Re: read_mini steals prefix argument

Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>the prefixargument is not available after read_mini(). Why?

The prefix-argument applies to the next keystroke.  The function bound
to such a keystroke may or may not use a prefix-argument.  If it does
not use it, then jed will use the prefix argument as a repetition
factor.  This feature can be used to, e.g., insert a character 75 times,

The prefix-argument is also global, meaning that there is only one
instance available.  This means that any setting prior to calling
read_mini would be lost if a prefix-argument were used at the prompt.

--John

Jörg Sommer | 2 Jun 19:15 2006
Picon

Re: read_mini steals prefix argument

Hallo John,

"John E. Davis" <davis <at> space.mit.edu> wrote:
> Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>>the prefixargument is not available after read_mini(). Why?
>
> The prefix-argument applies to the next keystroke.  The function bound
> to such a keystroke may or may not use a prefix-argument.  If it does
> not use it, then jed will use the prefix argument as a repetition
> factor.  This feature can be used to, e.g., insert a character 75 times,

BTW: While we talk about this feature. How to insert 40 zeros or 12 ones?

> The prefix-argument is also global, meaning that there is only one
> instance available.  This means that any setting prior to calling
> read_mini would be lost if a prefix-argument were used at the prompt.

Hence, I must use a variable or have I another choice?

And why is () not couted as argument?

#v+
define g()
{
    message(string(prefix_argument(-1))+"  "+string(_NARGS));
}

read_mini("X", "", "");
set_prefix_argument(12);
g( () );
(Continue reading)

John E. Davis | 2 Jun 23:02 2006
Picon

Re: read_mini steals prefix argument

Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>BTW: While we talk about this feature. How to insert 40 zeros or 12 ones?

It it not supported by this feature.  If I were to introduce some sort
of character to act as as a delimiter to separate the digits of the
prefix argument from the digit that you are trying to repeat, you
could then ask the question about how to insert that delimiter a
number of times.

>> The prefix-argument is also global, meaning that there is only one
>> instance available.  This means that any setting prior to calling
>> read_mini would be lost if a prefix-argument were used at the prompt.
>
>Hence, I must use a variable or have I another choice?

What are you trying to do?

>And why is () not couted as argument?

In order for slang to properly set the _NARGS variable, it must
generate code to deduce the number of function arguments by watching
the stack.  In your example, the stack does not change and as a
result, _NARGS is 0.

>define g()
>{
>    message(string(prefix_argument(-1))+"  "+string(_NARGS));
>}
>
>read_mini("X", "", "");
(Continue reading)

Jörg Sommer | 3 Jun 13:43 2006
Picon

Re: read_mini steals prefix argument

Hallo John,

"John E. Davis" <davis <at> space.mit.edu> wrote:
> Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>>BTW: While we talk about this feature. How to insert 40 zeros or 12 ones?
>
> It it not supported by this feature.

I don't know how emacs do, but the zsh emulation of emacs does so by
only prefixing with ESC+number, e.g. pressing a number after one prefix
was set this is taken as key.

ESC 1 ESC 0 4 -> 4444444444

Bye, Jörg.
--

-- 
The UNIX Guru's View of Sex:
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep

Jörg Sommer | 3 Jun 13:48 2006
Picon

Re: read_mini steals prefix argument

Hallo John,

"John E. Davis" <davis <at> space.mit.edu> wrote:
> Jörg Sommer <joerg <at> alea.gnuu.de> wrote:
>>the prefixargument is not available after read_mini(). Why?
>
> The prefix-argument applies to the next keystroke.  The function bound
> to such a keystroke may or may not use a prefix-argument.  If it does
> not use it, then jed will use the prefix argument as a repetition
> factor.

Everytime? Does that mean ESC 5 ^cc runs compile 5 times?

> The prefix-argument is also global, meaning that there is only one
> instance available.  This means that any setting prior to calling
> read_mini would be lost if a prefix-argument were used at the prompt.

Why does read_mini() not save the pefix argument and restore it after
it has read the string? The same I must do with

 variable tmp;
 tmp = read_mini("Select a command:", "", "");
 set_prefix_argument(prefix);
 cmd_insert(tmp);

could happen inside read_mini.

Bye, Jörg.
--

-- 
Die am Lautesten reden, haben stets am wenigsten zu sagen.
(Continue reading)


Gmane