GNU bug report logs -
#56863
28.1; "internal variable" in doc
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sun, 31 Jul 2022 20:19:01 UTC
Severity: normal
Found in version 28.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56863 in the body.
You can then email your comments to 56863 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56863
; Package
emacs
.
(Sun, 31 Jul 2022 20:19:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 31 Jul 2022 20:19:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(defvar foo 50)
(defvaralias 'fill-column 'foo)
--> Error "Cannot make an internal variable an alias"
The error msg should show the name of the variable in question.
But the real bug is that "internal variable" isn't clear/defined. Nor
is it otherwise clear what the error message means or why it's an error
to (apparently) try to alias a defvar defined in C to some other defvar.
Searching the Elisp manual for "internal variable" shows only one
occurrence, in node `Documentation Tips', where the term has a very
different meaning:
An internal variable or subroutine of a Lisp program might as well
have a documentation string. Documentation strings take up very
little space in a running Emacs.
It's not clear what it means there either, but it's pretty clear that
whatever meaning is intended there is unrelated to whatever meaning is
intended in that error message.
Please clean up the doc to make clear what's meant, in both cases.
For a function defined in C and callable from Lisp we use the terms
"primitive" and "built-in function". I haven't found a term for defvars
(or defcustoms) that are defined in C. But certainly such variables are
in no way "internal" to anything, AFAICT. They are defined in C; that's
all.
Furthermore, the presentation of `defvaralias' in the Elisp manual (node
`Variable Aliases') says nothing about any restriction of which defvars
it applies to - nothing about "internal variables", even under some
other name. AFAICT.
Secondarily, searching for "internal" in the Elisp manual takes you to
node `Function Names' where the `--' convention for names of internal
functions is presented. I haven't found any such presentation of `--'
for names of "internal" variables. But presumably a variable name with
`--' is internal in yet another sense (presumably the same sense as for
"internal function").
Also secondarily, node `Tips for Defining' mentions variable names with
`PREFIX-...' and `...-internal' as being "internal". Should that node
also mention names with `--'?
Also secondarily, node `Creating Buffer-Local' says this:
For example, when a variable is used for internal purposes in a Lisp
program which depends on having separate values in separate buffers
Yet another use of "internal" for variables. My suggestion here is to
simply remove the word "internal", or even "for internal purposes" -
that adds nothing here and can only confuse. Just a suggestion.
(There are of course multiple uses of "internal" in the docs, with
differences in meaning according to the context. No problem there.
This bug report is about mention of "internal" variables.)
In GNU Emacs 28.1 (build 2, x86_64-w64-mingw32)
of 2022-04-21 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19044
System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.1826)
Configured using:
'configure --with-modules --without-dbus --with-native-compilation
--without-compress-install CFLAGS=-O2'
Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
XPM ZLIB
(NATIVE_COMP present but libgccjit not available)
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Mon, 01 Aug 2022 17:04:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Mon, 01 Aug 2022 17:04:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 56863-done <at> debbugs.gnu.org (full text, mbox):
> From: Drew Adams <drew.adams <at> oracle.com>
> Date: Sun, 31 Jul 2022 20:17:58 +0000
>
> (defvar foo 50)
> (defvaralias 'fill-column 'foo)
>
> --> Error "Cannot make an internal variable an alias"
>
> The error msg should show the name of the variable in question.
I added the name to the message.
> But the real bug is that "internal variable" isn't clear/defined.
I made it say "built-in" instead of "internal".
Thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 30 Aug 2022 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 295 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.