From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#400: 23.0.60; C-h v should pick up lispified name in Customize Date: Sun, 6 Sep 2020 10:06:06 -0700 (PDT) Message-ID: <99bc1b95-e4f1-4405-b6b0-f698f642870c@default> References: <007f01c8cca9$3cbbf770$c2b22382@us.oracle.com> <875z8rum4k.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 400@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 06 19:07:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEy8F-0008kO-5E for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 19:07:11 +0200 Original-Received: from localhost ([::1]:37172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEy8E-0000Zb-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Sep 2020 13:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEy86-0000Y1-V2 for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 13:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEy86-00044m-LV for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 13:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEy86-00017s-Gz for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2020 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Sep 2020 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 400 X-GNU-PR-Package: emacs Original-Received: via spool by 400-submit@debbugs.gnu.org id=B400.15994119794277 (code B ref 400); Sun, 06 Sep 2020 17:07:02 +0000 Original-Received: (at 400) by debbugs.gnu.org; 6 Sep 2020 17:06:19 +0000 Original-Received: from localhost ([127.0.0.1]:47014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEy7P-00016v-AT for submit@debbugs.gnu.org; Sun, 06 Sep 2020 13:06:19 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:52120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEy7M-00016V-KH for 400@debbugs.gnu.org; Sun, 06 Sep 2020 13:06:17 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 086H57Sj042847; Sun, 6 Sep 2020 17:06:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=pKjT2atC/EFewJN4lhQmX07omOxLyb1U5x+WasbDYp0=; b=dUqXzWh5CsPQNYNB9umWhmSUD8Eq+3sCGGE74FOdsVuynhBpZ3PI6aVoQ2qDZQq2jwHD QQ70iFlzJVWnmHcBihAAt0sXA4ehjkeX/1xJGiA59RnLKDdEE+8WvwMJyjcjGwwbggZ5 EcKHW8N149f7LQwIzMjn5NgB7evSC9WftBCu40rlJ90FZiOeGNAlacA9//OvbWWutnIT 2s0nSVEd2WcXFDZcFpPbTKPRg8twDjwitlJVPPFsnsvgVCZxfI+OsvtSZ+McBR8DQk5m uP9VIirekPlW3pu2pbMotFaJKRN6cm/pgTP0dZUVdYcUwV2vPP6eZCyfczOOpZenPfl8 3Q== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 33c23qkj02-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 06 Sep 2020 17:06:11 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 086H5PO4017738; Sun, 6 Sep 2020 17:06:10 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 33cm8jkgq6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 06 Sep 2020 17:06:10 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 086H694F007435; Sun, 6 Sep 2020 17:06:09 GMT In-Reply-To: <875z8rum4k.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9736 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 spamscore=0 bulkscore=0 adultscore=0 mlxscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009060174 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9736 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 clxscore=1011 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009060174 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187361 Archived-At: > > emacs -Q > > M-x customize-option Info-hide-note-references > > > > Put the cursor on the unlispified option name: > > Info Hide Note References. > > > > C-h v > > > > The option name is not picked up as the default value. >=20 > The command just calls variable-at-point, which doesn't have any > machinery to go from the displayed data to the actual symbol (which > info-look has). >=20 > It's trivial to fix (now after bug#41905 was fixed), but I'm not sure at > what level to do that. The least invasive way to do it would be to just > redefine `C-h v' in Customize buffers, but the way `describe-variable' > is defined would require a refactor of that function. >=20 > `variable-at-point' could grow some way to allow it to be parameterised, > for instance via a buffer-local variable-at-point-function, which would > be kinda clean and is how many similar things are handled... My feeling, so far: keep it simple. cus-edit.el should provide the inverse operation to `custom-unlispify-tag-name', which would give you the Lisp symbol name that corresponds to the unlispified name. If that inverse operation would not be trivial or well-defined for some reason, for some cases (?), then the code should just record the association between the two names - IOW, memoize the result of calling `custom-unlispify-tag-name', and thereafter just use lookup, in either direction. (I think we should anyway have such a two-way conversion/lookup, regardless of this bug.) Then, `variable-at-point' would just call that inverse operation (a lookup) when the mode is `Custom-mode' and `custom-unlispify-tag-names' is non-nil. I don't think we should redefine "`C-h v' in Customize buffers". And I don't think we need to provide parameterization for `variable-at-point'. Not just for this, anyway. I also don't favor a `display' property approach here, a priori. I think it's overkill here and can restrict other possibilities/behavior. (Even just wanting to copy the "friendly" name of the option, to paste it somewhere.) A `display' property can be handy, but it can really mess with things too - kinda like wrapping duct tape around things: fixes them but makes them unmovable and difficult to interact/work with. But my opinion could change, based on other arguments.