Re: 'browser' - what is it?

2000-05-13 Thread Michael Tatge

On Sat, May 13, 2000 at 11:43:52AM +0800, Greg Matheson wrote:
 On Fri, May 12, 2000 at 05:00:37PM +0200, Michael Tatge wrote:
 
  On Fri, May 12, 2000 at 08:57:40AM +0100, Chris Green wrote:
   In general I think I'd prefer the browser to *always* start from
   $folder...
 
  There is a rather uncomfortable way to achieve this. Type
  c?cPath/to/folder
 
 And this could be made a folder hook, couldn't it.

Unfortunately the change-dir prompt can't be overtyped as it is with
the change-folder prompt. Does anybody know the reason for this?
Currently you would have to delete the string at the prompt first which
is kind of difficult within a macro.

A very clumsy way to do it would be
macro index key c?cbackspacebackspacebackspace...[as often as
needed]/path/to/$folder\n

 I had the opposite problem. I wanted to get back to the place in the
 mailboxes screen I had just been so I now have 38 folder-hooks in my
 .muttrc of the form:
 
 folder-hook . 'macro index h change-folder?tabjumpenter0enter'
 folder-hook '!' 'macro index h change-folder?tabjumpenter1enter'
 folder-hook =tn 'macro index h change-folder?tabjumpenter2enter'

I'm not sure if I understand you correctly. This way to are only able
to go from one folder to a specific other one. So
folder-hook =tn 'macro index h c=whatever mailbox #2 is in you example'
would do the same, right? In this case I would prefer changing
mailboxes manually rather then having a lot folder-hooks. But that's
certainly personal stile.

Michael
-- 
Swap read error.  You lose your mind.

PGP-fingerprint: DECA E9D2 EBDD 0FE0 0A65  40FA 5967 ACA1 0B57 7C13



Re: C-c C-c

2000-05-13 Thread Stephane Payrard

On Sat, May 13, 2000 at 06:23:58AM -0600, Charles Curley wrote:
 On Fri, May 12, 2000 at 11:32:57PM -0400, Jonathan Pennington wrote:
 - Again with the lost configs. I used to just type that sequence after
 - writing an email and emacs would save and exit, automagically
 - releasing control to Mutt. Unfortunately, now I have to explicitily
 - exit before continuing. Does anyone know what I want to adjust to
 - make the sequence C-c C-c (or any sequence for that matter) do this
 - automagically again? I know that this is really a .emacs question, but
 - I thought it was in post.el, so it's a Mutt specific .emacs question
 - :-)
 
 Rather than firing up Emacs and exiting it every time you want to use it,
 fire up Emacs once per login and shut it down when you log out. It means
 access to files is much faster.
 
 In Mutt, set your editor to emacsclient:
 
 set editor="emacsclient"  # editor to use when composing messages

You can also set the VISUAL or EDITOR variable that buy you the same
feature (popping a emacs buffer to edit stuff) for many tools at once.

 
 and use C-x # to exit. You can do other tricks by building an elisp
 function which would call "server-exit", the function C-X # calls. For
 example, one of these days I will get around to writing a function like

you also need the following line in ~/.emacs to enable the server part
at emacs startup:

(gnuserv-start)



-- 
  Stéphane Payrard
   email   : [EMAIL PROTECTED]
   portable: 06 60 95 82 69
  



Re: C-c C-c

2000-05-13 Thread Charles Curley

On Fri, May 12, 2000 at 11:32:57PM -0400, Jonathan Pennington wrote:
- Again with the lost configs. I used to just type that sequence after
- writing an email and emacs would save and exit, automagically
- releasing control to Mutt. Unfortunately, now I have to explicitily
- exit before continuing. Does anyone know what I want to adjust to
- make the sequence C-c C-c (or any sequence for that matter) do this
- automagically again? I know that this is really a .emacs question, but
- I thought it was in post.el, so it's a Mutt specific .emacs question
- :-)

Rather than firing up Emacs and exiting it every time you want to use it,
fire up Emacs once per login and shut it down when you log out. It means
access to files is much faster.

In Mutt, set your editor to emacsclient:

set editor="emacsclient"# editor to use when composing messages

