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 1554 invoked from network); 19 Oct 2022 09:18:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Oct 2022 09:18:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666171083; b=k2TJ0pL9d/tLLQ1DV3oRPtaZzMC0awwh9IGV0ztaG1GKoSF68p+O+RgquogBwKCHIsmAR+bmkJ 2NPmsM0b6sdTkDR3pk6d/iRfxoMuxn84ZhTzHnwn6gKKcH/4E++ukNd1eHglLGkkqVcDgo3o0Q mhsDOtE7vmQd91nuNT5G8ONgJEQ+DGYamFz+KF2kFpld8csWa+zffIYourH2DS7CfKq6/Tl91I SAd5ueZuyxDMincCDxG8UgDwDeejw17tm/kpLAYsSC/8UeAZ3zF/psK4rmjnTTpa5B+uZ0S6Ne QAhQlNeUxwikQBp7TSwMmGiZHyLZZCgX47Hzv6n+KazI2Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd00005-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.5; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666171083; bh=6kC7DZJibQBebvHzeFyUDfqybOV8Kha0cBimtgZbFrY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=MLhnEv7HVsuPZpNh89gkhh2W9xNVip+9WMsEOyNCuTvMJlHrIVcuUB4f7x1acnURmRsXZ8mJSi n140C1lTsmShjkklU1gGgeOdUbzQ5N8Qs7nHQUcq968k7I44j8LViGPGvyChAG5djlQr5CW7U/ EG/zFwt2XwQRgFlB/T7RKH1s3o4iVgHEb9/BZIsepB3L25QVkQWLhjpVEMjyS0HS3i0uDZh1VZ 6yBQNG9QSjbfU+r6XX6J+bogQHA6XJUwi8WRH3AM35s8QT/iI7IZfk0v4C3VDYYsS6vNKbOzBx i9eNq9mKOpU5IUvSBTiP543ulk0oIpcHvLJrb//daQ9FPA==; 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:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=rm02QECl2iMOcHyOWdH2fOQhCL2s1UJy7uiY+5OV7Vc=; b=XRGRZ+3rW3UhXQB9RPI2/WFhtg ShqLhMxxZ4qPRc9o4fhzUF0xBHASfPqcZVSDkVTA8RsQGcRLtn0kDuwTrqwRljZ7qFq2VfIuq/NYF 8Lp4n7Xm7QHRPUOouH1anHrihb7McdcvhHhfRdbFhyfAVj1yFm44qah5ON2Ql0Y1jjdu8J1TwOMaI vMm9txUIGkbDKlEu2FXievs5BQ2TNu5f5pxapB6UmA9Tf1E4lpIN8YChziBEf7IXVVlBzZt6WlyIq qYL8UNhPxhywPFp3kcbfNQKSmMI3OUbPv5BsSdD4C/XpaMh9HNF0b52mss0PGqgWHHBYWdqTzrENZ 61TPMkuA==; Received: by zero.zsh.org with local id 1ol5D9-0006RC-53; Wed, 19 Oct 2022 09:18:03 +0000 Authentication-Results: zsh.org; iprev=pass (snd00005-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.5; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd00005-bg.im.kddi.ne.jp ([27.86.113.5]:20321 helo=dfmta0008.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ol57u-000607-Tu; Wed, 19 Oct 2022 09:12:42 +0000 Received: from mail.biglobe.ne.jp by omta0008.biglobe.ne.jp with ESMTP id <20221019091233048.SOIB.98612.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Wed, 19 Oct 2022 18:12:33 +0900 From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH] out of memory error after "edit-command-line" Date: Wed, 19 Oct 2022 18:12:32 +0900 References: To: zsh-workers@zsh.org In-Reply-To: Message-Id: <16F15191-2C2A-4292-8DC7-7134C024E417@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 50792 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: > 2022/10/19 0:07, Jun. T wrote: > > EMACS/VI: > % bindkey -v > % () { setopt localoptions emacs; } > % (still using emacs binding) > We need to restore the keymap in doshfunc() as in dosetopt(). Sorry, I reconsidered this. zle builtin has an option '-K keymap' to temporarily change the keymap. I think users need not (or should not) use 'setopt localoptions emacs'. Use of EMACS/VI should be highly discouraged, since turning them off has no effect, and they are meaningless if a user-defined keymap is in use. Moreover, even with my patch, the following does not work: % export VISUAL=vim % zsh -f % (vi keymap, but VI is not set) % () { setopt localoptions emacs; ... } % (now emacs keymap) Instead of fixing this problem, I feel it is better to do nothing for 'setopt localoptions emacs'. Then keymap is not restored, but we can just say "please use zle -K". Maybe we can add some more comments to the description of EMACS and VI options in zshoptions(1), indicating that use of these options is _highly_ discouraged. Or should we try to restore the keymap?