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: Tue, 3 Apr 2018 15:49:47 -0700 (PDT) Message-ID: <45cf4063-28dd-45ff-a3b9-c8bd6b13ab74@default> References: <5f1e960c-483f-4902-b4c2-b7a4ca3b04f4@default> <322e2e1f-ecff-7077-cdf2-cc981cff97e4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522795724 32499 195.159.176.226 (3 Apr 2018 22:48:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2018 22:48:44 +0000 (UTC) To: =?utf-8?B?Q2zDqW1lbnQgUGl0LUNsYXVkZWw=?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 04 00:48:39 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 1f3UjH-0008LN-Ja for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2018 00:48:39 +0200 Original-Received: from localhost ([::1]:42059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3UlN-00043h-1k for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2018 18:50:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3UkZ-00042V-0P for emacs-devel@gnu.org; Tue, 03 Apr 2018 18:50:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3UkU-0001YJ-TY for emacs-devel@gnu.org; Tue, 03 Apr 2018 18:49:59 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:56826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f3UkU-0001Y1-Jt for emacs-devel@gnu.org; Tue, 03 Apr 2018 18:49:54 -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 w33MhmaO128384; Tue, 3 Apr 2018 22:49:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=7b76+5edN/Lv5aC8vXqghgDjYFpa1gEpMbRKh3fpD2Q=; b=Bai3jV0U43+aPpoMw6/tCvARG71/sCxbXrQvfK1HdOhA3Hm/SMc4G4mxE+pFe1sNUhax HAV6j9uQjBTBDUeaNgI/1jl1bUu5fXMOhuh9fLhKVQUZwr0gB1EAi5GNVJS2LMktMvuw szrz01HPAQXvfHpSMF1rxXk4YNVJPvAZNXV2h8Tl2IWjoqWDkfzexAG6GgaH73/C49Ct RvGYfeeRQU5eYU800fEUckQcveh410ReCO+GzCBO3I7q4NiHeP+hBQpNF4lGtMHTgDyV luh/kKLXMv23MZ0fpe1nlpUWNWJe6kkmt5c2IGhYZ7Bkum/n1Vdp5A4xhvpmE2Io2Uuy WA== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2h4jnmg0kn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Apr 2018 22:49:51 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w33Mno8x005162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 3 Apr 2018 22:49:50 GMT Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w33MnoES012454; Tue, 3 Apr 2018 22:49:50 GMT In-Reply-To: <322e2e1f-ecff-7077-cdf2-cc981cff97e4@gmail.com> 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=8852 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804030221 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:224292 Archived-At: > > Could we maybe split `simple.el'? > > > > Because there are a few parts of it that contain odd characters, > > when I visit it it takes almost 2 minutes (!) for it to finally > > get displayed. I rarely need to access those parts of the file > > that are problematic - I typically just want to see the code for > > some relatively common function. > > > > The file is also quite large. > > > > How about splitting it up, in particular, moving the parts that > > use oddball chars to a different file? >=20 > Shouldn't we rather fix your display issue? > Which version of Emacs are you on? Any version after 24.5 (e.g. 25-27). In the past I was getting a lot of crashes in the same context, but it seems that some bugs related to fonts got fixed or something. The problem is apparently just that I have a lot of installed fonts etc. and simple.el now contains chars that make the font-search take a long time with a lot of fonts (or perhaps with particular fonts, as for `char-displayable-p'). I (and others, AFAIK) see such slowdowns due to font stuff. We've been through this many times, with Eli generally pointing out what the problem is (fonts). AFAIK, there's nothing to be done here, apart from uninstalling fonts. But, since you asked, there still is at least bug #30539, which I would like to see fixed if possible. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30539 I can work around that bug by setting variable `inhibit-compacting-font-caches' to t. But even if it is t it takes 2.5 minutes or so for simple.el to show its text. Anyway, besides my font-related slowdown, which I can live with, `simple.el' is pretty large. I thought perhaps it was time anyway to split some of it off. If not, so be it - just a suggestion. Does everything there belong there?