From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: bind print-integers-as-characters to t in `describe-variable'? Date: Wed, 15 May 2024 14:32:01 +0200 Message-ID: <877cfvjlxa.fsf@gmail.com> References: <87eda3ju61.fsf@gmail.com> <945DC9F4-7316-4B0F-B507-8B914B6A9FC4@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="35840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 15 14:33:05 2024 Return-path: Envelope-to: ged-emacs-devel@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 1s7Dof-00093K-46 for ged-emacs-devel@m.gmane-mx.org; Wed, 15 May 2024 14:33:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7Dnz-00060A-GJ; Wed, 15 May 2024 08:32:23 -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 1s7Dnk-0005yy-Py for emacs-devel@gnu.org; Wed, 15 May 2024 08:32:16 -0400 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7Dnj-00010U-9T for emacs-devel@gnu.org; Wed, 15 May 2024 08:32:08 -0400 Original-Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-34d7b0dac54so3922910f8f.0 for ; Wed, 15 May 2024 05:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715776324; x=1716381124; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=j7UevbwPfIMZADpuPoM5Gk4w1AtZXw5kKSWuPI+Sp9s=; b=iG3R3iliNF5VPiSfaawkE9a4WI8SwJ2b8BAURBd3EobUWf1YGo9GvKoQ4/jD+oyiSB xuHjrGedt7JX33G+t3Yvujgog8MFFRSv+E2SK0C7xTBKhvav9HAqEI1IY/b1xlNnud/y O4geF6XktQRBc8wAKpFpYUELAktdPCd2q4g2ObNIn4Z0C/Wez9y/+Wi7KQmache/FGlv L0p//+u1VpdX8A5FcJ0tXFI4SLvJPaWXgvTgLU9yA2Gpia8diRcNpzVLz6XC4+6frDks zSCzLiq0VEgbAxwYqGGXSQtoKGSxQ2XAAtKEglgPB6lpQWGp9vOJ2DIxsk+oQ/FznY94 Sp5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715776324; x=1716381124; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j7UevbwPfIMZADpuPoM5Gk4w1AtZXw5kKSWuPI+Sp9s=; b=N/XH3XOu/bG5WvuThue4DRLZhhCbgTsyVyQUzdkIsBmmZsYQCHL8AP6q1y/NsExFap K6s/Hzr8tVwtkoILtjE1kYmc+aLlXlm09z7xkRRKp17OATMLDH86eIjS9PbM8bBCxnWI s0MTCP3WYCGkjL+sGMcFzr2uustMuw2shm75D81sGSw+sPw3Af38q18nmL+gmZuFNf01 vyNKqy9rJBIaQejfXdgv7+FoKlNzUWipMWzqjLsqai8fre3raKzzfs0ctkn1MMQcP8xj 9Hq2MxZN1EfnrA8g1jyeMIBNUhjHf7LUJ9qy/x633WTWCgojvrp3p4o6pluPkgdYqEIC ZD1w== X-Gm-Message-State: AOJu0Yw4rcVq4Dd6nGLTY7ZKxIlISzzHfiS8oOVtU+H4gewDI/cUc7K8 Lamp6/o2bu+dSbt592JIQqdLVAPreXQu0YKXZ9uW3pjgwIfkFFfDe6oTbw== X-Google-Smtp-Source: AGHT+IFCirX2nBOkIqLfg+ZVoc8mI7IndVk7U1KdeJoGwR9/Trityh1is+vltZYJcSIrcstKX0OfAw== X-Received: by 2002:a05:6000:1e8b:b0:351:c6f4:2f49 with SMTP id ffacd0b85a97d-351c6f43056mr4460463f8f.32.1715776323794; Wed, 15 May 2024 05:32:03 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b8a791esm16412520f8f.64.2024.05.15.05.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 05:32:02 -0700 (PDT) In-Reply-To: <945DC9F4-7316-4B0F-B507-8B914B6A9FC4@gmail.com> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Wed, 15 May 2024 12:13:49 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319255 Archived-At: >>>>> On Wed, 15 May 2024 12:13:49 +0200, Mattias Engdeg=C3=A5rd said: Mattias> 15 maj 2024 kl. 11.33 skrev Robert Pluim : >> It makes the display of eg `electric-quote-chars' much more readable Mattias> And `fill-column` much less readable. On balance, the Mattias> loss of readability for numbers that are not characters Mattias> seems to outweigh the gain for those that are. We could add a limit to print-integers-as-characters above which it takes effect (default '0'). Or we could look at the custom-type of the variable to see if it is or contains 'character'. Mattias> We could have stateful buttons controlling the display, Mattias> which could also include things like printing numbers in Mattias> hex and control chars in strings as escape sequences. I=CA=BCm not entirely sure you=CA=BCre being serious here :-) , but that se= ems like overkill. Robert --=20