Loading ...
Sorry, an error occurred while loading the content.
 

RE: [jasspa] oops

Expand Messages
  • Steven Phillips
    This mail was meant for just Jon as it has development boring detail in it, the OSD fix etc will be in the patch (coming soon). Steve
    Message 1 of 4 , Aug 12, 2001
      This mail was meant for just Jon as it has development boring detail in it,
      the OSD fix etc will be in the patch (coming soon).

      Steve

      > -----Original Message-----
      > From: Steven Phillips [mailto:sphillips@...]
      > Sent: Monday, August 13, 2001 8:27 AM
      > To: jasspa@yahoogroups.com
      > Subject: RE: [jasspa] new microemacs extension?
      >
      >
      > Jon,
      >
      > I think this should go in as a submission. I was thinking that it
      > should use
      > narrows as it would be more efficient and it would work except you need to
      > check whether the region is at the start and/or end of the buffer to know
      > which narrows to remove (i.e. if the region starts at the beginning the
      > narrow-to will not create a narrow at the top. Fairly simple and saves the
      > hassle of copying, but you would need to use the append-buffer to avoid
      > filename changing.
      >
      > So for simplicity I'd run with this, but I would add a
      >
      > !force 0 delete-buffer "*save-highlight-region*"
      >
      > at line 2 and at the end, this is safer and quicker than the
      > kill-region you
      > have. You also need an extra -1 yank to remove the line 1 copy-region.
      >
      > Well done for finding that OSD bug - a good find, I don't want to know how
      > long it took you to trace down! The fix you've sent doesn't use
      > the ii index
      > in the setting of the width/depth, this is a fix array of 2 so
      > the following
      > is a simpler fix:
      >
      > diff -c -w "j:/me/src/osd.c~" "j:/me/src/osd.c"
      >
      > *** j:/me/src/osd.c~ Sat Aug 04 11:12:36 2001
      > --- j:/me/src/osd.c Mon Aug 13 09:06:03 2001
      > ***************
      > *** 5,11 ****
      > * Synopsis : On-Screen Display routines
      > * Created By : Jon Green & Steven Phillips
      > * Created : 26/07/97
      > ! * Last Modified : <010804.1012>
      > *
      > * Description
      > * This file contains the on screen display routines that
      > --- 5,11 ----
      > * Synopsis : On-Screen Display routines
      > * Created By : Jon Green & Steven Phillips
      > * Created : 26/07/97
      > ! * Last Modified : <010813.0803>
      > *
      > * Description
      > * This file contains the on screen display routines that
      > ***************
      > *** 379,385 ****
      > --- 379,390 ----
      > meFree(rp->strData) ; /* Destruct the str data */
      > rp->strData = NULL ;
      > }
      > + /* reset the flags and dialog size */
      > rp->flags = 0 ;
      > + rp->width[0] = 0 ;
      > + rp->width[1] = 0 ;
      > + rp->depth[0] = 0 ;
      > + rp->depth[1] = 0 ;
      > dialogResetDisplays(rp,2) ;
      > }
      > }
      >
      > Thanks also for the c search (a master piece of regex!) I based
      > mine on our
      > simple C function hilight which requires the function to be on
      > the left hand
      > edge, this works well.
      >
      > Steve
      >
      > > -----Original Message-----
      > > From: Jon Green [mailto:jon@...]
      > > Sent: Sunday, August 12, 2001 2:31 PM
      > > To: jasspa@yahoogroups.com
      > > Subject: Re: [jasspa] new microemacs extension?
      > >
      > >
      > > Here is a quick 2 minute hack of a macro that will do
      > > the job. Probably not perfect but will do the
      > > job. Name is as you indicated - add to your
      > > <user.emf>.
      > >
      > > Regards
      > > Jon.
      > >
      > >
      > > define-macro save-highlight-region
      > > copy-region
      > > find-buffer "*save-highlight-region*"
      > > beginning-of-buffer
      > > yank
      > > set-mark
      > > end-of-buffer
      > > kill-region
      > > -1 yank
      > > !force !nma write-buffer @ml01 "Filename "
      > > delete-buffer $buffer-bname
      > > !emacro
      > >
      > >
      > >
      > >
      > >
      > > psventek@... wrote:
      > > >
      > > > One GNU emacs command I use alot is something I believe is called
      > > > save-highlight-region or something similiar. It does what the name
      > > > implies... you set a mark, move your point to define a region, invoke
      > > > the command, and you are asked what filename to save the region in.
      > > > I've looked around the microemacs command list and don't see such a
      > > > command. Would this be a difficult extension for a microemacs guru to
      > > > write and post here?
      > > >
      > > >
      > >
      > __________________________________________________________________________
      > > >
      > > > This is an unmoderated list. JASSPA is not responsible for the
      > > content of
      > > >
      > > > any material posted to this list.
      > > >
      > > >
      > > >
      > > > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      > __________________________________________________________________________
      >
      >
      >
      > This is an unmoderated list. JASSPA is not responsible for the content of
      >
      > any material posted to this list.
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
      >
      >
      > __________________________________________________________________________
      >
      >
      >
      > This is an unmoderated list. JASSPA is not responsible for the content of
      >
      > any material posted to this list.
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.