From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4760 invoked from network); 18 Oct 2022 20:09:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Oct 2022 20:09:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666123758; b=Rdv7AqXLRkEch4BJYzPHbyhIcav25wsXWgjUTd/OEafwvJpwEMy1C9+HE8SOm1GzS+I2/P3LsY XV1YwEeF43KAn8F9llxEe3uepF8cfe/aEpOd21aSleeMloCGVozGxS2yBJcC1WE1dkVdoRTnLV FXstqgqBLU1NwIlI29Zgg24/LFW4xtWEB+8AALy3jQSGOtOKHfRaMqPSC8EJUfkJjYELd/HYD9 58XXgsPNfSWjoTBwPoLfjDrmU7Ro84dDnfNIjYgxpfte1AI8CVTWdHnC5hAtuwCnq/qSCKo48j yduCO2HKf5ZepS1OYp0sWLPpwLa0Gqh7ZwUtyDGOPytnXA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f44.google.com) smtp.remote-ip=209.85.218.44; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666123758; bh=hrrMdMmPD5Zot2zzv7cMrbfm54fwwZJ+ZiR3ouTiXPY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=DTpnHbWB184OFVTCBklQ6ZXrfcfRHsm/DPQRKE7FIcsHAXQWiP+0doGkdYeytlukMJV9hUSR1Y idwN+jyuMfAKs0bgH7zGF7XZMbYYM1SOqlWmN+3gJF3VunZlYzhqaatyW1fsrVklAK858mZOpW ghxblKv4LZKtG62Kg/4YeHFif/ussUJrELLX/w+0s8n93LIpxvzvFsrgep9djf92vGedNm5yC2 giTRlZGVwjyJGf+dD/MixxI6OhPr0UpwFdrVdB5K8NPtL/dQFJL8QoUmRdwKd4+mhI8r2gzxQ8 Sp7fQ5ezPyzPir1YSm18/eoxA6armf48TldvzNo8CSWOlw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=KHTbYqQ0ICpQkvryXknj5qoAQw9P+3soNz+vbxEI3xA=; b=PCk9qTDG9D7M64PMLiHOJXD/cX u/6Syx7I0aFC628TDd8K6T77DZC2pm4mYh1o9em6hZPO7C8fa8cgpAq4bifeSh3cUrj5GOAmguyAH C66RZxIsPTHNxmm3LJFXB10o4AEjXlwuHHlZTA0XKUKG7ajfPGZIAtlWI6UWQcfKICOdMXvHvCIv7 YU+JPIErAb90LDzAyYn80WROnN0e+mzyo3sRfaukV9xlo9jCF2xZBzFJ5UULFzW1+0VAqpljeg+SL 2O1tmuGgyXAMqG6FGCAE6DIvlevA1c996KrYDADGGv3b5KPQizHlmlJ7JCg0Rin2PiyxXJ4yWgJ6I S0SLeQpA==; Received: by zero.zsh.org with local id 1okstp-0007BH-Nx; Tue, 18 Oct 2022 20:09:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f44.google.com) smtp.remote-ip=209.85.218.44; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f44.google.com ([209.85.218.44]:39476) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1okstV-0006rN-KU; Tue, 18 Oct 2022 20:08:59 +0000 Received: by mail-ej1-f44.google.com with SMTP id b2so35046207eja.6 for ; Tue, 18 Oct 2022 13:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KHTbYqQ0ICpQkvryXknj5qoAQw9P+3soNz+vbxEI3xA=; b=EsPt642dqHhqLHsDMllA8f6YTKY0MFY4Dtn6ZB70eke6LAKFUxG1CX/hzBnauAmIYU 6c86S7SziC0QlOON91xljUhpGGK/necCZL9Dnbvt0xiwbXj3G9Y5UXM0o5rrMwVf2fHh E7VnFStK1Jv11ggerWboadAk0U183GYQGOcJtTIOJwB8xeD17Y+BXDwii9X6q6BswEnv 65ac71xrpiuoyz2oxlCHkOLuGyAIAJcusgo4rh9s6RjXxj/qLE+Hrva/dZye9OufDt7w 5Z6N0wQ+UyOLZEtSR+UaqZ7G6GgvafBGJgRLx1hHFwrq9fkZCAE5ThWArggvjkwot1bu 5+qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KHTbYqQ0ICpQkvryXknj5qoAQw9P+3soNz+vbxEI3xA=; b=VgCGHRlmhooWuTu/YJWnKDofUB4iiwhUvPj5XoWtdiW56kf4QTIJerYGy9Yr7on+J9 JyzrML1AsHpYf6aceKyf+MuDPRXViyJJd4izBkoNhe+CS+AkWduRByZaxHUAZWRzp5gS aH9ozTNPEf3h9m89KdYkrVV3IdsVv9HTgY937kXgWjgbPtfctcDS5ibIepe1q4uHciUM 4U6ImpevC5Y+VEHLA3AMvXtVC8gwqSLjN6w/kcRu9SzJ1Ivcc0ZhzhKO3PPLo7asLaRg B9hFCRG1tZsntMCKmL6J+XgzhTneq/cmKNaekDJ/GmzB/mXRetfwoEHnqKerCgn5uPV0 FfaQ== X-Gm-Message-State: ACrzQf2IjE7rQeJHzfcYlyxfJMj7uqx+ssEj0tPYVj+hQcSWl0m+IWub inG73CvmIComFisHC5kfAoe2aSQkQ12u5FXLuk3jRQ== X-Google-Smtp-Source: AMsMyM7Vd5+nW1ZCh0X+zKRuMtT0bJP4hj+rTFIA1dqzPbtgGgyGq0JbIWflRKdCgPlWRsDhkjF3QE7MaHSoV36jJsI= X-Received: by 2002:a17:906:8a51:b0:78d:acdc:b7d3 with SMTP id gx17-20020a1709068a5100b0078dacdcb7d3mr3849831ejc.214.1666123737194; Tue, 18 Oct 2022 13:08:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 18 Oct 2022 13:08:45 -0700 Message-ID: Subject: Re: [PATCH] out of memory error after "edit-command-line" To: "Jun. T" Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50790 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Tue, Oct 18, 2022 at 8:08 AM Jun. T wrote: > > dosetopt() has the extra code only when setting MONITOR to ON. > so again just opts[MONITOR]=on is enough in doshfunc().... Is this correct? Hm, the shell having acquired the process group when MONITOR turned ON ... I don't know of any way to relinquish it again. So either this has to change in dosetopt() as well if it's even possible, or doshfunc() is OK. > The patch below forces 'bindkey -e/-v' to set the option EMACS or VI. > Is this OK? The only possible reason I can think of why this would not be OK is that it will change the output of "setopt" when its "form is chosen so as to minimize the differences from the default options for the current emulation". That seems a pretty insignificant issue, but might warrant mention in NEWS or even in the incompatibilities section of README. > I _hope_ there is no other option that require extra code in doshfunc(). The only ones I was worried about seem to be in the set of those that can't be changed after startup, or that can't change back again (PRIVILEGED, RESTRICTED).