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: Mon, 7 Sep 2020 16:44:47 -0300 Message-ID: References: <87imcs5qmj.fsf@gnus.org> <87a6y45pbo.fsf@gnus.org> <87tuwc49ge.fsf@gnus.org> <87a6y3umjr.fsf@gnus.org> <87sgbvt6zd.fsf@gnus.org> <87bliiycij.fsf@mail.linkov.net> <87tuw9cvof.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000031405e05aebe7463" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7248"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 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 Mon Sep 07 21:46:27 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 1kFN5t-0001je-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 21:46:25 +0200 Original-Received: from localhost ([::1]:51606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFN5s-0003NS-5t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 15:46:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFN5W-0003Mz-Kd for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 15:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFN5W-00062Y-C5 for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 15:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kFN5W-00063b-7b for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Sep 2020 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 41905-submit@debbugs.gnu.org id=B41905.159950790823206 (code B ref 41905); Mon, 07 Sep 2020 19:46:02 +0000 Original-Received: (at 41905) by debbugs.gnu.org; 7 Sep 2020 19:45:08 +0000 Original-Received: from localhost ([127.0.0.1]:50933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFN4e-00062E-GL for submit@debbugs.gnu.org; Mon, 07 Sep 2020 15:45:08 -0400 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:37293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFN4c-00061O-15 for 41905@debbugs.gnu.org; Mon, 07 Sep 2020 15:45:06 -0400 Original-Received: by mail-wr1-f51.google.com with SMTP id z4so16843848wrr.4 for <41905@debbugs.gnu.org>; Mon, 07 Sep 2020 12:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b1y4ByyjeDEAaxW/rjiuK+PvgcMzpzbD3zlN5ICdtbY=; b=ABuN6AteiSF0BsGtDlJ8snqTjfsNGKkAMmjPLgkdu/y3/sGKi+GOORN1fff/rFOs3K BjksHo5M144DJa6sJlxjc04j2iSET6q3TJ0snJzOSYQwJDYnNV+hN2FMwf1re2UD75Ht hhOnwTipHUCMZKiIP9UTTY+YaPgowKqkinirxCQgUnOSOtfiH//7uPFR6WbjfTooGVnF Ukj3pKWT4I6fHHbBgWaFpGQmZHscVVR6TQZS5n3EwQD069YWF6wpePT1HpE/69Mm5y8U eJaraEphqrxDAp1YJ1VcMPejOIw7ZVfnx+CZEu/NIxkUd4D+C7YUdFa/s8Bxt0qwkrv9 aKYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b1y4ByyjeDEAaxW/rjiuK+PvgcMzpzbD3zlN5ICdtbY=; b=hRGHDEv6gJctMAhzz5LDJjUaKvWn8YmWYqQiGlA0tHdvZXB4YCElzfsILiTUH4ltg7 AXXraqz0pMdebROkJhil/PeNwswJUEIrAJullorlgO0pbOi4XAHxr9GcNqz/TFzDifYe HySqg8tOBjet0CYb5OF9YiJXn51T8K0xgJaGuMz/JvNKsjKmLgdW2S+vq3Al6kKkYvvp i2ZjDb1nHckaegiUPJGKig0mKXGKTBadCGGHAIDvnWEqMi1VSsj4jh2whefB+o83sP18 n+KrAfZgHbXiRoSKQDtkqUzeQOwx0W5z9+vSPv1oXKP1+3d+PjuVKm5SiLhe09cuaH2l p6/g== X-Gm-Message-State: AOAM532nz4iE5SshtUuVQmkrKq8YFpt9PUX9Lu00N53JwvM+8QVDU+i8 BB7T0xcLELG9stZEx0rKpnxacX1zD82rRcRsZ4w= X-Google-Smtp-Source: ABdhPJws5xFOzcTFZcT8fSFMwp9QxXI1Liiu0+wplxpdpSDKUX8EBgBbrIPJ1x5qSW1ZexEU+RVoDNzYvFqkGv5M/YA= X-Received: by 2002:adf:ec86:: with SMTP id z6mr23395643wrn.109.1599507899956; Mon, 07 Sep 2020 12:44:59 -0700 (PDT) In-Reply-To: <87tuw9cvof.fsf@mail.linkov.net> 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:187477 Archived-At: --00000000000031405e05aebe7463 Content-Type: text/plain; charset="UTF-8" Juri Linkov writes: >>>>> What I liked about the 'display approach is that it didn't seem to >>>>> require changes in the describe-* commands to work... >>>> >>>> That is a good point, and it would make C-h v make work automatically. >>>> But 'display properties are kinda awkward -- for one, the cursor moves >>>> over them in a single skip, so they're a bit confusing in that respect. >>> >>> Yes, that's true. So...perhaps it's better to just ditch that idea. >> >> Just display spaces over every '-' character (and upper-case letters >> at word beginnings): >> >> (concat (propertize "f" 'display "F") >> "ill" >> (propertize "-" 'display " ") >> (propertize "c" 'display "C") >> "olumn") > > Actually I meant not concat, but set-text-properties: > > (let ((name "fill-column")) > (set-text-properties 0 1 '(display "F") name) > (set-text-properties 4 5 '(display " ") name) > (set-text-properties 5 6 '(display "C") name) > (insert name)) I think that's a good idea. --00000000000031405e05aebe7463 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Juri Linkov <juri@li= nkov.net> writes:

>>>>> What I liked about the= 'display approach is that it didn't seem to
>>>>>= ; require changes in the describe-* commands to work...
>>>>=
>>>> That is a good point, and it would make C-h v make wor= k automatically.
>>>> But 'display properties are kinda = awkward -- for one, the cursor moves
>>>> over them in a sin= gle skip, so they're a bit confusing in that respect.
>>>>>> Yes, that's true.=C2=A0 So...perhaps it's better to = just ditch that idea.
>>
>> Just display spaces over ever= y '-' character (and upper-case letters
>> at word beginni= ngs):
>>
>> (concat (propertize "f" 'displa= y "F")
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 "ill">> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (propertize "-" 'displa= y " ")
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (propertize "= c" 'display "C")
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0= "olumn")
>
> Actually I meant not concat, but set-te= xt-properties:
>
> (let ((name "fill-column"))
>= ; =C2=A0(set-text-properties 0 1 '(display "F") name)
>= =C2=A0(set-text-properties 4 5 '(display " ") name)
> = =C2=A0(set-text-properties 5 6 '(display "C") name)
> = =C2=A0(insert name))

I think that's a good idea.
--00000000000031405e05aebe7463--