From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs rewrite in a maintainable language Date: Mon, 12 Oct 2015 19:31:13 +0300 Message-ID: <83zizonj5a.fsf@gnu.org> References: <561A19AB.5060001@cumego.com> <87io6dl0h0.fsf@wanadoo.es> <87lhb82qxc.fsf@gmail.com> <561BCD40.5040502@cs.ucla.edu> <87612cyus5.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444667505 1890 80.91.229.3 (12 Oct 2015 16:31:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2015 16:31:45 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 12 18:31:38 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 1Zlg0b-0007Ar-Qd for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 18:31:33 +0200 Original-Received: from localhost ([::1]:56543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlg0b-0007sr-9g for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 12:31:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlg0A-0007rY-TP for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlg08-00064k-5l for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:31:06 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlg07-00064e-US for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:31:04 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NW400D008B5BP00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 12 Oct 2015 19:31:02 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW400DM88JQ8Y30@a-mtaout20.012.net.il>; Mon, 12 Oct 2015 19:31:02 +0300 (IDT) In-reply-to: <87612cyus5.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:191367 Archived-At: > From: Oleh Krehel > Date: Mon, 12 Oct 2015 17:24:26 +0200 > Cc: emacs-devel@gnu.org > > Better encapsulation is definitely needed, and using C++ allows the > compiler to enforce this encapsulation, instead of just grepping > manually to make sure each private isn't used outside of > getters/setters. > > For example, I was trying to write some code to make the mark be > window-local and not buffer-local, just like the point. And it's hard > to see all uses of point wrt window-point, because of insufficient > encapsulation. Maybe a more adequate tool will help. Did you try ID-Utils (already integrated into Semantic to some extent)?