Gnus development mailing list
 help / color / mirror / Atom feed
* I need to be able to remove delete-frame from the action list
@ 2002-03-06 17:08 Karl Kleinpaste
  2002-03-06 17:48 ` ShengHuo ZHU
  2002-03-06 17:48 ` ShengHuo ZHU
  0 siblings, 2 replies; 4+ messages in thread
From: Karl Kleinpaste @ 2002-03-06 17:08 UTC (permalink / raw)


I've been using this for a while, when operating under X:

(message-add-action 'delete-frame 'exit 'postpone 'kill)

Unfortunately, there appears to be no way to undo this addition to the
action list.  The problem arises when I have started XEmacs under X at
home, then go to the office where I ssh home and run "gnuclient -nw".
Now I have a tty-based XEmacs which nonetheless exits back to a shell
prompt any time I send a message.

What I would like is the inverse, message-delete-action, which I would
then use when detecting non-X use, to avoid the departure of my
tty-based frame.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: I need to be able to remove delete-frame from the action list
  2002-03-06 17:08 I need to be able to remove delete-frame from the action list Karl Kleinpaste
@ 2002-03-06 17:48 ` ShengHuo ZHU
  2002-03-06 17:48 ` ShengHuo ZHU
  1 sibling, 0 replies; 4+ messages in thread
From: ShengHuo ZHU @ 2002-03-06 17:48 UTC (permalink / raw)


Karl Kleinpaste <karl@charcoal.com> writes:

> I've been using this for a while, when operating under X:
>
> (message-add-action 'delete-frame 'exit 'postpone 'kill)
>
> Unfortunately, there appears to be no way to undo this addition to the
> action list.  The problem arises when I have started XEmacs under X at
> home, then go to the office where I ssh home and run "gnuclient -nw".
> Now I have a tty-based XEmacs which nonetheless exits back to a shell
> prompt any time I send a message.
>
> What I would like is the inverse, message-delete-action, which I would
> then use when detecting non-X use, to avoid the departure of my
> tty-based frame.

Add. But I think it is better to use the following code (untested).

(defun delete-frame-unless-tty ()
   (if window-system
       (delete-frame)))

(message-add-action 'delete-frame-unless-tty 'exit 'postpone 'kill)

ShengHuo



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: I need to be able to remove delete-frame from the action list
  2002-03-06 17:08 I need to be able to remove delete-frame from the action list Karl Kleinpaste
  2002-03-06 17:48 ` ShengHuo ZHU
@ 2002-03-06 17:48 ` ShengHuo ZHU
  1 sibling, 0 replies; 4+ messages in thread
From: ShengHuo ZHU @ 2002-03-06 17:48 UTC (permalink / raw)


Karl Kleinpaste <karl@charcoal.com> writes:

> I've been using this for a while, when operating under X:
>
> (message-add-action 'delete-frame 'exit 'postpone 'kill)
>
> Unfortunately, there appears to be no way to undo this addition to the
> action list.  The problem arises when I have started XEmacs under X at
> home, then go to the office where I ssh home and run "gnuclient -nw".
> Now I have a tty-based XEmacs which nonetheless exits back to a shell
> prompt any time I send a message.
>
> What I would like is the inverse, message-delete-action, which I would
> then use when detecting non-X use, to avoid the departure of my
> tty-based frame.

Add. But I think it is better to use the following code (untested).

(defun delete-frame-unless-tty ()
   (if window-system
       (delete-frame)))

(message-add-action 'delete-frame-unless-tty 'exit 'postpone 'kill)

ShengHuo



^ permalink raw reply	[flat|nested] 4+ messages in thread

* I need to be able to remove delete-frame from the action list
@ 2002-03-06 17:08 Karl Kleinpaste
  0 siblings, 0 replies; 4+ messages in thread
From: Karl Kleinpaste @ 2002-03-06 17:08 UTC (permalink / raw)


I've been using this for a while, when operating under X:

(message-add-action 'delete-frame 'exit 'postpone 'kill)

Unfortunately, there appears to be no way to undo this addition to the
action list.  The problem arises when I have started XEmacs under X at
home, then go to the office where I ssh home and run "gnuclient -nw".
Now I have a tty-based XEmacs which nonetheless exits back to a shell
prompt any time I send a message.

What I would like is the inverse, message-delete-action, which I would
then use when detecting non-X use, to avoid the departure of my
tty-based frame.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-06 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-06 17:08 I need to be able to remove delete-frame from the action list Karl Kleinpaste
2002-03-06 17:48 ` ShengHuo ZHU
2002-03-06 17:48 ` ShengHuo ZHU
  -- strict thread matches above, loose matches on Subject: below --
2002-03-06 17:08 Karl Kleinpaste

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).