unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13343: 24.3.50; give examples using `gv-define-expander' and `gv-letplace'
@ 2013-01-02 23:52 Drew Adams
  2019-08-16  6:58 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2013-01-02 23:52 UTC (permalink / raw)
  To: 13343

(elisp) `Adding Generalized Variables' says only this:
 
  For more control over the expansion, see the macro `gv-define-expander'.
  The macro `gv-letplace' can be useful in defining macros that perform
  similarly to `setf'; for example, the `incf' macro of Common Lisp.
  Consult the source file `gv.el' for more details.
 
That's a complete cop-out.  Give at least one example of using each of
`gv-define-expander' and `gv-letplace'.
 
Telling users to refer to gv.el for information about using these macros
is off-base.  Neither the commentary in that file nor the doc strings of
these two macros help.
 
We should not send users off to analyze the _implementation_ of these
macros in order to figure out how to use them to define generalized
variables.  We should describe what these macros do specifically, and
show how to use them.
 
All the current doc says, to describe these macros, is (a)
`gv-define-expander' gives you "more control" and (b) `gv-letplace' "can
be useful".
 
"See the macro", indeed.  See what?  It's implementation?  Emacs users
deserve better.
 
In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600)
 of 2012-12-31 on ODIEONE
Bzr revision: 111388 rudalics@gmx.at-20121231113513-subz2dazg6yjukzh
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'
 






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#13343: 24.3.50; give examples using `gv-define-expander' and `gv-letplace'
  2013-01-02 23:52 bug#13343: 24.3.50; give examples using `gv-define-expander' and `gv-letplace' Drew Adams
@ 2019-08-16  6:58 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-16  6:58 UTC (permalink / raw)
  To: Drew Adams; +Cc: 13343

"Drew Adams" <drew.adams@oracle.com> writes:

> (elisp) `Adding Generalized Variables' says only this:
>
>   For more control over the expansion, see the macro `gv-define-expander'.
>   The macro `gv-letplace' can be useful in defining macros that perform
>   similarly to `setf'; for example, the `incf' macro of Common Lisp.
>   Consult the source file `gv.el' for more details.
>
> That's a complete cop-out.  Give at least one example of using each of
> `gv-define-expander' and `gv-letplace'.

I've now added this to the trunk.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-16  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-02 23:52 bug#13343: 24.3.50; give examples using `gv-define-expander' and `gv-letplace' Drew Adams
2019-08-16  6:58 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).