From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#41905: Small change: In Customize, display name with with spaces, but keep symbol name underneath. Date: Sat, 5 Sep 2020 09:00:45 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000f92ff205ae8fbc03" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6944"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41905@debbugs.gnu.org, ej32u@protonmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 05 14:02:28 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 1kEWto-0001iv-IO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 14:02:28 +0200 Original-Received: from localhost ([::1]:58048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEWtn-00059R-It for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 08:02:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEWtO-0004ut-OB for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 08:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEWtO-0004XN-F3 for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 08:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEWtO-0008Nz-Ci for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 08:02:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 12:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41905 X-GNU-PR-Package: emacs Original-Received: via spool by 41905-submit@debbugs.gnu.org id=B41905.159930726529454 (code B ref 41905); Sat, 05 Sep 2020 12:02:02 +0000 Original-Received: (at 41905) by debbugs.gnu.org; 5 Sep 2020 12:01:05 +0000 Original-Received: from localhost ([127.0.0.1]:41676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEWsS-0007ef-V6 for submit@debbugs.gnu.org; Sat, 05 Sep 2020 08:01:05 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:39312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEWsR-0007Xq-C2 for 41905@debbugs.gnu.org; Sat, 05 Sep 2020 08:01:03 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id a17so9977341wrn.6 for <41905@debbugs.gnu.org>; Sat, 05 Sep 2020 05:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=fJ+dnv2YJ9DslpMC6pRr/yNqZ9VDuqCyaSqfXQmVcBo=; b=C4P55XEGl+2Fr9+mHpJL27NU2s4jC0JL6nXfjDI1zbmrdTTYEqxO4p4x0Ho4fw67LK ZJBse4MOM+UMT7ZSy4Jhz6jok6K+qksVjVwPkgtmleqVEwbj5M1KBGMm+YcqoDoRZab9 HesaAdcfuU+CNeov3UNLZLOeP4gom1Rti4RKhH+W2QJR2eck2ZM+1gkhrgdf5UWriT64 S/kXOR/tE1B56IpmuzJlR7GDJdIWvzFMtu56JVjI1rVMhgfOSh7SYZtBkeZszRSGDWEL B5aleGuMJOIoD2o+geVf3LiknPf9rD5b8sG6wt3xnNaRgowW0IqI/lojHHdSZaKuhpwM 8JuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=fJ+dnv2YJ9DslpMC6pRr/yNqZ9VDuqCyaSqfXQmVcBo=; b=X+RBv9cRa5b7DX8FX6bvWrXz1jgEO0vEnhxXfz6/4KVvR6F2BM4JowA002+a/P4LZM 4XXVr7NwpDQxxLeMa51SZ84R72gE+GyHCWzjZbyIP5qF4FhjByXrxnGvJkEVSjrWf449 itrgyP55gI9/lBEjBAEVIwFYVI6KJUoOaXIwdlpYX81M8VT4aHbANTAmtV49/O2no6/O DcPT3lWTPUM6+25gQJ5UUBzxvFrcR/qGF2U3xyEzhsgdIjSYUFbaLcyJqUKIYmYXMQyL IK88BgwO4nqTjRNaZ+HIydRN/ygpVJCmQGNGpie0F6KXBur/osKhFCKsOGk8qr4WWTQH ZpRA== X-Gm-Message-State: AOAM531IlR4Wj/PEVghER5SPvm/ssGV3o69S/uEN9phg8SP6mRDF6p1q Tiiys0FHpYdPsdrdle/Ha5XrHuKC6WlMlCJLIAQ= X-Google-Smtp-Source: ABdhPJy384aFaLRAaPvL7tCKsSqPzU9QJS4P9hxBUzuoZVezHXU6wR6RUO7TFZmdc6gODgYKl3h4BzEjHo+rDRbh8Jk= X-Received: by 2002:a5d:5111:: with SMTP id s17mr12027587wrt.70.1599307257548; Sat, 05 Sep 2020 05:00:57 -0700 (PDT) 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:187211 Archived-At: --000000000000f92ff205ae8fbc03 Content-Type: multipart/alternative; boundary="000000000000f92ff105ae8fbc01" --000000000000f92ff105ae8fbc01 Content-Type: text/plain; charset="UTF-8" Juri Linkov writes: >>> This patch changes custom-unlispify-menu-entry to display symbols names >>> with the "display" text property, but to keep the symbol name underneath. >>> This is good when using try-expand-dabbrev-all-buffers, such as when >>> writing the init file. >> >> Thanks, this is a nice idea. Your patch allows to copy the symbol by M-w >> and paste into a program as a symbol. > > But what happens when a variable name is expanded in the customization buffer? > (expanded in the sense that the down arrow is displayed before it) > It seems the name displayed as a symbol, not as a human-readable string. Hello Juri. I think the problem you see is easily fixed with the attached patch. --000000000000f92ff105ae8fbc01 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Juri Linkov <juri@linkov.net> writes:

>>> This patch = changes custom-unlispify-menu-entry to display symbols names
>>>= ; with the "display" text property, but to keep the symbol name u= nderneath.
>>> This is good when using try-expand-dabbrev-all-b= uffers, such as when
>>> writing the init file.
>>
= >> Thanks, this is a nice idea.=C2=A0 Your patch allows to copy the s= ymbol by M-w
>> and paste into a program as a symbol.
>
&= gt; But what happens when a variable name is expanded in the customization = buffer?
> (expanded in the sense that the down arrow is displayed bef= ore it)
> It seems the name displayed as a symbol, not as a human-rea= dable string.

Hello Juri.

I think the problem you see is easi= ly fixed with the attached patch.
--000000000000f92ff105ae8fbc01-- --000000000000f92ff205ae8fbc03 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Improve-call-to-widget-create-child-and-convert-in-c.patch" Content-Disposition: attachment; filename="0001-Improve-call-to-widget-create-child-and-convert-in-c.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kepm8brr0 RnJvbSBlYTJiODUxODRiN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