[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: `read--expression' and `read-minibuffer'
From: |
Drew Adams |
Subject: |
RE: `read--expression' and `read-minibuffer' |
Date: |
Tue, 6 Sep 2016 14:35:13 -0700 (PDT) |
> >>> Because it is tailored for that use case. The kind of completion
> >>> it provides for instance assumes the S-exp is an Elisp expression.
> >> Of course it is an Elisp expression. It does not follow that
> >> the Elisp expression that has been read will then be _evaluated_.
> > In this thread, Stefan is defining an "Elisp expression" to be precisely
> > an S-exp that is intended for `eval'.
>
> Not necessarily directly for `eval', but yes an Elisp expression as
> opposed to random S-exp data. E.g. when reading an alist, you shouldn't
> use read--expression (whereas, when reading an expression that will
> evaluate to an alist, read--expression is probably the right thing to
> use).
>
> > So a variant of `read--expression' could be written that does a subset
> > of that completion appropriate to the more general context of entering
> > an S-exp.
>
> For any random S-exp data, we already have `read-minibuffer', so I don't
> see any point in changing read--expression to cover that case.
Completion of parts of the data. Just as in the function-application
sexp case. There just is assumption that the first symbol after `('
should complete against only function symbols.
- `read--expression' and `read-minibuffer', Drew Adams, 2016/09/03
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/04
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/04
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/04
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/04
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/04
- Re: `read--expression' and `read-minibuffer', Davis Herring, 2016/09/06
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/06
- RE: `read--expression' and `read-minibuffer',
Drew Adams <=
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/06
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/06
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/06
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/06
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/07
- RE: `read--expression' and `read-minibuffer', Herring, Davis, 2016/09/07
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/07
- Re: `read--expression' and `read-minibuffer', Davis Herring, 2016/09/07
- RE: `read--expression' and `read-minibuffer', Drew Adams, 2016/09/07
- Re: `read--expression' and `read-minibuffer', Stefan Monnier, 2016/09/09