From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Justin Burkett Newsgroups: gmane.emacs.help Subject: Re: Setting 'which-key-dont-use-unicode' Date: Sun, 23 Jun 2024 21:44:44 -0400 Message-ID: References: <877ceftlof.fsf@gmail.com> 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="17327"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, Philip Kaludercic To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 07:14:13 2024 Return-path: Envelope-to: geh-help-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 1sLc1t-0004GM-AO for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 07:14:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLc1I-00086b-6M; Mon, 24 Jun 2024 01:13:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLYlP-0002YN-K9 for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 21:44:59 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLYlN-0007Oa-T1 for help-gnu-emacs@gnu.org; Sun, 23 Jun 2024 21:44:59 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-57d26a4ee65so3444393a12.2 for ; Sun, 23 Jun 2024 18:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burkett-cc.20230601.gappssmtp.com; s=20230601; t=1719193496; x=1719798296; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XZNaVbVmiT7/si2wyCJWiocuGMRor3X11ZYwto/EmOg=; b=Gxnu+MEV5mzN8pGr9WW2bqyHQIm0oMD7hkLd48ExwN/7jNkReNViyMcCUKeDtXpICe gGMa4Va8Kye9DtbMPsZ26sST6Id7a3dD6I08se/nbBqbR9h5J0qHaLX0EFvvfJp/QZQW upu4ZK8J70u6q+ARabg/M2OYi8IeNx7j+8tD+HsFfcUAWicBtuh78iS8fjHB5qOk4JLq R8qihCkOFSYYxJmICCPFH+sHq+GFYcxRKvelfNYtbsNc6HjsrdR/GMz+tXzCtRx547uo +YiSoMY+27k7CpmuMR+uNrgrx6EKlDZyVrDQc94uJGRIdEz2FcWlE5ev4XJCmgm7QiHD UBAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719193496; x=1719798296; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XZNaVbVmiT7/si2wyCJWiocuGMRor3X11ZYwto/EmOg=; b=ugxCcjXPe+oZMRW+hq3HswwBUloDChuPKufBG1wVJ9CpVL9y5mVWi4XQ4HOvW+EyxM gc6pURCEJsTfnwWyWJAPefRXLT9uITml1t2EMDUTx1mF4dbnwN39jqaNZjFUI0UIlChX 1yz0JOLeZ/Wsn7MsKXrN+8AIyeTNlrRJwZHND+I41eBiKz2ce4oIP8M554FAsclnEP2e 4f7GsKAqjkreJgyc0LOOW71gGuxqhZSNPMwhOjmE9lzDw7PF/3TXnWn4JrvdoKSeEtG1 uAJAit3r5/lru7gJtvngdjHgZQ8uhuNu2vk6M27m3Xy26xWdNy+qczKT/Ye+bCgCKIP3 Rk2w== X-Gm-Message-State: AOJu0YxZjmpVIFLo4YmfOTRqxy6TNIv4/VcG9/367YiriM+djXCR+LPd lqy1nQzKQrCXotBGcSZK+zXshnBifxKxSWxMzhCCs6qlO0h1dD3CzXySOIGW2fh9rA2+vek5+CA FPwrP4YIrKy69+i3SEf/bnJFsZBKj2c+plb55HsziIdBLgkiWru0= X-Google-Smtp-Source: AGHT+IFDoldENUtVIO08QEdLYlR8NESFr2G7qFlg1/7jz7kVQqnhLDK3sI2VavnC60XZjuE7PujKPMwFHxiUwag8AYQ= X-Received: by 2002:a50:a693:0:b0:57c:68fd:2bc9 with SMTP id 4fb4d7f45d1cf-57d49c976d1mr2313246a12.3.1719193495221; Sun, 23 Jun 2024 18:44:55 -0700 (PDT) In-Reply-To: <877ceftlof.fsf@gmail.com> Received-SPF: none client-ip=2a00:1450:4864:20::52a; envelope-from=justin@burkett.cc; helo=mail-ed1-x52a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Jun 2024 01:13:33 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146971 Archived-At: Hi, First, don't set which-key-mode as a custom variable. This is a function that should be called after which-key is loaded. For your original question, the important thing is that which-key-dont-use-unicode is set before which-key is loaded. (c) definitely won't work for this reason. The fact that (d) is working, which takes this logic to the extreme, but the others are not suggests that something is causing which-key to load before the variable is set. Combining the two ideas, try (use-package which-key :custom (which-key-dont-use-unicode nil) :config (which-key-mode t)) If that doesn't work, look for another culprit that might be loading which-key (perhaps because it depends on it) earlier. Justin On Sun, Jun 23, 2024 at 5:05=E2=80=AFPM K=C3=A9vin Le Gouguec wrote: > > Hello! > > Paging help-gnu-emacs before filing a bug because I'm not sure of the > intended behavior. After seeing 2024-06-18 "Disable usage of unicode > for which-key by default" (cc0a3a5f65b), I promptly went to my .emacs to > opt in to Unicode symbols, and was surprised to meet some resistance. > > In an Emacs built from 2024-06-23 "; Fix typos" (fb11294d415) on the > emacs-30 branch, I tried > > (a) this .emacs: > > (use-package which-key > :custom > (which-key-dont-use-unicode nil) > (which-key-mode t)) > > (b) this .emacs: > > (custom-set-variables > '(which-key-dont-use-unicode nil) > '(which-key-mode t)) > > (c) an empty .emacs, then > > M-x which-key-mode > M-x toggle-option which-key-dont-use-unicode > > (d) a combination of this .emacs: > > (use-package which-key > :custom > (which-key-mode t)) > > with this .emacs.d/early-init.el: > > (setq which-key-dont-use-unicode nil) > > and only attempt (d) yielded which-key messages with '=E2=86=92' instead = of ':' > for the separator symbol (resp. '=E2=80=A6' instead of '..' for truncati= on). > > Wondering if I am doing something wrong (a definite possibility, the > perils of juggling ${HOME}s for repro purposes), if (d) really is the > intended way to effectively unset which-key-dont-use-unicode, or if this > is a potential bug report or feature request?