From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#38173: describe-variable: Also tell user *where* variable was changed Date: Wed, 13 Nov 2019 07:28:05 +0800 Message-ID: <87pnhwsmii.5.fsf@jidanni.org> References: <87pnhxyjxp.8.fsf@jidanni.org> <878solyfr2.8.fsf@jidanni.org> <9a2ece93c5474cdd68e6f7253408dba8@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250181"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Katsumi Yamaoka , 38173@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 13 00:29:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iUfax-0012x6-ST for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2019 00:29:12 +0100 Original-Received: from localhost ([::1]:40428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUfaw-00035F-3c for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Nov 2019 18:29:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUfaq-00034o-0h for bug-gnu-emacs@gnu.org; Tue, 12 Nov 2019 18:29:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUfap-0004Ts-0v for bug-gnu-emacs@gnu.org; Tue, 12 Nov 2019 18:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49799) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUfao-0004Te-MQ for bug-gnu-emacs@gnu.org; Tue, 12 Nov 2019 18:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUfao-00017Y-IJ for bug-gnu-emacs@gnu.org; Tue, 12 Nov 2019 18:29:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87pnhxyjxp.8.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Nov 2019 23:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38173 X-GNU-PR-Package: emacs Original-Received: via spool by 38173-submit@debbugs.gnu.org id=B38173.15736013024240 (code B ref 38173); Tue, 12 Nov 2019 23:29:02 +0000 Original-Received: (at 38173) by debbugs.gnu.org; 12 Nov 2019 23:28:22 +0000 Original-Received: from localhost ([127.0.0.1]:58620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUfaA-00016K-6P for submit@debbugs.gnu.org; Tue, 12 Nov 2019 18:28:22 -0500 Original-Received: from bisque.elm.relay.mailchannels.net ([23.83.212.18]:18706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUfa6-00016A-Kz for 38173@debbugs.gnu.org; Tue, 12 Nov 2019 18:28:19 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 485653C08C1; Tue, 12 Nov 2019 23:28:17 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a87.g.dreamhost.com (100-96-6-183.trex.outbound.svc.cluster.local [100.96.6.183]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7658B3C0E00; Tue, 12 Nov 2019 23:28:16 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a87.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 12 Nov 2019 23:28:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Spot-Shrill: 7077b45f5fc713a9_1573601296730_3293917495 X-MC-Loop-Signature: 1573601296730:2564479555 X-MC-Ingress-Time: 1573601296730 Original-Received: from pdx1-sub0-mail-a87.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a87.g.dreamhost.com (Postfix) with ESMTP id 28E9082C55; Tue, 12 Nov 2019 15:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=+/c8QgbyxeqsNlYiK/Dj8fu8A7M=; b=WJDizdzpDJqnU DjZcN4Uzahdvt5cLUYJ0rFFEy3V2yFvoME7zeMFLmm9v3lnHY+ziqkOTxFEr/H8Q pxDAjudfW2PPSbJ8NW9URW5XNJXOntQh1LUrC5bcFdNVUmzxCMgQf314p0MEEYjs zO/APIlLRVPeytlj0aDquERKX8c4us= Original-Received: from jidanni.org (114-41-29-7.dynamic-ip.hinet.net [114.41.29.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a87.g.dreamhost.com (Postfix) with ESMTPSA id 5ADF482C4E; Tue, 12 Nov 2019 15:28:10 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a87 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171479 Archived-At: (OK, it's like telling the user your current balance is $0, your original balance is $1000, and throwing out even the final record of what happened. At least don't tell him his original balance then.) Gasp, that var-watcher stuff is so complicated. How about: At the beginning of the user's .emacs: (setq tracked-variables LIST_OF_TRACKED_VARIABLES) And then if he later does describe-variable on one of them, he gets all the places and values that variable was set. The tracked-variables docsrting should warn: this is for debugging use only, and adds a burden...