Dario Niedermann | 8 Feb 2012 15:03
Picon
Favicon

[BUG?] Repeated string escape = error

Using any string escape more than once in a *editor_command variable
within the '.slrnrc' file always leads to an "Invalid Editor definition"
error message. Example:

	set post_editor_command "echo ciao >>'%s' && vi +%d '%s'"

Or also:

	set post_editor_command ""
	set editor_command "echo %d && sleep 5 && vi +%d '%s'"

ISTR older slrns giving me grief about this issue too, so it's probably
an old bug (provided that it's not intended behaviour, which would
surprise me).

Regards,
DN

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

Grant Edwards | 21 Feb 2012 22:04
Picon

how to mail instead of post a followup

One of the mailing list groups I'm reading on gmane.org doesn't allow
posts via gmane. So, posts and follow-ups need to be e-mailed.  I ran
into this many years ago, and vaguely remember adding some sort of
article hook that check the group and did something to cause a posting
to be mailed to the appropriate address instead of posted.  (Modify
the followup-to: header line?).  But, I can't find any trace of my
previous solution, and google hasn't turned up anything either.

Does anybody else remember how I solved this problem?  :)

--

-- 
Grant Edwards               grant.b.edwards        Yow! PEGGY FLEMMING is
                                  at               stealing BASKET BALLS to
                              gmail.com            feed the babies in VERMONT.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

John E. Davis | 23 Feb 2012 19:21
Picon
Favicon

Re: [BUG?] Repeated string escape = error

Dario Niedermann <dnied <at> tiscali.it> wrote:
> Using any string escape more than once in a *editor_command variable
> within the '.slrnrc' file always leads to an "Invalid Editor definition"
> error message. Example:
>
> 	set post_editor_command "echo ciao >>'%s' && vi +%d '%s'"

For the editor commands, slrn allows only one %s and one %d.  You can
work-around this restriction via a variable, e.g.,

   set post_editor_command "X='%s'; echo ciao >> $X && vi +%d $X"

--John

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Dario Niedermann | 23 Feb 2012 20:04
Picon
Favicon

Re: [BUG?] Repeated string escape = error

Il 23/02/2012 alle 19:21, John E. Davis ha scritto:

> For the editor commands, slrn allows only one %s and one %d.  You can
> work-around this restriction via a variable [...]

OK, thanks for the reply. But I'm left wondering what the rationale for
this design choice is. Frankly, I fail to see any advantage in single-use
escapes.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/


Gmane