jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Re: Re: SLang tab completion - update 2002-08-05


On Mon, 5 Aug 2002 17:49:26 +0200 wrote ks <klaus.schmid@xxxxxx>:

> Just my newly updated version:
> 
> 1. Command lines at slang prompt are stored in a
> separate recall-array. 

Nice ... (Maybe the code for this could be simplified by using my 
          "circled arrays" (circle.sl, see my modes help.sl, recent.sl 
          and navigate.sl as examples) :-)

> Equal signs at eol are not erased any more.

One could do without the equal signs, if the stack is showed by default
after each call:

   if (_stkdepth())
     show_stack();

   % print a listing of the stack to the diagnose buffer, emptying the stack 
   define show_stack()
   {
      variable curbuf= whatbuf();
      pop2buf(Diagnose_Buffer);
      eob;
      insert("\nStack listing: \n");
      while(_stkdepth)
        insert(string () + "\n");
      set_buffer_modified_flag (0);
      pop2buf(curbuf);
   }  

I see the problem that arises when someone wants to push something on the
stack that should remain there. As I normally don't want to do so, I'd still
prefer the solution without "=" -- maybe as a configurable option?


Actually, I prefered the completions and the mini-help in the status line,
it is less distractive then a popup. I understand that 
  a) the status line is too small in some cases
  b) it is not available when we are at the slang prompt
Maybe the popping could be restrained to these cases? (see my help.sl for an
example: one-line help goes to the minibuffer, multiline help to its own
popup-window)

I would prefer, if the popup-buffer were the size of it's content. Maybe we
could join the effort from goto_popup()/close_popup() and my
popup_buffer([buf], [max_rows = NULL]) from the bufutils.sl collection of
buffer routines (to be found at JMR).

Before I start to code something, it might be best to agree about the
desired features. IMO, a popup window should:

* Be the size of the content (bounded by a user-configurable maximal size)

* Not overlap with the editing point prior to the call.

* Restore jed to the previous state (No of windows and their content) when
  closed.

* Close with <ESC>, <q> and the normal close_window/buffer keybinding.
  (and without asking whether the content should be saved.)

To achieve this it should: 
  + split the window and fit the size to the content(or max-value) if
      a) there is just one window
      b) there is a window sufficiently larger than the desired size 
         of the new window
    else: goto the largest other window, don't change the size.
  
  + Remember this decision (and the previous content and cursor position 
    of the window it reuses)


Did I forget something?

Guenter


--
G.Milde at physik.tu-dresden.de


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]