[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is "splicing mode" in el-search.el?

From: Chunyang Xu
Subject: Re: What is "splicing mode" in el-search.el?
Date: Wed, 7 Sep 2016 01:55:01 +0800

Hi Michael!

On Tue, Sep 6, 2016 at 10:45 PM, Michael Heerdegen
<> wrote:
> Hello Chunyang!
>> I tried el-search.el from gnu elpa and have one problem with it.
> Great, this is the first remark I got about it :-)  Your comments are
> much appreciated, please report every discrepancy you find.  Multi-file
> support will come soon, btw.
>> The Commentary of el-search.el mentions "splicing mode", but I can't
>> figure out what it means, can you give me an example?
>> ;; It is possible to replace a match with multiple expressions using
>> ;; "splicing mode".  When it is active, the replacement expression
>> ;; must evaluate to a list, and is spliced instead of inserted into
>> ;; the buffer for any replaced match.
> It just means that instead of the list, it's elements are inserted into
> the buffer, in the same order as in the list.  If you replace e.g. this
>     `(f . ,args) -> args
> and you have in some buffer
>      (f x y)
> then this would normally be replaced with
>      (x y)
> but with splicing mode turned on, you would get
>       x y

Now I see. After applying your patch, it works like expect.

Thank you very much!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]