[climacs-devel] Re: a patch for climacs (mainly regarding COMPLETABLY-PATHNAME) + a gimmick

Max-Gerd Retzlaff m.retzlaff at gmx.net
Thu Sep 1 01:54:58 UTC 2005


Hi

On Wed, Aug 31, 2005 at 07:46:37PM +0100, John Q Splittist wrote:
> Robert Strandh wrote:
> > Max-Gerd Retzlaff writes: 
> >  > While we are at PRESENTing pathames: It would nice if in the
> >  > climacs-info-pane (aka modeline) the name of the buffer would be
> >  > presented via something like:
> >  > 
> >  > (let ((name (name buffer))
> >  >       (filepath (filepath buffer)))
> >  >   (if filepath
> >  >       (with-output-as-presentation (pane filepath 'pathname)
> >  >         (princ name pane))
> >  >       (princ name pane)))
> >  > 
> >  > and not printed in this huge FORMAT of CLIMACS-GUI::DISPLAY-INFO.
> > 
> [...]
>
> (a) have the syntax name given by a call to the syntax (ie. a method
> specialised on the syntax and buffer, so, eg. lisp-syntax could add the
> package like slime does); and

I don't get this.


> (b) have the buffer name presented _as_a_buffer_, so we could have
> interesting and useful things done when one clicked on it.

Oh yes, of course! And than a presentation translator to pathname that
has a tester that checks whether the buffer is grafted (if I may use
this term in analogy to the use when referred to sheets), that is the
FILEPATH slot of the CLIMACS-BUFFER instance contains a pathname.
Something like:

(define-presentation-translator climacs-buffer-to-pathname-translator
    (climacs-buffer pathname global-climacs-table
       :gesture :select
       :tester ((object)
                (filepath object))
       :tester-definitive t
       :documentation ((object stream)
                       (format stream "Select pathname ~a" (namestring (filepath object)))))
    (object)
  (filepath object))


(This is actually tested code that works as expected.)

This is really as the buffer-name, presented as of type
CLIMACS-BUFFER, will be selectable as input for FIND-FILE (if is
associated with a file) and *also* as input for SWITCH-TO-BUFFER.

That's the magic of CLIM. :-)

 
> Other things in the info-pane (it would be nice to abolish all uses of
> the word 'mode' from climacs)

Well, everyone knows what is meant by "modeline". That's probably not
true for "info-pane"..

> could also usefully be presented for clicking (toggling modified
> status, read only status, auto-fill, overwrite...).

Yes, yes. Just click on "overwrite" and it will be toggled.. Also we
can use real icons in the "info-pane" and don't have to resort to
ASCII to represent the various states. Mhmm.

Bye,
Max

-- 
Max-Gerd Retzlaff <m.retzlaff at gmx.net>

For your amusement:
If life is a stage, I want some better lighting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20050901/93d9cb00/attachment.sig>


More information about the climacs-devel mailing list