Majordomo | 7 Dec 2008 06:27

Welcome to jed-users-l

--

Welcome to the jed-users-l mailing list!

Please save this message for future reference.  Thank you.

If you ever want to remove yourself from this mailing list,
send the following command in email to
<jed-users-l-request <at> mailman.jtan.com>:

    unsubscribe

Or you can send mail to <Majordomo <at> mailman.jtan.com> with the following
command in the body of your email message:

    unsubscribe jed-users-l

or from another account, besides geju-jed-users-2 <at> gmane.org:

    unsubscribe jed-users-l geju-jed-users-2 <at> gmane.org

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-jed-users-l <at> mailman.jtan.com> .
This is the general rule for most mailing lists when you need
to contact a human.

[Last updated on: Mon Feb 25 23:22:37 2002]
Share your ideas and your .jedrc with us!

(Continue reading)

John E. Davis | 7 Dec 2008 15:58
Picon
Favicon

Re: Status line

Duke <dukeofperl <at> ml1.net> wrote:
> I currently have my status line displaying the Row and Col Cursor
> position. I would also like to have the % of the file being displayed.
> %p gives me a fraction. Is it possible to display %p as a % only?

You would need to use the set_status_line function along with the %p,
%l, and %c format specifiers.

--John

Duke | 7 Dec 2008 22:16

Re: Status line

On Sun, 7 Dec 2008, John E. Davis wrote:

> Duke <dukeofperl <at> ml1.net> wrote:
> > I currently have my status line displaying the Row and Col Cursor
> > position. I would also like to have the % of the file being displayed.
> > %p gives me a fraction. Is it possible to display %p as a % only?
>
> You would need to use the set_status_line function along with the %p,
> %l, and %c format specifiers.
>
> --John

Here is my setup:

set_status_line (" Jed %v: %O %b (%m%n) (%l %c) %p %t", 1);

Here's what it gives me.

-------+ Jed 0.99.18:  ins .jedrc (SLang) (106 1) 106/387 2:10pm-----------
                                                  ^^^^^^^
                                       How do I change this to a %?
--

-- 
Duke Normandin
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

John E. Davis | 7 Dec 2008 23:51
Picon
Favicon

Re: Status line

Duke <dukeofperl <at> ml1.net> wrote:
> set_status_line (" Jed %v: %O %b (%m%n) (%l %c) %p %t", 1);
>
>
> Here's what it gives me.
>
> -------+ Jed 0.99.18:  ins .jedrc (SLang) (106 1) 106/387 2:10pm-----------

>                                                   ^^^^^^^
>                                        How do I change this to a %?

Put "LINENUMBERS = 0;" in your .jedrc file:

set_status_line

 SYNOPSIS
  Customize the status line of the current window

 USAGE
  set_status_line (String format, Integer flag)

 DESCRIPTION
  This function may be used to customize the status line of the current
  window according to the string `format'.  If the second parameter
  `flag' is non-zero, `format' will apply to the global format string;
  otherwise it applies to current buffer only.  Newly created buffer
  inherit the global format string when they appear in a window.
  The format string may contain the following format specifiers:

        %b   buffer name
(Continue reading)

Duke | 8 Dec 2008 02:26

Re: Status line

On Sun, 7 Dec 2008, John E. Davis wrote:

> Duke <dukeofperl <at> ml1.net> wrote:
> > set_status_line (" Jed %v: %O %b (%m%n) (%l %c) %p %t", 1);
> >
> >
> > Here's what it gives me.
> >
> > -------+ Jed 0.99.18:  ins .jedrc (SLang) (106 1) 106/387 2:10pm-----------
>
> >                                                   ^^^^^^^
> >                                        How do I change this to a %?
>
> Put "LINENUMBERS = 0;" in your .jedrc file:
>

I _had_ that set to 0.  However, I didn't notice an:

#ifdef IBMPC_SYSTEM

block that otherwise set LINENUMBERS to 1.

What can I say?  I'm getting old and can't see for looking! Thanks a
bunch for your help and patience.
--

-- 
Duke Normandin
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
(Continue reading)

Duke | 9 Dec 2008 05:01

Re: Setting the From: and Reply-to: Headers in Jed

On Thu, 4 Dec 2008, John E. Davis wrote:

