From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marco Correia Newsgroups: gmane.emacs.xemacs.design,gmane.emacs.devel Subject: emacs kpart Date: Fri, 4 Jul 2003 15:33:03 +0000 Sender: xemacs-design-admin@xemacs.org Message-ID: <200307041533.03863.mvc@netcabo.pt> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1057328799 26879 80.91.224.249 (4 Jul 2003 14:26:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2003 14:26:39 +0000 (UTC) Original-X-From: xemacs-design-admin@xemacs.org Fri Jul 04 16:26:38 2003 Return-path: Original-Received: from gwyn.tux.org ([199.184.165.135]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19YRWH-0006zP-00 for ; Fri, 04 Jul 2003 16:26:38 +0200 Original-Received: from gwyn.tux.org (localhost.localdomain [127.0.0.1]) by gwyn.tux.org (8.11.6p2/8.9.1) with ESMTP id h64ER1101283; Fri, 4 Jul 2003 10:27:01 -0400 Original-Received: (from turnbull@localhost) by gwyn.tux.org (8.11.6p2/8.9.1) id h64EQnI01233 for xemacs-design-mailman@xemacs.org; Fri, 4 Jul 2003 10:26:49 -0400 Original-Received: (from mail@localhost) by gwyn.tux.org (8.11.6p2/8.9.1) id h64EQix01200 for turnbull@tux.org; Fri, 4 Jul 2003 10:26:44 -0400 Original-Received: from smtp.netcabo.pt (smtp.netcabo.pt [212.113.174.9]) by gwyn.tux.org (8.11.6p2/8.9.1) with ESMTP id h64EQh101196 for ; Fri, 4 Jul 2003 10:26:43 -0400 Original-Received: from 192.168.0.238 ([213.22.113.67]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.5329); Fri, 4 Jul 2003 15:22:55 +0100 Original-To: emacs-devel@gnu.org, xemacs-design@xemacs.org User-Agent: KMail/1.5 Content-Disposition: inline X-OriginalArrivalTime: 04 Jul 2003 14:22:55.0958 (UTC) FILETIME=[C30D7760:01C34237] X-XEmacs-List: design Errors-To: xemacs-design-admin@xemacs.org X-BeenThere: xemacs-design@xemacs.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of design and features for XEmacs. List-Unsubscribe: , Xref: main.gmane.org gmane.emacs.xemacs.design:2172 gmane.emacs.devel:15374 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15374 Hi all, I'm considering creating a KPart (which is a kind of KDE component suitable to be integrated within KDE programs, in a certain way equivalent to Gnome's bonobo or Windows OLE), for integrating emacs in kde apps. The basic idea is to launch an emacs process in the background and use the gnuclient-gnuserv functionality to pass the user keystrokes to the emacs process. The outcome of the user actions (modifications on the current buffer) would then have to be collected from the emacs buffer. So here is the issue: Is there a way to store the contents of the current buffer and then, after some modification, retrieve only the part that have changed? I know that there are some functions for retrieving the entire or part of the buffer (e.g. buffer-string,buffer-substring) but if I don't know which parts have been modified after some point, my only choice is to retrieve the entire buffer, which is of course very inneficient. Also, before I go deeply into this, I really would like to hear from an emacs expert what he/she thinks of this idea, or if it this impossible by some obvious reason that I don't know about. thanks -- Marco Correia