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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11650 invoked from network); 15 Nov 2020 19:45:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Nov 2020 19:45:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605469519; b=FZR1MgOWWnXK0qGBsEFL9bJrgy0HQ1uLwnrPnAw7AKVgeN3NBclsM1ofV6EyPNA82+2vA6O+dl yY2TI2YWwaic791dLHwFYUqLQn6Ps5VoOI/U8bCM6UYh4gvkPOkWI5Iuqu/2gXQVTN3na6JVRy tPsDMtEOLl29uOTaQHrHyeh/7p9Sb88buqxCJ4k4hwZMhXSe02iaUhkpIyBgKihi09NcK8rHBW A20GYaELa+loVgnclCHaxBej1IZ9Kvz+11nCdm0YGUuqsnbYfO1VZ2NF72QzI34dOUDOotvOFU EoTe5z+Y8WuSNNKZRGOPs0jnNNW2AeC4XNrRBnkkxza7bQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f48.google.com) smtp.remote-ip=209.85.210.48; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 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-20200801; t=1605469519; bh=YP4rFvBEVFDErLcrk/pHTF8vMaWPV4ad4Ex1etCDaxg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=Ej88vbfvnxo2HHrQzROp/JyVsmYMnq9J2bo0rEOJxBjM14Pc1sZLJShExtfZBuG+9jL2R5Z8El 42H3ytkh1fYxOzRTzrc+I8/yac+y+Wr4YYOmu9lOw3MkCp9ZmyKs2stDm8di+RyAqWLnuHWLSO B8pbMzx7Pj2hWDOUXZ+eakNmNTaGbLolrIR7Z0q3bO2fylC8ygiXRjmYOCgyitdXigz5jl8Dat IP5MqDKD4HBppaD0k3MNTAWuiKFZGxYEywj0pJon4+dX1bUEJT0IBYHTMkkNiP+AHFnDLURyGE 1TsJXOPDWoQDKw/R0XflVg9uWfndhuDZ7LdNfjJVd2qFaA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2QoflxOArYEe7SliDqb2YKTFfbEwh3p3j17sFf58TUI=; b=bu/avqpUv1cTsaEqIFfU2svQRT Vtc5XlX3OVyXFWF7SRzg6ZHjMMPzqFP+SJb+Xh6VVuNg4E6s3/A6CH2MWdNJyvS6jb/VhY3JT79a3 tEv9hC3W142shrsBY6Fw2a2HZkZDL49aRCkvD6ght9FRyNMlOAi4OSVou2xX9JYI6zP3FXdx4geIu DqNjEEp6YkuD1m2l/BW5Kkrs6H1al28vZilbS8QPyD5mQjDb6bzBrK99aXngeMfIVfhNIx+tc8ubP AcsdT7FJfkx/+eYGr70BUH229UT7MKQs+ycnLDYx1j/qJRWSwev9gDZVTUoYSnCTTtmxoz2m5aXFH U53yEb8w==; Received: from authenticated user by zero.zsh.org with local id 1keNxd-000Pme-0e; Sun, 15 Nov 2020 19:45:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f48.google.com) smtp.remote-ip=209.85.210.48; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f48.google.com ([209.85.210.48]:38165) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1keNxL-000Pcj-QI; Sun, 15 Nov 2020 19:45:01 +0000 Received: by mail-ot1-f48.google.com with SMTP id a15so13933620otf.5 for ; Sun, 15 Nov 2020 11:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2QoflxOArYEe7SliDqb2YKTFfbEwh3p3j17sFf58TUI=; b=r/DdF9N3bnkpbLVSAuJMRFYwhV+qdvZJ49lGq8gAMa9IZS7K+yos0idqjDn2tQV4yI fGbsb+gKAyVXliOlfodOdwvUsdIBihzjKWd3YyqAzOj1bp97V0tOlxJrv+M3n/HYwKFn PQYODH4UlnDQFnPY+H9ETEcnB+GjH3/n4ddP31u/2Oc8zVPBeM8Q2fre0jjBf3yj/pF0 qXHDznNy6M5sj8n0qDF2bsDdXXq24cxHnfxZTNMNChT6oEZRCIzgEGjvvdEM+72rVeoe i3W01r4T+NgyauHYb8DZs4mnlcXm6mbqH7lCu6fMvkK+U4GeSjpKIIX8REQaM4qhev1f Or0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2QoflxOArYEe7SliDqb2YKTFfbEwh3p3j17sFf58TUI=; b=Gxo28cUV4Q8uVNvNks3QPlgxuxkcgic6j2l+Ikfdp0OZ0DHWZIZH26/wmpzJIZCogH LJQHjZlaCxJCaB94dxe8Z2SGN8bLs/1TjoAyEW8A09lOF390FygGJNOozgwr+9CYsx7W pfLmFPBsqSFUEZvmx4zVPiWJQGQwwP3exdf8fHL4rE5tT15Pdw0+XWDHQm0qzIz7wuwO wYqFaZc9H2t9ma+GaUZMSLevwuCHgZbw/6w5BiKhBWaU5en+demOlNG+rSPe9BV52sp9 tDkJKU8sG7xTDMxr3rnaD0arYMN8jLU6RxgSqlxp90PqDAlsVUUdQqIXZ6R4YEfFdU0m ky4g== X-Gm-Message-State: AOAM530Bc4dRApnWctuUx+KgVn3tjRn62aQMlbRnggl7sjEzsbE1PBwT iacggf7HdWW9Sm/vVbkYapSphjtJQt5DCgybeDNmMw== X-Google-Smtp-Source: ABdhPJxf17NWI/rUxVZzLKRdRtzCtpd6/48nc7nNc9MfaW+WYK3Iq58WetPoYyVs1Qfz0ubWOaB6LkiPN2YRCalzuX4= X-Received: by 2002:a9d:470c:: with SMTP id a12mr8731297otf.161.1605469498220; Sun, 15 Nov 2020 11:44:58 -0800 (PST) MIME-Version: 1.0 References: <1177177665.5499794.1605395141729.ref@mail.yahoo.com> <1177177665.5499794.1605395141729@mail.yahoo.com> In-Reply-To: <1177177665.5499794.1605395141729@mail.yahoo.com> From: Bart Schaefer Date: Sun, 15 Nov 2020 11:44:47 -0800 Message-ID: Subject: Re: quick bugfix for sticky-note To: vapnik spaknik Cc: Zsh Hackers List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 47563 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: Archived-At: On Sat, Nov 14, 2020 at 3:06 PM vapnik spaknik wrote: > > The problem is that sticky-note resets all options which means that flowc= ontrol is enabled and so pressing ctrl+s overrides any keybindings and stop= s output. I can't see any reason for needing this behaviour, so a quick fix= would be to just add 'noflowcontrol' to the 'setopt' line near the start o= f the function. Hm. The problem with that is that people who want flow control suddenly lose it. The doc for "emulate" says: If the -R switch is given, all settable options are reset to their default value corresponding to the specified emulation mode, except for certain options describing the interactive environment; I wonder if flowcontrol should be considered an option "describing the interactive environment" and therefore should not be reset by "emulate -R". That would be a change to long-standing behavior, of course, but is there an obvious case where it would really matter? In the meantime, this (apologies for any gmail word-wrapping): diff --git a/Functions/Misc/sticky-note b/Functions/Misc/sticky-note index efe5ec1eb..dd31eb81f 100644 --- a/Functions/Misc/sticky-note +++ b/Functions/Misc/sticky-note @@ -48,7 +48,7 @@ # I encourage all you creative people to contribute enhancements ... -emulate -LR zsh +emulate -LR zsh -o ${${options[flowcontrol]/off/no}/on/}flowcontrol setopt nobanghist extendedhistory histignoredups local STICKYFILE=3D${STICKYFILE:-$HOME/.zsticky}