zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: zsh-3.1.9-dev-6 crashes occassionally
Date: Wed, 1 Nov 2000 10:33:12 +0100 (MET)	[thread overview]
Message-ID: <200011010933.KAA03826@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Mon, 30 Oct 2000 16:18:08 +0000


Bart Schaefer wrote:

> ...
> 
> One other item of note:  For some strange reason, it's not possible to
> alter TRAPxxx functions with "zed -f".  They come up in the editor, and
> if you create one from scratch it sticks, but no changes that you make
> to an already-existing TRAPxxx function are remembered.  No matter how
> you exit zed, they always revert to their previous value.

It's pretty obvious if you look at zed. It calls $cleanup at the end,
which contains the output of `trap'. And hence it resets all trap
functions.

This should fix that. It doesn't fix the bug that one can't edit
TRAPINT and TRAPEXIT (which are used by zed), though. Hm.

Bye
 Sven

Index: Functions/Misc/zed
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/zed,v
retrieving revision 1.3
diff -u -r1.3 zed
--- Functions/Misc/zed	2000/07/27 08:14:54	1.3
+++ Functions/Misc/zed	2000/11/01 09:30:00
@@ -55,7 +55,7 @@
     var="$1() {
 }"
   fi
-  vared var && eval function "$var"
+  vared var && eval "$cleanup ;" function "$var"
 else
   [[ -f $1 ]] && var="$(<$1)"
   while vared var

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~2000-11-01  9:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200011010933.KAA03826@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).