GNU bug report logs -
#31052
26.0.91; Improve documentation of inline-letevals
Previous Next
Reported by: Gemini Lasswell <gazally <at> runbox.com>
Date: Wed, 4 Apr 2018 00:35:01 UTC
Severity: minor
Tags: fixed
Found in version 26.0.91
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Wed 04 Apr 2018, Eli Zaretskii wrote:
>> From: Gemini Lasswell <gazally <at> runbox.com>
>> Date: Tue, 03 Apr 2018 17:33:31 -0700
>>
>> I just got acquainted with inline-letevals and found its description
>> in the Elisp manual confusing because the purpose of the macro is not
>> stated, and it is described as similar to 'let' without mention of an
>> important difference in what happens to the elements of the bindings
>> list which are symbols.
>>
>> Here's a patch to functions.texi where I've attempted to clarify the
>> description.
>
> Thanks, but your text left me confused, perhaps because it mixes the
> details of the syntax and semantics with the explanation of why and
> how to use them, and what is the result of such usage. These should
> be generally kept separate for clarity.
>
> How about if you first tell informally what information is missing
> from the original text, and then we see how to augment that by adding
> the missing bits?
The same node in the elisp manual has this:
Functions defined via ‘define-inline’ have several advantages with
respect to macros defined by ‘defsubst’ or ‘defmacro’:
and this:
− They behave in a more predictable way than ‘cl-defsubst’ (*note
(cl)Argument Lists::).
It would be more consistent to use defsubst or cl-defsubst in both
places.
Also, while looking at inline-letevals in inline.el, I noticed that the
preceeding macros inline--leteval and inline--letlisteval mention the
wrong symbol name in their error messages:
(defmacro inline--leteval (_var-exp &rest _body)
(declare (indent 1) (debug (sexp &rest body)))
(error "inline-letevals can only be used within define-inline"))
(defmacro inline--letlisteval (_list &rest _body)
(declare (indent 1) (debug (sexp &rest body)))
(error "inline-letevals can only be used within define-inline"))
Perhaps these typos can be fixed before the release.
AndyM
This bug report was last modified 4 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.