> Duke <dukeofperl <at> ml1.net> wrote:
> > This message is being written from the Pine MUA using Jed in
> > mail_mode. However I would like to sometimes email stuff while in a
> > Jed session. Is there a way to set the subject headers in the various
> > jed comfig files?
>
> If you use jed's mailedit_mode, then you can customize the headers in
> a mailedit_mode_hook.  You can enable mailedit_mode via the mail_hook
> e.g.,
>
> define mail_hook()
> {
>    mailedit_mode ();
>    local_setkey ("mail_send", "^C^C");
>    local_setkey ("mail_kill_buffer", "^Xk");
> }

Unfortunately John, the above does not seem to work. I have:

define mail_hook ()
{
   mailedit_mode ();
   local_setkey ("mail_send", "^C^C");
   local_setkey ("mail_kill_buffer", "^Xk");
   variable SendMail_Cmd = "/usr/sbin/sendmail -t -oem -odb -f
duke0fperl <at> ml1.net";
}
%
(Continue reading)

John E. Davis | 9 Dec 2008 05:30
Picon
Favicon

Re: Setting the From: and Reply-to: Headers in Jed

Duke <dukeofperl <at> ml1.net> wrote:
> define mail_hook ()
>{
>    mailedit_mode ();
>    local_setkey ("mail_send", "^C^C");
>    local_setkey ("mail_kill_buffer", "^Xk");
>    variable SendMail_Cmd = "/usr/sbin/sendmail -t -oem -odb -f
> duke0fperl <at> ml1.net";
>}

When you declare a variable inside a function, it becomes local to the
function.  The SendMail_Cmd and MailEdit_Reply_To commands need to be
made global:

  variable SendMail_Cmd = 
     "/usr/sbin/sendmail -t -oem -odb -f duke0fperl <at> ml1.net";
  variable MailEdit_Reply_To = "dukeofperl <at> ml1.net";

  define mail_hook ()
  {
     mailedit_mode ();
     local_setkey ("mail_send", "^C^C");
     local_setkey ("mail_kill_buffer", "^Xk");
  }

> When using Jed from within Alpine, (jed %s -tmp --mailedit-mode),
> again the mode in the status line shows up as "Text" instead of
> "mailedit".

How is Alpine calling jed?  Does it substitute "%s" by the name of the
(Continue reading)

frank | 10 Dec 2008 17:39
Picon

redirecting rgrep output


I failed repeatedly getting the output of
jed's rgrep into a disk file. I issue from jed
a shell command like

     rgrep -l 'any' * > g_result.tmp

but the output goes to the shell-output buffer,
not to the specified disk file.

What am I doing wrong?

-- frank

John E. Davis | 10 Dec 2008 19:36
Picon
Favicon

Re: redirecting rgrep output

frank <ls199mp1505 <at> shaped.dsl.eca.co.za> wrote:
> I failed repeatedly getting the output of
> jed's rgrep into a disk file. I issue from jed
> a shell command like
>
>      rgrep -l 'any' * > g_result.tmp
>
> but the output goes to the shell-output buffer,
> not to the specified disk file.
>
> What am I doing wrong?

Are you running this on windows?  On windows, the only shell that is
universally available to interpret the command is is cmd.exe.  It gets
invoked via

   cmd.exe /c rgrep -l 'any' * > g_result.tmp

This is analogous to the Unix version, which is

   sh -c rgrep -l 'any' * > g_result.tmp

I believe that while `sh` understands the redirection operator,
`cmd.exe` does not when used this way.  You can test this hypothesis by
running the shell command

    echo rgrep -l 'any' * > g_result.tmp

If "rgrep -l 'any' * > g_result.tmp" appears in the buffer, then that
is the problem.
(Continue reading)

frank | 10 Dec 2008 23:05
Picon

Re: redirecting rgrep output

John E. Davis wrote:

> Are you running this on windows?  

Ubuntu 8.10, text console. But I have now tried it
on Ubuntu 7.10 and it works. With one exception:

	rgrep -D * > d_result.tmp

gives

	grep: unknown devices method

while the same without redirection to a file also works.

The lesson seems to be: keep you fingers off Ubuntu
in the first 3 months after any release.

Thanks!

-- frank


Gmane