From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26402 invoked by alias); 4 Nov 2017 01:32:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 41984 Received: (qmail 12542 invoked by uid 1010); 4 Nov 2017 01:32:53 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg0-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.83.51):SA:0(-1.4/5.0):. Processed in 1.704107 secs); 04 Nov 2017 01:32:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=Gjfmlmf8gx0mkUSvrkSlfgV9S25JqLmq3X7UCLOuQUc=; b=mHmAlBRy71zMVhjHqmL0yaLnNVVJOWw+qAQPmeTG4WiNcir50PbNVCx+yT0Knas3SL QDr/4bIVRtE7wBuzSp7i2XBHbCDpPA+tdUX2go+5/KDcAyXPblo1oyA4uTCcHBtd+mUJ 5F9oPQlkRFwjSduf5sM23i6Sb/eZY5kRjHKJP0iyfNdtRQ4PdTXF50necv087UBqYxlN loOM9XSTC4ebuv8A7c4TAm+Gieq7hk27w6UBbVZFGJO3JNJnR5UlApbcBkR19PPmilGW +YipxU4IxOmrax8xsLMmmwSnsYS/WehM4LucSka9GnI0+mzmEL8ROrf90lF/Zo3TeT6G YpIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=Gjfmlmf8gx0mkUSvrkSlfgV9S25JqLmq3X7UCLOuQUc=; b=JWaj+fo26GoN0dOw6F37lLQYtG5WhTFntp+FGFKL7mHOjZzJY9yOov6op8dUmr9wDi Z7Qv62m0YlJUH+1vkH4SswAQ68Ti9kWLxaNwJmIW/xugGe2ZJ+Ro+ueIN6FQlQDFuYYo Yn6so0XIt1TQ4/P59mqwP46knAHrLmphlANDDUwMp5cNQQlsFYF4RxIlGMKKU/oKfiFn tYWFHXYfQQKYcY5dN8yZBdRp4WN8x2SaczqyuWX7gzObuhOty5Zt0fBut7ievHXUfyOs DABswXJ9WpaVeEdP75Ov1WgudiIZ/hItAO9LFMEy4qqJSGNSDEn5LbXKUNLaHx2mk7DE Xmlg== X-Gm-Message-State: AMCzsaV36pL8kVzKOQnbHGIoSIOhg5l5N95aoKYNH/HUhw4xXMDcWzu8 0SZElWcRORF5dL54CoX8Xxd5Ow== X-Google-Smtp-Source: ABhQp+TjM287wRQ/gJxpON9iWc8gvussN76rBVhydnP3XL2pojTM0veHCv6yq2kOx1MPS/bfjOlWaA== X-Received: by 10.99.121.131 with SMTP id u125mr8652365pgc.265.1509759167723; Fri, 03 Nov 2017 18:32:47 -0700 (PDT) From: Bart Schaefer Message-Id: <171103182233.ZM31076@torch.brasslantern.com> Date: Fri, 3 Nov 2017 18:22:33 -0700 In-Reply-To: <87h8ubbeaq.fsf@wavexx.thregr.org> Comments: In reply to "Yuri D'Elia" "Re: Changing subword-range according to current completion context" (Nov 3, 3:57pm) References: <87h8ubo9zp.fsf@wavexx.thregr.org> <20171103122349.4bf81a1c@pwslap01u.europe.root.pri> <87h8ubbeaq.fsf@wavexx.thregr.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Yuri D'Elia" , zsh-workers@zsh.org Subject: Re: Changing subword-range according to current completion context MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 3, 3:57pm, Yuri D'Elia wrote: } } Isn't the state of each word, once expanded, saved somewhere? Not really, unless the completion function is designed to do so. The only things that persist from any call of completion to the next are which completion widget was used and what comprises the previous list of possible maches, and all that is lost if any other kind of edit or motion intervenes between calls to completion. } By reading the manual, I'm not completely sure about the relationship } between match-words-by-style and match-word-context. Those are entirely separate widgets and have no relation to completion (aside from everything being ZLE widgets, of course). They merely make an identification of the start and end of the word under or adjacent to the cursor by using simple syntax rules; they know nothing otherwise of command context or of how the word was added to the editor buffer.