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: Dynamic loading progress Date: Tue, 17 Mar 2015 19:08:29 +0200 Message-ID: <83oanry2k2.fsf@gnu.org> References: <83sie7un20.fsf@gnu.org> <54E0D181.2080802@dancol.org> <83r3trulse.fsf@gnu.org> <54E0D7E0.305@87.69.4.28> <83h9unukbg.fsf@gnu.org> <54E0DEF8.7020901@dancol> <83egpruiyp.fsf@gnu.org> <54E0FF93.2000104@dancol.org> <833865vp4d.fsf@gnu.org> <54E2355A.90@87.69.4.28> <83vbj1u020.fsf@gnu.org> <54E24CA4.9020601@dancol.org> <83h9uk7ddb.fsf@gnu.org> <54E382A5.5030408@dancol.org> <85a8zcu8gn.fsf@stephe-leake.org> <834mpkymrg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1426612139 1396 80.91.229.3 (17 Mar 2015 17:08:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2015 17:08:59 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, stephen_leake@stephe-leake.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 17 18:08:51 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 1YXuz4-0001I4-Kz for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2015 18:08:50 +0100 Original-Received: from localhost ([::1]:56062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXuz3-0003MR-SA for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2015 13:08:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXuyy-0003Eo-RQ for emacs-devel@gnu.org; Tue, 17 Mar 2015 13:08:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXuyv-000728-Ie for emacs-devel@gnu.org; Tue, 17 Mar 2015 13:08:44 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:33373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXuyv-00071w-9f for emacs-devel@gnu.org; Tue, 17 Mar 2015 13:08:41 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NLD004008WTYY00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 17 Mar 2015 19:08:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLD004AW8YFQA60@a-mtaout22.012.net.il>; Tue, 17 Mar 2015 19:08:39 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:183964 Archived-At: > From: Stefan Monnier > Cc: Aur=E9lien Aptel , > stephen_leake@stephe-leake.org, emacs-devel@gnu.org > Date: Tue, 17 Mar 2015 12:37:27 -0400 >=20 > > Actually, most accesses to buffer text do precisely that: access = one > > character at a time. The API typically accepts the buffer positi= on. > > Why do you think this is inefficient? >=20 > For efficient parsing (as done by forward-word, forward-sexp and > friends), I think you need to keep both the current "charpos" and > "bytepos", but Elisp interfaces don't give access to this level. The API we provide for accessing buffer text should handle that as well. For example, we could model it on FETCH_CHAR_ADVANCE.