and use C-x # to exit. You can do other tricks by building an elisp
function which would call "server-exit", the function C-X # calls. For
example, one of these days I will get around to writing a function like
that which calls spook:


supercomputer domestic disruption Uzi Ft. Meade World Trade Center Legion
of Doom DES Qaddafi NORAD fissionable SDI nuclear kibo munitions CIA


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Re: C-c C-c

2000-05-13 Thread Holger Lillqvist

On May 12, Jonathan Pennington wrote:
 Again with the lost configs. I used to just type that sequence after
 writing an email and emacs would save and exit, automagically
 releasing control to Mutt. Unfortunately, now I have to explicitily
 exit before continuing. Does anyone know what I want to adjust to
 make the sequence C-c C-c (or any sequence for that matter) do this
 automagically again? 

To skip the prompt you might use something like this:

(defun exit-save-all-yes ()
  "Exit emacs and save all buffers without prompting"
  (interactive)
  (save-buffers-kill-emacs t))
(global-set-key "\C-c\C-c" 'exit-save-all-yes)

-- 
Holger [EMAIL PROTECTED]



Re: 'browser' - what is it?

2000-05-13 Thread Stefan Bender

Hello,

Michael Tatge wrote on Sat, May 13 2000 16:51:34:
 On Sat, May 13, 2000 at 11:43:52AM +0800, Greg Matheson wrote:
  On Fri, May 12, 2000 at 05:00:37PM +0200, Michael Tatge wrote:
  
   On Fri, May 12, 2000 at 08:57:40AM +0100, Chris Green wrote:
In general I think I'd prefer the browser to *always* start from
$folder...
  
   There is a rather uncomfortable way to achieve this. Type
   c?cPath/to/folder
  
  And this could be made a folder hook, couldn't it.

[...]
 A very clumsy way to do it would be
 macro index key c?cbackspacebackspacebackspace...[as often as
 needed]/path/to/$folder\n

Can't you use ^u for this? Afaik it deletes the whole line at once.
I looked it up, the function is called kill-line, defined in
functions.h.
So the macro would be

macro index key c?c^u/path/to/$folderenter
or
macro index key c?ckill-line/path/to/$folderenter
(just tested :)

Regards, Stefan.

-- 
On-line, adj.:
The idea that a human being should always be accessible to a
computer.



Re: 'browser' - what is it?

2000-05-13 Thread Adam Lazur

Michael Tatge ([EMAIL PROTECTED]) said:
 Unfortunately the change-dir prompt can't be overtyped as it is with
 the change-folder prompt. Does anybody know the reason for this?
 Currently you would have to delete the string at the prompt first which
 is kind of difficult within a macro.
 
 A very clumsy way to do it would be
 macro index key c?cbackspacebackspacebackspace...[as often as
 needed]/path/to/$folder\n

Emacs keybinds would allow you do do something like:
macro index key c?c/path/to/$folder\n

where the above has a literal ^A and a ^K inserted (dunno how you do
it in emacs, in vim it's ^V^A) to jump to the beginning of the line
and to cut the rest of the line.

.adam

-- 
[ Adam Lazur | Computer Engr Ugrad | Lehigh Univ. |   _ __  ]
[icq 3354423 | http://www.lehigh.edu/~ajl4|__( | /_ ]
"Fear leads to anger. Anger leads to hate. Hate leads to using Windows
 NT for mission-critical applications."-- What Yoda *meant* to say




Re: [sureshr@staff.juno.com: [LIH] HELP: Weird date format in mutt 0.95.4i]

2000-05-13 Thread David T-G

Suresh --

...and then Suresh Ramasubramanian said...
% On Sat, May 13, 2000 at 11:37:12PM -0400, David T-G typed:
% 
%  ... but my vague recollection is that 0.95.4i already had the mutt_dotlock
%  program so that mutt itself could run without special perms -- and so
% 
% I tried compiling a later version of mutt (1.1.19i) on my office box
% (solaris 2.6) - it refused to be made.  I just have to edit the makefile
% a bit (I don't have write access to /usr/bin or /usr/local/bin, naturally)

Try setting the prefix when you configure, as in

  ./configure --prefix=$HOME/local

where "$HOME/local" is the parent of your bin/lib/etc/man tree, like
/usr/local would be...


% 
% Lemme see ...
% 
% thanks!

HTH  HAND


% 
% -- 
% Suresh Ramasubramanian | sureshr at staff.juno.com
% Any clod can have the facts, but having opinions is an art.
%   -- Charles McCabe


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: 'browser' - what is it?

2000-05-13 Thread Greg Matheson

 On Sat, May 13, 2000 at 11:43:52AM +0800, I wrote:

  I had the opposite problem [to Chris Green who always wanted
  the browser to go back to $folder, rather than the last
  directory he had been in]. I wanted to get back to the place
  in the mailboxes screen I had just been ...

So,
  folder-hook . 'macro index h change-folder?tabjumpenter0enter'
  folder-hook '!' 'macro index h change-folder?tabjumpenter1enter'
  folder-hook =tn 'macro index h change-folder?tabjumpenter2enter'

On Sat, May 13, 2000 at 04:51:34PM +0200, Michael Tatge wrote in
reply:

 I'm not sure if I understand you correctly. This way to are only able
 to go from one folder to a specific other one. 

That's right. The same one. From the one in the index to the same
one in the mailboxes screen. That's the way I want it. When I go
from the index to the mailboxes screen, I want the cursor to be
on the folder whose index I was just looking at, the same way
when you go from looking at an email in the pager to the index,
you get the index corresponding to the folder the email was in. 

Without these macros, change-folder?tab always puts the cursor
back on the first mailbox, usually the spoolfile.

 So folder-hook =tn 'macro index h c=whatever mailbox #2 is in
 you example' would do the same, right? 

No, this would put you in the index screen not the mailboxes
screen. It would be the index for mailbox #2, which
is just =tn in my case, so would do nothing. 

I use the mailbox screen to work through the new emails I get in
order. It gives me a rough idea of how much new email I have.
Another good thing to have would be numbers of mails like there
are in the index, but I am prepared to do without.

-- 
Greg Matheson  Learn a third language 
Chinmin College, Taiwanand be born again again
[EMAIL PROTECTED]   




Re: C-c C-c

2000-05-13 Thread Jonathan Pennington

* Charles Curley [EMAIL PROTECTED] [000513 16:15]:
 Rather than firing up Emacs and exiting it every time you want to use it,
 fire up Emacs once per login and shut it down when you log out. It means
 access to files is much faster.

I don't log out. Server is up 24/7. Problem is that I don't
want to have to worry about an emacs session being open to run the
client. I do many things at once, and if I accidently close emacs, I
have to restart it to get my email. Dual Pentium II processors with
3 128M ram sticks on a SCSI system. Two iterations of SetiAtHome
(1/CPU), Lyx, Netscape (memory hog) and multiple small stuff running
on one of 3 screens, Emacs starts with no noticable delay even if an
Emacs window *is* open. There's a small delay if Blender or GRASS is
running on a screen. Faster? That's not my problem. No simple laziness
is my problem. It's just too difficult for me to type three control
sequences when I can type two :-) My hands are used to two, and I
don't want to change... Unless, of course, I can type just one :-) 

What did Larry Wahl say about laziness? Unfortunately, I don't know
lisp.

-J



Re: [sureshr@staff.juno.com: [LIH] HELP: Weird date format in mutt 0.95.4i]

2000-05-13 Thread David T-G

Mrinal --

...and then Mrinal Kalakrishnan said...
% Hi,
% 
% My friend has a problem with an old Mutt version (0.95.4i), our
% timezone is +0530, but it displays it as +051800.
% 
% Other than updating mutt, is there any fix for this?

As you've seen, the fix is to get a new mutt ...


% 
% - Forwarded message -
% 
% From: Suresh Ramasubramanian [EMAIL PROTECTED]
...
% 
% I have mutt 0.95.4i (yeah, ancient) in my office (and am not root, so
% can't update it) :(

... but my vague recollection is that 0.95.4i already had the mutt_dotlock
program so that mutt itself could run without special perms -- and so
one could just compile the new sources yourself, install the new mutt
somewhere in your path before the old mutt, but happily use the old
mutt_dotlock for locking, and forge ahead.


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature