From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: Emacs rewrite in a maintainable language Date: Mon, 12 Oct 2015 00:37:49 +0200 Message-ID: <87oag5rpz6.fsf@mbork.pl> References: <561A19AB.5060001@cumego.com> <87612des3y.fsf@fencepost.gnu.org> <87pp0lrrlo.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444603125 25470 80.91.229.3 (11 Oct 2015 22:38:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Oct 2015 22:38:45 +0000 (UTC) To: emacs-devel@gnu.org, Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 12 00:38:34 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZlPGB-0004bt-Iz for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 00:38:31 +0200 Original-Received: from localhost ([::1]:50011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlPGA-0005Yf-VZ for ged-emacs-devel@m.gmane.org; Sun, 11 Oct 2015 18:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlPFg-0005Ci-KK for emacs-devel@gnu.org; Sun, 11 Oct 2015 18:38:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlPFd-0000Vu-Dq for emacs-devel@gnu.org; Sun, 11 Oct 2015 18:38:00 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:42189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlPFd-0000Vf-6M for emacs-devel@gnu.org; Sun, 11 Oct 2015 18:37:57 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 886636F2005; Mon, 12 Oct 2015 00:37:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CMTxNxNZ0uMt; Mon, 12 Oct 2015 00:37:54 +0200 (CEST) Original-Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 5DC7B6F2003; Mon, 12 Oct 2015 00:37:54 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191288 Archived-At: On 2015-10-12, at 00:14, John Wiegley wrote: >>>>>> Marcin Borkowski writes: > >> That is, it might be a good idea to move some parts of Emacs core (which are >> not system-dependent or performance-critical, e.g., parts of interactive >> behavior like `self-insert-command' might fit here) from C to Elisp. > > If you can identify functions whose efficiency and behavior are not affected > by moving them to Elisp, that would be a great idea. Hi John, I'm not sure whether you were ironic or not, but assuming you were not, here's my answer: no, I cannot /identify/ them, but sometimes I can /suspect/ them. More seasoned developers should make the decision, though. Sometimes I look up some function or command, and I'm surprised it's defined in C and not Elisp. I could start making notes about those situations. As I said, `self-insert-command' seems a natural candidate. It is probably almost never called from Elisp code, and I would guess it's similar for C code. (One exception might be keyboard macros - if yes, this might be a performance bottleneck.) And btw: is there a way to search for functions according to the filename they are defined in, possibly using a regex, so that one could search e.g. for functions defined in C by specifying "\.c$"? (Drew? Icicles?) > John Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University