From: Drew Adams <drew.adams@oracle.com>
To: 24540@debbugs.gnu.org
Subject: bug#24540: 25.1; doc of `abbrev-expand-function(s)', "wrapper hooks",...
Date: Sun, 25 Sep 2016 07:53:30 -0700 (PDT) [thread overview]
Message-ID: <39d1a887-a19f-40ba-9b00-84e27f2606ce@default> (raw)
Let's check the doc, starting with `expand-abbrev':
"Calls `abbrev-expand-function' with no argument to do the work, and
returns whatever it does."
(It should say that it calls the _value of variable_
`abbrev-expand-function'.)
So we look at `abbrev-expand-function', which tells us that the default
value is `abbrev--default-expand'. (Why the default value of such a
presumably user-modifiable variable should be considered an "internal"
function is a mystery.)
So we look at `abbrev--default-expand', which tells us this:
"This respects the wrapper hook `abbrev-expand-functions'."
Hm. So we look at `abbrev-expand-functions', to see what this "wrapper
hook" is all about. It tells us this:
"Wrapper hook around ‘abbrev--default-expand’."
OK. It's a "wrapper hook", whatever that is. This doesn't tell us
anything more.
But `C-h v abbrev-expand-functions' also tells us this, which is
interesting:
"This variable is obsolete since 24.4; use ‘abbrev-expand-function’
instead."
So the doc tells us about a "wrapper hook", which is presumably
something like a hook, which is something that users can use. But the
wrapper hook we are pointed to is "obsolete", and we are told to instead
use a different variable (sans "s") - which was the one we started with!
Round and round we go...
Now what about the mysterious term "wrapper hook", apparently introduced
fairly recently? Searching for it in the Emacs manual shows nothing.
Searching for it in the Elisp manual shows only mentions of particular
"obsolete" wrapper hooks - no explanation of what is meant by a "wrapper
hook".
It looks as though a new term ("wrapper hook") was introduced to the
Emacs vocabulary in Emacs 23, and then removed (deprecated?) soon
thereafter. What is this all about? What is a poor user to understand
about all of this?
One could forgive a user for being confused, or totally lost, in this
swamp. Please consider clearing away some of the brambles.
In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
of 2016-09-17 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
'configure --without-dbus --without-compress-install CFLAGS=-static'
Let's check the doc, starting with `expand-abbrev':
"Calls `abbrev-expand-function' with no argument to do the work, and
returns whatever it does."
So we look at `abbrev-expand-function', which tells us that the default
value is `abbrev--default-expand'. (Why the default value of such a
user-modifiable variable should be considered an "internal" function is
a mystery.)
So we look at `abbrev--default-expand', which tells us this:
"This respects the wrapper hook `abbrev-expand-functions'."
Hm. So we look at `abbrev-expand-functions', to see what this "wrapper
hook" is all about. It tells us this:
"Wrapper hook around ‘abbrev--default-expand’."
OK. It's a "wrapper hook", whatever that is. This doesn't tell us
anything more.
But `C-h v abbrev--default-expand' also tells us this, which is
interesting:
"This variable is obsolete since 24.4; use ‘abbrev-expand-function’
instead."
So the doc tells us about a "wrapper hook", which is presumably
something like a hook, which is something that users can use. But the
wrapper hook we are pointed to is "obsolete", and we are told to instead
use a different variable (sans "s") - which was the one we started with!
Round and round we go.
So what about the mysterious term "wrapper hook", apparently introduced
fairly recently? Searching for it in the Emacs manual shows nothing.
Searching for it in the Elisp manual shows only mentions of particular
"obsolete" wrapper hooks - no explanation of what is meant by a "wrapper
hook".
It looks as though a new term ("wrapper hook") was introduced to the
Emacs vocabulary recently, and then removed (deprecated?) almost
immediately. What is this all about? What is a poor user to understand
about all of this?
One could forgive a user for being confused, or totally lost, in this
swamp.
In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
of 2016-09-17 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
'configure --without-dbus --without-compress-install CFLAGS=-static'
So we look at `abbrev-expand-function', which tells us that the default
value is `abbrev--default-expand'. (Why the default value of such a
user-modifiable variable should be considered an "internal" function is
a mystery.)
So we look at `abbrev--default-expand', which tells us this:
"This respects the wrapper hook `abbrev-expand-functions'."
Hm. So we look at `abbrev-expand-functions', to see what this "wrapper
hook" is all about. It tells us this:
"Wrapper hook around ‘abbrev--default-expand’."
OK. It's a "wrapper hook", whatever that is. This doesn't tell us
anything more.
But `C-h v abbrev--default-expand' also tells us this, which is
interesting:
"This variable is obsolete since 24.4; use ‘abbrev-expand-function’
instead."
So the doc tells us about a "wrapper hook", which is presumably
something like a hook, which is something that users can use. But the
wrapper hook we are pointed to is "obsolete", and we are told to instead
use a different variable (sans "s") - which was the one we started with!
Round and round we go.
So what about the mysterious term "wrapper hook", apparently introduced
fairly recently? Searching for it in the Emacs manual shows nothing.
Searching for it in the Elisp manual shows only mentions of particular
"obsolete" wrapper hooks - no explanation of what is meant by a "wrapper
hook".
It looks as though a new term ("wrapper hook") was introduced to the
Emacs vocabulary recently, and then removed (deprecated?) almost
immediately. What is this all about? What is a poor user to understand
about all of this?
One could forgive a user for being confused, or totally lost, in this
swamp.
In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
of 2016-09-17 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
'configure --without-dbus --without-compress-install CFLAGS=-static'
next reply other threads:[~2016-09-25 14:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-25 14:53 Drew Adams [this message]
2016-09-25 15:33 ` bug#24540: 25.1; doc of `abbrev-expand-function(s)', "wrapper hooks", Andreas Röhler
2016-09-25 19:38 ` Drew Adams
2016-09-26 6:15 ` Andreas Röhler
2016-09-26 16:04 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39d1a887-a19f-40ba-9b00-84e27f2606ce@default \
--to=drew.adams@oracle.com \
--cc=24540@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).