🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
12 messages
12 total messages Started by Walter Mitty Fri, 02 Dec 2005 08:12
Re: SLRN questions + emacs
#176998
Author: Walter Mitty
Date: Fri, 02 Dec 2005 08:12
10 lines
1380 bytes
Can anyone tell me how best to deal with the following issues:

1) How to start emacs at the end of the header text when SLRN calls it up

2) I set the wrap flags in SLRN but it still doesnt wrap the single 
lines returned from emacs : a) how to get slrn to do the wrappibng or b) 
how to get slrn to tell emacs to do the wrapping?

regards.
Re: SLRN questions + emacs
#177004
Author: SINNER
Date: Fri, 02 Dec 2005 13:50
18 lines
1829 bytes
* Walter Mitty wrote in news.software.readers:

> Can anyone tell me how best to deal with the following issues:

> 1) How to start emacs at the end of the header text when SLRN calls it up

> 2) I set the wrap flags in SLRN but it still doesnt wrap the single 
> lines returned from emacs : a) how to get slrn to do the wrappibng or b) 
> how to get slrn to tell emacs to do the wrapping?

Show us the line from your slrnrc for your editor

set editor_command

-- 
David
We gave you an atomic bomb, what do you want, mermaids?
		-- I. I. Rabi to the Atomic Energy Commission
Re: SLRN questions + emacs
#177006
Author: Walter Mitty
Date: Fri, 02 Dec 2005 13:59
42 lines
2395 bytes
["Followup-To:" header set to alt.os.linux.debian.]
On 2005-12-02, SINNER <99nesorjd@gates_of_hell.invalid> dropped the ball when he ventured :
> * Walter Mitty wrote in news.software.readers:
>
>> Can anyone tell me how best to deal with the following issues:
>
>> 1) How to start emacs at the end of the header text when SLRN calls it up
>
>> 2) I set the wrap flags in SLRN but it still doesnt wrap the single 
>> lines returned from emacs : a) how to get slrn to do the wrappibng or b) 
>> how to get slrn to tell emacs to do the wrapping?
>
> Show us the line from your slrnrc for your editor
>
> set editor_command
>

Only using the editor env : will check out editor command.

BTW, you were right : SLRN rocks. I just wish it would be offline/cache by default too without need for further tinkering.

so in .bashrc

export EDITOR=emacs

and in .slrnrc

set mouse 1
set Xbrowser "firefox %s"
% set use_slrnpull 1
% set write_newsrc_flags 0
set sorting_method 9
set followup_string "On %D, %r <%f> dropped the ball when he ventured :"
set wrap_flags 7
set display_cursor_bar 1
set realname "Walter Mitty"
set signature ".signature"
set confirm_actions 1

-- 
Useless waste of money research of the day : http://news.bbc.co.uk/1/hi/england/4487010.stm
Are you ready for this? "Children who live or go to school near fast food restaurants are more likely to eat there, a consumer report said."
Re: SLRN questions + emacs
#177007
Author: Neil Woods
Date: Fri, 02 Dec 2005 14:50
39 lines
2509 bytes
>>>>> Walter Mitty writes:

> Can anyone tell me how best to deal with the following issues:

> 1) How to start emacs at the end of the header text when SLRN calls it up

Add the line 

set editor_command "emacs  +%d '%s'"

in your ~/.slrnrc, replacing any existing "set editor_command" line
already there. 

> 2) I set the wrap flags in SLRN but it still doesnt wrap the single
>    lines returned from emacs : a) how to get slrn to do the wrappibng
>    or b) how to get slrn to tell emacs to do the wrapping?

You need to tell emacs that you want auto-fill turned on when editing
buffers spawned by slrn.  Probably the simplest way in this instance is
to add the lisp function invocation to the above line, so it becomes

set editor_command "emacs -f turn-on-auto-fill  +%d '%s'"

If you need something a little better, there's a very nice piece of
elisp designed specifically for integrating Emacs with slrn, called
post-mode.  This is available as a Debian package, called
"post-el". Full instructions for installing it are included in the
package.

Before I started using Gnus, I used slrn with Emacs and post-mode, and
it worked pretty well.

> regards.

-- 
Neil.
Don't tell me that worry doesn't do any good.  I know better.  The things
I worry about don't happen.
		-- Watchman Examiner
