🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #202879

Re: [slrn] a couple of questions

#202879
From: Stefano Sabatini
Date: Thu, 02 Aug 2007 15:24
72 lines
3555 bytes
On 2007-08-01, John <jtlinux1@oohay.ca> wrote:
> On 2007-08-01, Stefano Sabatini <stefano.sabatini@caos.org> elucidated on the topic of:
>> On 2007-08-01, John <jtlinux1@oohay.ca> wrote:
>>> I'd like to be able to run slrn from the Internet menu under Gnome but when I 
>>> set up the command and select it, nothing happens.  Is this at all possible?
>>> I asked the question over in aolu and someone else tried it and failed as well.
>>
>> I tried and it worked for me.
>>
>> Simply run alacarte to edit the main menu.
>>
>> Then create a new entry:
>> Type: Terminal Application
>> Command: /usr/bin/slrn
>> (you have to specify here the complete command path or it won't work,
>> gnome as usual not giving meaningful error messages).
>
> Thanks for taking the time to help.  This didn't work.  I don't even
> see a terminal now.

Please note you can't run more than one instance of slrn, try again
but get sure no other instances of slrn are running.

>> Mmh..., it's seems like a WM problem.
>
> I don't know what WM is?  Windows Manager?

Sorry, many years with computers and you start to think with
acronyms.. ;-)

>> Are you spawning a new emacs process everytime you have to post?
>
> Yes
>
>> I'd rather suggest you to use emacs-server and emacs-client.
>
> I can't find emacs-server in the repository.  Is there somewhere else I should look
> (besides google)?

It's part of standard emacs. You simply need to put in your emacs
configuration file:
(server-start)

then you can connect to the running instance of emacs with:
emacs-client file

A good idea is to create a script "edit" which moves from the actual
desktop to the emacs one, than go back to the original one when the
editing is finished (see also wmctrl).

then quit from it with C-x # (you have to save the buffer before).

Follows an example emacs setup for slrn:

(require 'slang-mode)
;; sl file are started in slang-mode: you have to look for them on the
;; Internet (suggestion: emacs-goodies-el debian/ubuntu package)
(add-to-list 'auto-mode-alist '(".*\\.sl\\'" . slang-mode))

;; tell to activate mail-mode opening the files matched by the regexp
(mapc 
 (lambda (elt) (add-to-list 'auto-mode-alist elt))
 (list '("\\.article\\'" . mail-mode)
       '("\\.followup\\'" . mail-mode)
       '(".*/SLRN.*" . mail-mode)))

You could also consider to use post-mode instead.

HTH, cheers.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)
Technical Details
Message-ID: <slrnfb3tfd.6ki.stefano.sabatini@santefisi.caos.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!feeder.erje.net!aioe.org!not-for-mail
References: <46afd3c9$0$4065$9a566e8b@news.aliant.net> <slrnfb0n6l.l8m.stefano.sabatini@santefisi.caos.org> <46b0ea0a$0$4032$9a566e8b@news.aliant.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfb3tfd.6ki.stefano.sabatini@santefisi.caos.org>
Subject: Re: [slrn] a couple of questions
Date: Thu, 02 Aug 2007 15:24:00 +0000
From: Stefano Sabatini <stefano.sabatini@caos.org>
References: <46afd3c9$0$4065$9a566e8b@news.aliant.net> <slrnfb0n6l.l8m.stefano.sabatini@santefisi.caos.org> <46b0ea0a$0$4032$9a566e8b@news.aliant.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!feeder.erje.net!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Debian GNU/Linux site
Lines: 72
Reply-To: stefano.sabatini@santefisi.caos.org.invalid
NNTP-Posting-Host: qciOlo7H/4qt7p53OvYdKA.user.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: slrn/0.9.8.1pl1 (Debian)