From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Split `simple.el'? Date: Wed, 4 Apr 2018 16:44:25 -0700 (PDT) Message-ID: <7f2c9bf4-790a-4184-a203-4dcfef71e0af@default> References: <5f1e960c-483f-4902-b4c2-b7a4ca3b04f4@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522885516 19487 195.159.176.226 (4 Apr 2018 23:45:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2018 23:45:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 05 01:45:12 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3s5Y-0004yt-36 for ged-emacs-devel@m.gmane.org; Thu, 05 Apr 2018 01:45:12 +0200 Original-Received: from localhost ([::1]:39697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3s7d-0002wG-Jw for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2018 19:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3s4u-0000tX-Jx for emacs-devel@gnu.org; Wed, 04 Apr 2018 19:44:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3s4r-0006P3-Gp for emacs-devel@gnu.org; Wed, 04 Apr 2018 19:44:32 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:56792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f3s4r-0006Om-7N; Wed, 04 Apr 2018 19:44:29 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w34NIjmg181972; Wed, 4 Apr 2018 23:44:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=gbkEHV9p/nrKAb4ca+nokt3YIdo7Bk9biEIgmHUtZKQ=; b=OQngzwECKm/h7/T5H3gXT6C7FKVNXBCQTCm23nth0rWZtV9E/fUJDug8vIjFFAxjBcZQ LmX4LEiknkZ6MtHX+uTyyeiSnMDFwN7Qm1ZnnZUjCxQViLZJa/a6vB4ItC1bhcvIVZoP UfTPFNZmgN575cnfjDpg2v/tj5hQpHFgDY0nVfIpJMbPBZV2ImZU6PWSaVSFSbPSBz8V RC7LrUU3js+rWAFDWLQOq3pKR+TlrS5H9mLbg3vajqj4YKAzthnMUrmF9nnvt7jGhzkW /jCNqQX51yjx/5Yhv9YSaWcmta1eHXpV4JVFmWh12h2DusNhMuqZ/aCT89x9l/+gT7Sy oQ== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2h588p81uf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Apr 2018 23:44:27 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w34NiQXr009176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Apr 2018 23:44:26 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w34NiQUf023427; Wed, 4 Apr 2018 23:44:26 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8853 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=572 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804040225 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:224341 Archived-At: > On a similar note, I've been meaning to rebind C-h h, because every time = I > mistakenly hit it, Emacs completely locks up for about 30 seconds as it > fetches all those various Unicode characters to display. How long does th= at > take for you? emacs -Q: 1 min 15 sec my setup: 1 min 30 sec > What would be nice is if all those characters rendered immediately as box > characters, and then filled in font-lock-style as the renderings were > found. Yes. But for some situations it can make more sense to render all together (less mystery/surprise), rather than bit by bit. And in some contexts it makes sense to give users control over whether to try to show the glyphs at all. E.g., in my library `apu.el', because of the slowdown from calling `char-displayable-p', and because showing the glyphs is not always the most important thing for this library, users have an option, `apu-match-only-displayable-chars-flag', whose initial, default value is (< emacs-major-version 25). ,---- | apu-match-only-displayable-chars-flag is a variable defined in `apu.el'. | Its value is nil |=20 | Documentation: | Non-nil means filter out chars not displayable (`char-displayable-p'). | | NOTE: |=20 | Starting with Emacs 25, `char-displayable-p' can be extremely slow if | the new variable `inhibit-compacting-font-caches' is nil, which it is | by default, and if you have many, or large, fonts installed. For this | reason the default value of `apu-match-only-displayable-chars-flag' is | nil for Emacs 25 and later. This seems to be the case if you have MS | Windows TrueType fonts installed, for instance. |=20 | If you want to be able to exclude non-displayable characters in Emacs | 25+, then set `apu-match-only-displayable-chars-flag' to non-nil. If | you find that this makes APU commands such as `apropos-char' extremely | slow then set variable `inhibit-compacting-font-caches' to `t'. |=20 | You can customize this variable. `----