Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shift-Insert overwrites ZLE CUTBUFFER
- X-seq: zsh-workers 39953
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER
- Date: Tue, 15 Nov 2016 14:07:23 -0800
- 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=yfP/h+6iNBmdkTMRr1Jk6NIn0DGLXSf51pjyzpk5/lw=; b=XwKlRaE8MH8Tj9pQHcgq3X7n7Hk+m/c9b+HkI3hyWGjKAZGPm0NsLSJpBxV1gZTjKB KIf0zY0VhCzzcHKWmL60jiyNNh6T7CS1Des9HYK/2eJfrPMFhRykG2twPymbAfU1g+k+ HVR/4BWCrjU/OzvJCizC8HR5UaizP/WpD1ibnvpOcFecJxczpBmfksvQkdJL+3RCV7kE YTnicu6KcfOnN6GldSvQRNOKAeNM6bpUQMK7++zj9E0Z+oIv1IVAWlTbHIFSpZAMCLNv 2psfQpqRrlexJcjG68O8H8rmMmvrdqi1GsOcZQ3gh18c/SASKsgsxH0YSi4Uijsn6XSh drbA==
- In-reply-to: <22835.1479246117@hydra.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMtVo_PG_fd62V1FZ4r7fRUragzzS6H4McN5sO1=hhY=6DR6Yg@mail.gmail.com> <161025091249.ZM7232@torch.brasslantern.com> <CAMtVo_N6qOQr++Amzn11+m3pkOxjc908mwFUerur77+OWd92uw@mail.gmail.com> <161026090133.ZM11120@torch.brasslantern.com> <CAMtVo_P09j6fyJytA21iu_qOom6bCTvJEWn-dXTBX97Bp00Sdg@mail.gmail.com> <161026165138.ZM12130@torch.brasslantern.com> <87h97x36sa.fsf@lwm.klanderman.net> <161027133523.ZM15655@torch.brasslantern.com> <43312.1477929414@hydra.kiddle.eu> <CGME20161031160350epcas3p4849616fbcc05783a9966320a28ed731c@epcas3p4.samsung.com> <20161031161605.23af1751@pwslap01u.europe.root.pri> <161109092745.ZM2477@torch.brasslantern.com> <4446.1478794906@hydra.kiddle.eu> <161110091736.ZM20932@torch.brasslantern.com> <22835.1479246117@hydra.kiddle.eu>
On Nov 15, 10:41pm, Oliver Kiddle wrote:
} Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER
}
} On 10 Nov, Bart wrote:
} > A useful addition to zsh/zleparameter would be a special hash of
} > register-to-content mappings (emacs calls this register-alist).
}
} The following patch adds this under the name "registers" [...]
} For what it's worth, I think the term
} "registers" is better than "buffers" and it'd be good to use the same
} ones with emacs style widgets.
I don't have any particular quibble with this, except that the names
of the vi-widgets all refer to "buffers" and it would be annoying to
change them. As a thought, could use the terms "killring buffer" for
1-9 and "register buffer" for a-z, when updating documentation.
(Although it's possible to expand the killring to more than 9 elements
by assigning directly to the variable.)
} What does the "alist" part of the emacs name denote.
For practical purposes, it means the same as ${(kv)registers} after
your patch: a list of alternating key-value elements.
} It contains just the registers 'a' to 'z' for now. Including the
} numbered registers would just be a duplication of killring/CUTBUFFER.
} (except the yank register - "0).
Aside: If the numbered registers duplicate $killring, how is it there
are 9 numbered registers but the killring defaults to only 8 elements?
} Why does makezleparams set pm->level to locallevel + 1? That seems
} wrong. What does the + 1 achieve?
The parameters are created before the function for any user-defined
widget is called, but are defined as being local to the scope of the
user-defined widget. Or at least that's my understanding, it's been
a while since I walked through the flow. Anyway, the point is that
the ZLE parameters hide (rather than refer to) any existing parameter
of the same name, and are always local.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author