From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58282: Distinguishing glasses-mode display Date: Tue, 04 Oct 2022 17:28:21 +0000 Message-ID: References: <83h70kvyyp.fsf@gnu.org> <83pmf7vjxk.fsf@gnu.org> <83ilkzv9lu.fsf@gnu.org> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40060"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dimech@gmx.com, 58282@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 19:29:18 2022 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 1ofljK-000ACl-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 19:29:18 +0200 Original-Received: from localhost ([::1]:35002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofljI-0000M8-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 13:29:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oflj4-0000HA-Jh for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 13:29:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oflj4-00080i-57 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 13:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oflj3-0004eA-M0 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 13:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 17:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 58282-submit@debbugs.gnu.org id=B58282.166490452117831 (code B ref 58282); Tue, 04 Oct 2022 17:29:01 +0000 Original-Received: (at 58282) by debbugs.gnu.org; 4 Oct 2022 17:28:41 +0000 Original-Received: from localhost ([127.0.0.1]:55100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oflii-0004dX-KT for submit@debbugs.gnu.org; Tue, 04 Oct 2022 13:28:40 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:32173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oflie-0004dI-4G for 58282@debbugs.gnu.org; Tue, 04 Oct 2022 13:28:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1664904509; x=1665163709; bh=7E4mtwHU7KAiG2c7knYkG6Yhovm2Km6aABgTlHmz8HE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=TRl4W35tZ3U2ux3GUDAFehANxhvcLVSrkae1+UnrF9C39ujDEhFBF/mk/VZ6/XtQX CQ4dBH596D+40JXFKXeIvQZZCvCHwiwP8hdztWZYQ9cB84zJWXRzXtZyOvQfgByG1S D09E3qiahj7RjhJ7BdkHaZuyCT03ZNWxHbS2wlfr+TWcASIgtu8Oi+t7hNeMtasIxL aQkEwI0Gn9mt8SxBCRppCCOKIforBxkJ88bINsf5SliYUrRLTaxB0ei9nHWmqTVnB4 sB0Rd/NP2BMZBu0LIdZgaRHDGrVIPbzC7hmyvn8/qeM2eAHUq1o7oN+iLJy+7vHpjg ko3pI0TGMAZZQ== In-Reply-To: <83ilkzv9lu.fsf@gnu.org> Feedback-ID: 52887082:user:proton 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:244457 Archived-At: ------- Original Message ------- On Tuesday, October 4th, 2022 at 4:26 PM, Eli Zaretskii wrot= e: > > Date: Tue, 04 Oct 2022 14:46:16 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: Christopher Dimech dimech@gmx.com, 58282@debbugs.gnu.org > >=20 > > ------- Original Message ------- > > On Tuesday, October 4th, 2022 at 12:43 PM, Eli Zaretskii eliz@gnu.org w= rote: > >=20 > > > > From: Christopher Dimech dimech@gmx.com > > > > Cc: uzibalqa uzibalqa@proton.me, 58282@debbugs.gnu.org > > > > Date: Tue, 4 Oct 2022 13:47:33 +0200 > > > >=20 > > > > > I think we have this already: customize glasses-face to some dist= inct > > > > > face, like 'bold'. Then the capital letters of identifiers where > > > > > glasses.el inserted underscores will be shown in bold, and you ca= n > > > > > visually distinguish them from the original underscores. > > > >=20 > > > > Because I use bold font the default does not work for me. > > >=20 > > > ??? What default? The default is that glasses-face is just nil, so no > > > special face is put on any parts of the identifiers. 'bold' was just > > > an example of a non-default face; you can use any face there. > > >=20 > > > > I want to make the changes in my init file. How can I change the > > > > foreground and background colour of the glasses matches? > > >=20 > > > You can't. This face is not about changing the matches, it is about > > > changing the appearance of the capital letters in identifiers where > > > glasses-mode adds the separator (which is underscore _ by default) > > >=20 > > > > Is it possible for users to use a UTF8 Code as separator, and if so= , > > > > how can this be done? > > >=20 > > > Customize the variable glasses-separator. (This has nothing to do > > > with the original bug report, though.) > >=20 > > How can I change the colour of the capital letters or use utf8 using > > elisp commands? >=20 >=20 > I answered both questions above. What is unclear? Been focusing on getting this to work (defun camelsens (hexcode) "Splits CamelCase phrases using separator." (interactive (list=20 (completing-read "Utf8_hex_code: " '("\u27A4" "\u25BA" "\u2192") nil = t "\u2192"))) (setq glasses-separator hexcode) (glasses-mode)) But this only works the first time I call the function.