From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#35230: char-displayable-p return code is conflictingly documented Date: Thu, 11 Apr 2019 16:49:29 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44222"; mail-complaints-to="usenet@blaine.gmane.org" To: 35230@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 16:51:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEb31-000BPm-5r for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 16:51:27 +0200 Original-Received: from localhost ([127.0.0.1]:50142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEb30-0002Hh-6S for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Apr 2019 10:51:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEb1f-0001I2-FV for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:50:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEb1e-0006lm-AV for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEb1e-0006ld-2i for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hEb1d-0004ZK-WF for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Apr 2019 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35230 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155499419117533 (code B ref -1); Thu, 11 Apr 2019 14:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2019 14:49:51 +0000 Original-Received: from localhost ([127.0.0.1]:55018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEb1S-0004Yi-Jt for submit@debbugs.gnu.org; Thu, 11 Apr 2019 10:49:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEb1Q-0004YW-4f for submit@debbugs.gnu.org; Thu, 11 Apr 2019 10:49:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEb1K-0006bK-Qz for submit@debbugs.gnu.org; Thu, 11 Apr 2019 10:49:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEb1J-00015p-KL for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:49:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEb1G-0006ZK-Ng for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:49:40 -0400 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:38704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEb1E-0006XV-OQ for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 10:49:37 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id k11so7760754wro.5 for ; Thu, 11 Apr 2019 07:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:mail-copies-to:gmane-reply-to-list:date:message-id :mime-version:content-transfer-encoding; bh=g+nkdotkz5DRNnY5t+QgyWTmmIBucaKB76ewBpD3zeY=; b=l8qZ761L6ikd/uElHfzwZuX0I6Octl5Xy9Tz0ShjKW3pPmbmSGWFOn3EL+1j/ocm67 FvQDC6NfiCX4JG/2nZHLVJx5xoYuoDyf0XYWKlD4uDgmH2ERH1+lsWS7neq5e68WkznH UFjC64oQtSPThOQfSW/IxFZO7o+SxbMtpVNcfuiV2ESQcGy7xKxYtk5Joc2z9azauF1X PXtQGisz9yqDDI7rt0mq1atY+oJH1PI6TezHqJyB1K97CXV/WDJycso+vp96Cr2+tym1 D8Sp8MXmJ9KHHw7jrBRy1ShUaDE775SAuk6pf2k0SDYlZDPk3ihfLHwjCQYgwTLs5tw7 yiWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:mail-copies-to :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=g+nkdotkz5DRNnY5t+QgyWTmmIBucaKB76ewBpD3zeY=; b=DA/pqmyfwwvXw6pfc4wj7t5Z8w3oVv140ew6VVU2l8hMYp4hEbMEn275mjIhQGGSp2 99h/U35yY1E8Qa5SSGc3QOglcxwZ11t82EDXV0JdvxhBSF5VnsHxXOCGvCRxY5obdvV3 jZPNvCnLyucqtY9mitN6FARhbkhSNKllNlBLoEItffX4C69UuO+IRuHCVGuFjSPzUBO5 JbWLn6l6wpex5NeZZLTtnzllKcvfGNhGLO97PmZtUyj0ObbTf0LHxpJcKcxssVhQfRjj /VIZm3flPVhuLtNy5lPu5TA43GgxVK+fW13oFvLokgXvqxMxlS9+3hu/H4SwoI9OcuOp AKGQ== X-Gm-Message-State: APjAAAURNQ9w7DLso1j85WUsy4we1iHBhOcOxI9LEgB4s/CAc9Y6JDIZ wqoIT41sFMRYwG4jox1hkkRIZyW7 X-Google-Smtp-Source: APXvYqxRkd5sukgmkSnokGQmZWTE2E+PsYo1endJi/v714W+EP8j2MD5N5jY1eGvh1idv0GdCD43iw== X-Received: by 2002:a5d:4a4d:: with SMTP id v13mr32589194wrs.169.1554994171264; Thu, 11 Apr 2019 07:49:31 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:d4bb:27ce:9e5e:258f]) by smtp.gmail.com with ESMTPSA id i28sm108629331wrc.32.2019.04.11.07.49.29 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Apr 2019 07:49:30 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157501 Archived-At: (This comes as a result of the stackexchange question at https://emacs.stackexchange.com/questions/48810) char-displayable-p docstring says Return non-nil if we should be able to display CHAR. The elisp manual says something subtly different: This function returns =E2=80=98t=E2=80=99 if Emacs ought to be able to= display CHAR. More precisely, if the selected frame=E2=80=99s fontset has a f= ont to display the character set that CHAR belongs to. The function itself is more in line with the docstring: (char-displayable-p #xE01EF) =3D> unicode since I don=CA=BCt have a font with a glyph for that character, so it ends up displayed as a box with the unicode code point inside it. The code that results in 'unicode has the comment=20=09=20=20=20=20=20 ;; On a text terminal without glyph codes, CHAR is displayable ;; if the coding system for the terminal can encode it. but I=CA=BCm very much on a graphical terminal here, not a text terminal. For comparison, when I do have a font: (char-displayable-p #x2502) =3D> The question is: what should the docstring/manual say? The original intent of char-displayable-p seems to be as a wrapper around internal-char-font to allow asking "do I have a glyph for this character", but that=CA=BCs not what it does today. Robert