Re: SLRN questions + emacs
#177008
Author: Walter Mitty
Date: Fri, 02 Dec 2005 15:43
42 lines
2453 bytes
Neil Woods wrote:
>>>>>>Walter Mitty writes:
> 
> 
>>Can anyone tell me how best to deal with the following issues:
> 
> 
>>1) How to start emacs at the end of the header text when SLRN calls it up
> 
> 
> Add the line 
> 
> set editor_command "emacs  +%d '%s'"
> 
> in your ~/.slrnrc, replacing any existing "set editor_command" line
> already there. 
> 
> 
>>2) I set the wrap flags in SLRN but it still doesnt wrap the single
>>   lines returned from emacs : a) how to get slrn to do the wrappibng
>>   or b) how to get slrn to tell emacs to do the wrapping?
> 
> 
> You need to tell emacs that you want auto-fill turned on when editing
> buffers spawned by slrn.  Probably the simplest way in this instance is
> to add the lisp function invocation to the above line, so it becomes
> 
> set editor_command "emacs -f turn-on-auto-fill  +%d '%s'"


I had tried this : it does not work. I'm stumped as to why. The line is 
begin recognised since the %d is doing its job : but lines are not wrapping.

I really dont want wrap mode as a default for all files so dont want to 
add the text hook in my .emacs.

I guess I have to either somehow pass the hook option in the command 
line or have slrn start emacs using a special init file where its done.

from the manual I expected "-f auto-fill-mode" on the command line to 
work but it didnt.
Re: SLRN questions + emacs
#177011
Author: SINNER
Date: Fri, 02 Dec 2005 16:50
21 lines
1959 bytes
* Walter Mitty wrote in news.software.readers:

[...]

>> set editor_command "emacs -f turn-on-auto-fill  +%d '%s'"


> I had tried this : it does not work. I'm stumped as to why. The line is 
> begin recognised since the %d is doing its job : but lines are not wrapping.

There must be a command line switch to tell emacs where to wrap, vim has
one and so it is included in my editor_command in the slrnrc.

I dont have emacs installed so I cant help.

If you switch to vi[m] let me know ;)
-- 
David
After twelve years of therapy my psychiatrist said something that
brought tears to my eyes.  He said, "No hablo ingles."
		-- Ronnie Shakes
Re: SLRN questions + emacs
#177024
Author: Lars Kellogg-Stedman
Date: Fri, 02 Dec 2005 17:11
15 lines
1831 bytes
> I really dont want wrap mode as a default for all files so dont want to 
> add the text hook in my .emacs.

I'm not emacs person but I'm sure you can add the text hook to your
.emacs file and only have it activate when editing slrn temporary files,
which can be identified by filename (e.g., /tmp/SLRN916DB792.0).

How to do this is probably better answered in an emacs newsgroup.

-- Lars

-- 
Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
This email address will expire on 2005-11-23.
Re: SLRN questions + emacs
#177017
Author: Blinky the Shark
Date: Fri, 02 Dec 2005 19:27
13 lines
1399 bytes
SINNER wrote:

> I dont have emacs installed so I cant help.
> 
> If you switch to vi[m] let me know ;)

http://blinkynet.net/comp/vi-man.jpg  :)


-- 
Blinky
Killing all Google Groups posts.  
http://blinkynet.net/comp/uip5.html
Re: SLRN questions + emacs
#177021
Author: SINNER
Date: Fri, 02 Dec 2005 19:40
16 lines
1763 bytes
* Blinky the Shark wrote in news.software.readers:
> SINNER wrote:

>> I dont have emacs installed so I cant help.

>> If you switch to vi[m] let me know ;)

> http://blinkynet.net/comp/vi-man.jpg  :)

Ehm, WHEN you switch to vi[m] that is :)


-- 
David
Q:	How many IBM CPU's does it take to do a logical right shift?
A:	33.  1 to hold the bits and 32 to push the register.
Re: SLRN questions + emacs
#177029
Author: Neil Woods
Date: Fri, 02 Dec 2005 20:42
52 lines
2596 bytes
>>>>> Walter Mitty writes:

