From: Phil Sainty <psainty@orcon.net.nz>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>, 38173@debbugs.gnu.org
Subject: bug#38173: describe-variable: Also tell user *where* variable was changed
Date: Thu, 14 Nov 2019 11:56:39 +1300 [thread overview]
Message-ID: <f4b1fa7e353e39cc19ced2af8f80b8fa@webmail.orcon.net.nz> (raw)
In-Reply-To: <87v9rnx1bi.5.fsf@jidanni.org>
On 2019-11-14 04:06, 積丹尼 Dan Jacobson wrote:
> PS> It still might not have the effect you wanted, though -- it's
> PS> possible to change the apparent / user-facing value of some
> variables
> PS> without changing the *actual* value of the variable at all. This
> is
> PS> because of the internal structure of lists in lisp...
>
> Sounds like a security / coverup risk. Maybe with the expensive
> global-variable-tracking turned on, describe-variable could double
> check
> for such tampering upon looking up a variable.
It's not "tampering". It's just the fundamental nature of lists in lisp
(all dialects of lisp, AFAIK). You're only seeing it as a concern in
the
context of a feature which doesn't exist.
It would, I think, be *dramatically* (perhaps prohibitively) more
expensive
to perform that kind of checking. This could no longer be done by the
variable-watcher mechanism. In principle, every time ANY lisp object
was
modified at all, Emacs would need to check to see whether the object
(pre-
modification) was a value -- or a nested sub-component, to any arbitrary
depth, of a value -- of ANY variable in the system, so that it could
register
that the change affected the user-facing value of that variable.
-Phil
next prev parent reply other threads:[~2019-11-13 22:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 1:14 bug#38173: describe-variable: Also tell user *where* variable was changed 積丹尼 Dan Jacobson
2019-11-12 2:28 ` Katsumi Yamaoka
2019-11-12 2:45 ` 積丹尼 Dan Jacobson
2019-11-12 23:10 ` Phil Sainty
2019-11-12 23:28 ` 積丹尼 Dan Jacobson
2019-11-13 9:19 ` Phil Sainty
2019-11-13 15:06 ` 積丹尼 Dan Jacobson
2019-11-13 22:56 ` Phil Sainty [this message]
2019-11-14 6:27 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f4b1fa7e353e39cc19ced2af8f80b8fa@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=38173@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=yamaoka@jpl.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.