From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: evaluating numbers Date: Tue, 12 Nov 2019 22:28:41 +0200 Organization: LINKOV.NET Message-ID: <87a791nntq.fsf@mail.linkov.net> References: <875zjw2emg.fsf@gmx.net> <618B38D9-CD34-4200-8CA1-1A6B0922A83A@traduction-libre.org> <871ruk2d3f.fsf@gmx.net> <3C929D7B-1C10-4713-9EDA-55C80FC36AD8@traduction-libre.org> <835zjvg385.fsf@gnu.org> <83sgmyd6rw.fsf@gnu.org> <835zjucwbz.fsf@gnu.org> <628A3663-BDD3-47C5-B4F4-E260FD900691@traduction-libre.org> <83o8xla50f.fsf@gnu.org> <8336ex9sow.fsf@gnu.org> <4836980E-C425-466C-BB86-5E962C4B3F96@traduction-libre.org> <87zhh440lw.fsf@hase.home> <87y2wn7ot1.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="156924"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Jean-Christophe Helary , Emacs development discussions To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 12 22:11:02 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iUdRF-000edP-I3 for ged-emacs-devel@m.gmane.org; Tue, 12 Nov 2019 22:11:02 +0100 Original-Received: from localhost ([::1]:39556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUdRE-0001IN-0k for ged-emacs-devel@m.gmane.org; Tue, 12 Nov 2019 16:11:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59733) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUdQi-0001ID-Ka for emacs-devel@gnu.org; Tue, 12 Nov 2019 16:10:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUdQh-0006Db-Da for emacs-devel@gnu.org; Tue, 12 Nov 2019 16:10:28 -0500 Original-Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]:7451) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iUdQg-0006Ck-SW for emacs-devel@gnu.org; Tue, 12 Nov 2019 16:10:27 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id EDC4B1A1BCE; Tue, 12 Nov 2019 21:10:23 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a75.g.dreamhost.com (100-96-60-110.trex.outbound.svc.cluster.local [100.96.60.110]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 068441A1BDF; Tue, 12 Nov 2019 21:10:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a75.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 12 Nov 2019 21:10:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Arithmetic-Abiding: 52df9f8276dd407f_1573593023263_374485842 X-MC-Loop-Signature: 1573593023263:199127430 X-MC-Ingress-Time: 1573593023262 Original-Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id D2B0B9D7BE; Tue, 12 Nov 2019 13:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=qP79RGmR6WYmtN45bCBDs9vV3xI=; b= UDjplYFgkOSabxl+Kk7v8LbXBc9TAOjE9shkFhQ7xVkXalcysFtadFuxsay0Ch5j 1CYvdm9NaUjzp5cT4fFrGJwVwRRNRser1dXoqosZoSybDaNTqssX1aNBmOYq4Q3L 5yH8/Rm4r27ihWHsrA395OAqsfm7ps1Yg7npfK7uFws= Original-Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id AB94F9D7C8; Tue, 12 Nov 2019 13:10:14 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a75 In-Reply-To: <87y2wn7ot1.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 10 Nov 2019 22:52:20 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.209.48 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242115 Archived-At: >>> That way I *know* when an integer is a character and when it is not. >> >> Set eval-expression-print-maximum-character to (max-char). > > eval-expression-print-maximum-character is a customizable variable, > but has no option for max-char. Should it? diff --git a/lisp/simple.el b/lisp/simple.el index 47d4adb0fd..8b1f9e3e52 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1561,7 +1561,9 @@ eval-expression-print-maximum-character This affects printing by `eval-expression' (via `eval-expression-print-format')." :group 'lisp - :type 'integer + :type `(choice (const :tag "ASCII characters" 127) + (const :tag "Maximum number" ,(max-char)) + (integer :tag "Custom number")) :version "26.1")