jed-users mailing list

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

Re: Question about mailedit.sl docs


On Wed, Aug 02, 2006 at 10:54:42AM -0400, John E. Davis wrote:
> Marc Haber <mh+jed-users@xxxxxxxxxxxx> wrote:
> >   !if( bol_fsearch("-- ") )
> >     {
> >        goto_user_mark(mark);
> >        throw UsageError, "no Signature found";
> >     }
> >   del_region();
> >   insert_char(10); insert_char(10);
> >}
> >
> >I am not sure whether my error handling is appropriate, and the
> 
> UsageError should not be used--- instead something like RunTimeError
> would be more appropriate

Ok, will do.

> >insert_char calls to insert two new line charcters look out of place -
> >is there a more elegant way to do this?
> 
> I would use:
> 
>   insert ("\n\n");

How obvious. I tried a number of ^M or other letters but didn't think
about backslash escapes. Stupid me.

Thanks for your help.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

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


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