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 15:53:59 +0000 Message-ID: References: <83h70kvyyp.fsf@gnu.org> <83pmf7vjxk.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="31792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 58282@debbugs.gnu.org To: Christopher Dimech Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 18:55:34 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 1oflCg-00083t-2p for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 18:55:34 +0200 Original-Received: from localhost ([::1]:55758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oflCe-0002G8-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 12:55:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofkG6-0008Pe-Si for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofkG6-0004m7-KD for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofkG6-0002F7-53 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:55:02 -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 15:55:02 +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.16648988588569 (code B ref 58282); Tue, 04 Oct 2022 15:55:02 +0000 Original-Received: (at 58282) by debbugs.gnu.org; 4 Oct 2022 15:54:18 +0000 Original-Received: from localhost ([127.0.0.1]:54988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofkFN-0002E9-Oh for submit@debbugs.gnu.org; Tue, 04 Oct 2022 11:54:18 -0400 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]:26567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofkFJ-0002Dt-2i for 58282@debbugs.gnu.org; Tue, 04 Oct 2022 11:54:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1664898846; x=1665158046; bh=Y+WLOZq8q2o7ByWn97adlYxvaetZYvrdLq9aa9FH5TM=; 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=mGXSFIBJ2NWhvDswuYcrgM3b2JomHfnt8/EgDfmPd11etCq15g1agfPU4puZHFBlx f1+1akVneA8fPdyO2PMbyu/cl+QcLfF8ViNzz8r8rpR06qxit6762/gbsh8u+SJY0Z X8THwTrirNDWs7jKi7UHiMSvKefpspI2mBPWD/q8VmQqsShftwuG66ht5W6FWxIKNQ veU4I8+vUV9ahOFUIyMAeY8obl16aHgkcR0w3oQn9nPCkq+NGep/BHu6WF98xi1oJB QfVp/uiOHqqmK3yn2bxmOG4xtj6Ev80p+QX3OsYvBR9A9xL/QTzUBEzRH5PAx8Lu9P uzvD+gX8xZ4tA== In-Reply-To: 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:244450 Archived-At: ------- Original Message ------- On Tuesday, October 4th, 2022 at 2:52 PM, Christopher Dimech wrote: >=20 >=20 > > Sent: Wednesday, October 05, 2022 at 2:46 AM > > From: "uzibalqa" uzibalqa@proton.me > > To: "Eli Zaretskii" eliz@gnu.org > > Cc: "Christopher Dimech" dimech@gmx.com, 58282@debbugs.gnu.org > > Subject: Re: bug#58282: Distinguishing glasses-mode display > >=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 > You could just do >=20 > (setq glasses-separator "=E2=9E=BE") >=20 > with the character being a utf8 symbol. =20 I would prefer using utf symbols than changing colours. I am using the following function using hex code for Black Rightwards Arrow= head (defun typex-camelsens () "Splits CamelCase phrases using separator." (interactive) (setq glasses-separator "\u27A4") (glasses-mode)) How can I pass an arbitrary hex code interactively, besides using a default= ?