🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by CGeek Wannabe Thu, 04 Sep 2008 22:29
using emacs on linux with slrn
#225473
Author: CGeek Wannabe
Date: Thu, 04 Sep 2008 22:29
10 lines
1220 bytes
Hi,

Has anyone been able to get slrn to work with emacs?
I set up my .slrnrc file but when I go to post or followup,
I get a two panel window, the second is .article and the first
is the message.  I don't think I've got it right.  Here's my .srlnrc
file...

set editor_command "/usr/bin/emacs %s %d"
Re: using emacs on linux with slrn
#225491
Author: Steve Ackman
Date: Thu, 04 Sep 2008 23:56
21 lines
1787 bytes
In <48c0614a$0$4046$9a566e8b@news.aliant.net>, on Thu, 04 Sep 2008 19:29:30 
-0300, CGeek Wannabe, youve_got_to_be_kidding@gmail.com.INVALID wrote:

> Has anyone been able to get slrn to work with emacs?
> I set up my .slrnrc file but when I go to post or followup,
> I get a two panel window, the second is .article and the first
> is the message.  I don't think I've got it right.  Here's my .srlnrc
> file...
>
> set editor_command "/usr/bin/emacs %s %d"

  I generally use nano, but I'm typing this reply on emacs.
.slrnrc line is as follows:

set editor_command "/usr/bin/emacs +%d '%s'"


-- 
☯☯ 

Re: using emacs on linux with slrn
#225492
Author: Steve Ackman
Date: Fri, 05 Sep 2008 00:00
19 lines
1752 bytes
In <48c0614a$0$4046$9a566e8b@news.aliant.net>, on Thu, 04 Sep 2008 19:29:30 
-0300, CGeek Wannabe, youve_got_to_be_kidding@gmail.com.INVALID wrote:

> Has anyone been able to get slrn to work with emacs?
> I set up my .slrnrc file but when I go to post or followup,
> I get a two panel window, the second is .article and the first
> is the message.  I don't think I've got it right.  Here's my .srlnrc
> file...
>
> set editor_command "/usr/bin/emacs %s %d"

  I may have posted a bit hastily.  What exactly are you trying
to have happen?  


-- 
☯☯ 

Re: using emacs on linux with slrn
#225558
Author: Adam Funk
Date: Fri, 05 Sep 2008 18:04
40 lines
2320 bytes
On 2008-09-04, CGeek Wannabe wrote:

> Hi,
>
> Has anyone been able to get slrn to work with emacs?
> I set up my .slrnrc file but when I go to post or followup,
> I get a two panel window, the second is .article and the first
> is the message.  I don't think I've got it right.  Here's my .srlnrc
> file...
>
> set editor_command "/usr/bin/emacs %s %d"

I have this:

set editor_command "/usr/bin/emacs -nw +'%d' '%s'

I can't remember exactly why I put the single-quotes around those two
arguments, but there was probably a reason.

I know the "+" is important, though: the command

   /usr/bin/emacs +30 .article

will open file ".article" and position the cursor at line 30 (slrn
generally knows where you want to start editing), whereas

  /usr/bin/emacs .article 30

will open two files, ".article" and "30", in two panels.  This is what
your editor_command is generating, and why you're getting two panels
including an error message (because file "30" doesn't exist).

HTH.


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
Re: using emacs on linux with slrn
#225570
Author: I R A Darth Aggie
Date: Fri, 05 Sep 2008 21:24
23 lines
2232 bytes
On Thu, 04 Sep 2008 19:29:30 -0300,
CGeek Wannabe <youve_got_to_be_kidding@gmail.com.INVALID>, in
<48c0614a$0$4046$9a566e8b@news.aliant.net> wrote:
>  Hi,
> 
>  Has anyone been able to get slrn to work with emacs?
>  I set up my .slrnrc file but when I go to post or followup,
>  I get a two panel window, the second is .article and the first
>  is the message.  I don't think I've got it right.  Here's my .srlnrc
>  file...
> 
>  set editor_command "/usr/bin/emacs %s %d"

I have:

set editor_command "emacs -t `tty` '%s'"

I prefer not to start up the X-friendly version. YMMV, of course.
-- 
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
Re: using emacs on linux with slrn
#225613
Author: Adam Funk
Date: Sat, 06 Sep 2008 19:51
19 lines
1597 bytes
On 2008-09-05, I R A Darth Aggie wrote:

> I have:
>
> set editor_command "emacs -t `tty` '%s'"

I've never seen "-t `tty`" until now --- does that have the same
effect as "-nw"?


> I prefer not to start up the X-friendly version. YMMV, of course.

I agree (that's why I use "-nw").


-- 
No right of private conversation was enumerated in the Constitution.
I don't suppose it occurred to anyone at the time that it could be
prevented.                                        [Whitfield Diffie]
Re: using emacs on linux with slrn
#225634
Author: Xavier Maillard
Date: Sun, 07 Sep 2008 08:37
10 lines
1293 bytes
Hi,

CGeek Wannabe <youve_got_to_be_kidding@gmail.com.INVALID> writes:

> set editor_command "/usr/bin/emacs %s %d"

I do not use slrn but why don't you use emacsclient instead ?
That's the quickest way I know to start editing.

Regards
Re: using emacs on linux with slrn
#225668
Author: I R A Darth Aggie
Date: Mon, 08 Sep 2008 13:02
23 lines
2249 bytes
On Sat, 6 Sep 2008 20:51:34 +0100,
Adam Funk <a24061@ducksburg.com>, in
<6j3bp5-g8i.ln1@news.ducksburg.com> wrote:
>  On 2008-09-05, I R A Darth Aggie wrote:
> 
> > I have:
> >
> > set editor_command "emacs -t `tty` '%s'"
> 
>  I've never seen "-t `tty`" until now --- does that have the same
>  effect as "-nw"?

I believe they are functionally the same. `tty` will return the name of
the current TTY device, so in theory I could open emacs in a seperate
terminal.

Not that would be particularly useful, I'm guessing.

-- 
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
Re: using emacs on linux with slrn
#225674
Author: »Q«
Date: Mon, 08 Sep 2008 16:30
8 lines
1443 bytes
On Mon, 8 Sep 2008 13:02:12 +0000 (UTC)
I R A Darth Aggie <n0b0dy@invalid.invalid> wrote:

> I could open emacs in a seperate terminal.
> 
> Not that would be particularly useful, I'm guessing.

GNU ed 1.0 was released weeks ago.  Why is this thread still alive?
Re: using emacs on linux with slrn
#225681
Author: Adam Funk
Date: Mon, 08 Sep 2008 19:20
22 lines
1832 bytes
On 2008-09-08, I R A Darth Aggie wrote:

>>  I've never seen "-t `tty`" until now --- does that have the same
>>  effect as "-nw"?
>
> I believe they are functionally the same. `tty` will return the name of
> the current TTY device, so in theory I could open emacs in a seperate
> terminal.
>
> Not that would be particularly useful, I'm guessing.

Some mildly amusing but useless (AFAICT) weirdness happens when you
run
   emacs -t /dev/pts/3
or
   sudo emacs -t /dev/tty3
(for example) from somewhere else.


-- 
I heard that Hans Christian Andersen lifted the title for "The Little
Mermaid" off a Red Lobster Menu.                         [Bucky Katt]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads