From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: bind print-integers-as-characters to t in `describe-variable'? Date: Thu, 16 May 2024 09:05:34 +0000 Message-ID: <871q626s9t.fsf@posteo.net> References: <87eda3ju61.fsf@gmail.com> <945DC9F4-7316-4B0F-B507-8B914B6A9FC4@gmail.com> <86v83fthjb.fsf@gnu.org> <875xve71hu.fsf@posteo.net> <865xvejgb2.fsf@gnu.org> 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="34862"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattias.engdegard@gmail.com, rpluim@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 16 11:06:26 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 1s7X4E-0008vD-3x for ged-emacs-devel@m.gmane-mx.org; Thu, 16 May 2024 11:06:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7X3a-0004LB-S2; Thu, 16 May 2024 05:05:46 -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 1s7X3X-0004Ke-7p for emacs-devel@gnu.org; Thu, 16 May 2024 05:05:43 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7X3U-0003w8-52 for emacs-devel@gnu.org; Thu, 16 May 2024 05:05:42 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1B4BF240029 for ; Thu, 16 May 2024 11:05:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715850337; bh=IFCxF+v7Yf6ZURQj03D6yT0Zic2oTfdZGW9r2oXL4LY=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:From; b=Kxi5KtJPN+ZAjJjCHCq9qlW8tJTss9hxwJ31mYfrF3D+vshepyCFaeJhgGaV7a6wH cq/tm7q5O/7h1ZX0nNNqKeuTzezZjcWDIGa0l875F/c1GebWb/LwL//pvEaivVPWju n+ODH57DQu2HGzABgJT9AozjxZ1DBtZ3WiCcooJ919EGQHdtbq6sc07FJuTgyMHrO0 iEs77c/3RgAccsTnX9XTMqAzbrrxh+P/b2O77PlA3jtX8lBncwgHdzQFVmUmzpOG7s bltY6Eq9rEkNmq44F/33MxK8iba+zNgfibi6v5cbrDgJwyMQzqQ2HF7BxXrK9EesTU WRhjzP+X+uuUA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vg41r3gYYz6tvp; Thu, 16 May 2024 11:05:35 +0200 (CEST) In-Reply-To: <865xvejgb2.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 16 May 2024 11:45:37 +0300") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:319286 Archived-At: Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: Mattias Engdeg=C3=A5rd , >> rpluim@gmail.com, >> emacs-devel@gnu.org >> Date: Thu, 16 May 2024 05:46:21 +0000 >>=20 >> Eli Zaretskii writes: >>=20 >> >> From: Mattias Engdeg=C3=A5rd >> >> Date: Wed, 15 May 2024 12:13:49 +0200 >> >> Cc: emacs-devel@gnu.org >> >>=20 >> >> We could have stateful buttons controlling the display, which could >> >> also include things like printing numbers in hex and control chars >> >> in strings as escape sequences. >> > >> > Or maybe the doc string could provide meta-data about how to display >> > such values? >>=20 >> Why not bind it depending on the type of the user option? > > How do you tell "the type of the user option"? E.g. using (get 'fill-column 'custom-type) ;=3D> integer As a heuristic, one could check if a type consists just of characters (e.g. a character, a list of characters, etc.) and only then bind `print-integers-as-characters'. --=20 Philip Kaludercic on peregrine