> Neil Woods wrote:
>> You need to tell emacs that you want auto-fill turned on when
>> editing
>> buffers spawned by slrn.  Probably the simplest way in this instance is
>> to add the lisp function invocation to the above line, so it becomes
>> set editor_command "emacs -f turn-on-auto-fill  +%d '%s'"

> I had tried this : it does not work. I'm stumped as to why. The line
> is begin recognised since the %d is doing its job : but lines are not
> wrapping.

> I really dont want wrap mode as a default for all files so dont want
> to add the text hook in my .emacs.

> I guess I have to either somehow pass the hook option in the command
> line or have slrn start emacs using a special init file where its
> done.

> from the manual I expected "-f auto-fill-mode" on the command line to
> work but it didnt.

Yes, that's strange.

However, you can add this to your ~/.emacs

(defun my-slrn-mode ()
  (text-mode)
  ;; 
  ;; Add here any more functions, etc. you want
  ;;
  (auto-fill-mode 1))

(setq auto-mode-alist
      (append '(("\\.article"  . my-slrn-mode)
		("\\.followup" . my-slrn-mode)
		)
	      auto-mode-alist))

I'm assuming the names of the files above are correct. If not, it's easy
to change them.

Then add this to your ~/.slrnrc

set editor_command "emacs  +%d '%s'"

Cheers.
-- 
Neil.
The happiest time of a person's life is after his first divorce.
		-- J.K. Galbraith 
Re: SLRN questions + emacs
#177061
Author: Johan Bockgård
Date: Sat, 03 Dec 2005 21:26
17 lines
1757 bytes
Walter Mitty <mitticus@gmail.com> writes:

> Neil Woods wrote:

>> Probably the simplest way in this instance is to add the lisp
>> function invocation to the above line, so it becomes set
>> editor_command "emacs -f turn-on-auto-fill +%d '%s'"
>
> I had tried this : it does not work.

Try "emacs +%d '%s' -f turn-on-auto-fill"

Command line arguments are processed in order. `turn-on-auto-fill' has
effect in the current buffer.

-- 
Johan Bockgård
Re: SLRN questions + emacs
#177095
Author: Walter Mitty
Date: Sun, 04 Dec 2005 16:44
71 lines
3122 bytes
Neil Woods wrote:
>>>>>>Walter Mitty writes:
> 
> 
>>Neil Woods wrote:
>>
>>>You need to tell emacs that you want auto-fill turned on when
>>>editing
>>>buffers spawned by slrn.  Probably the simplest way in this instance is
>>>to add the lisp function invocation to the above line, so it becomes
>>>set editor_command "emacs -f turn-on-auto-fill  +%d '%s'"
> 
> 
>>I had tried this : it does not work. I'm stumped as to why. The line
>>is begin recognised since the %d is doing its job : but lines are not
>>wrapping.
> 
> 
>>I really dont want wrap mode as a default for all files so dont want
>>to add the text hook in my .emacs.
> 
> 
>>I guess I have to either somehow pass the hook option in the command
>>line or have slrn start emacs using a special init file where its
>>done.
> 
> 
>>from the manual I expected "-f auto-fill-mode" on the command line to
>>work but it didnt.
> 
> 
> Yes, that's strange.
> 
> However, you can add this to your ~/.emacs
> 
> (defun my-slrn-mode ()
>   (text-mode)
>   ;; 
>   ;; Add here any more functions, etc. you want
>   ;;
>   (auto-fill-mode 1))
> 
> (setq auto-mode-alist
>       (append '(("\\.article"  . my-slrn-mode)
> 		("\\.followup" . my-slrn-mode)
> 		)
> 	      auto-mode-alist))
> 
> I'm assuming the names of the files above are correct. If not, it's easy
> to change them.
> 
> Then add this to your ~/.slrnrc
> 
> set editor_command "emacs  +%d '%s'"
> 
> Cheers.


Perfect! Mayn, many thanks. No idea why the simple -f optin didnt work. 
While you're there, any idea to :

a) Have a default .slnrc
b) oa per newsgroup modifier for different reply templates etc



-- 
Science? Is there nothing it can't teach us?
     http://news.bbc.co.uk/1/hi/england/4487010.stm
Are you ready for this?  "Children who live or go to school near fast
food restaurants are more likely to eat there, a consumer report said."
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