From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#25355: 26.0.50; Provide function to non-destructively replace buffer contents Date: Sun, 07 May 2017 18:21:35 +0000 Message-ID: References: <8337cgee4h.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0d21c2f53109054ef331f4 X-Trace: blaine.gmane.org 1494181342 1760 195.159.176.226 (7 May 2017 18:22:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 May 2017 18:22:22 +0000 (UTC) Cc: 25355@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 07 20:22:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1d7Qox-0000Ei-G5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 May 2017 20:22:15 +0200 Original-Received: from localhost ([::1]:56377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Qoz-0003Iy-Q2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 May 2017 14:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Qon-0003Cl-Fy for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7Qok-0001Fl-Co for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7Qok-0001FT-9N for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7Qok-0004C3-1b for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 May 2017 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25355 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25355-submit@debbugs.gnu.org id=B25355.149418131416106 (code B ref 25355); Sun, 07 May 2017 18:22:01 +0000 Original-Received: (at 25355) by debbugs.gnu.org; 7 May 2017 18:21:54 +0000 Original-Received: from localhost ([127.0.0.1]:60629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7Qoc-0004Bi-CJ for submit@debbugs.gnu.org; Sun, 07 May 2017 14:21:54 -0400 Original-Received: from mail-wr0-f178.google.com ([209.85.128.178]:36233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7QoZ-0004BT-Fp for 25355@debbugs.gnu.org; Sun, 07 May 2017 14:21:52 -0400 Original-Received: by mail-wr0-f178.google.com with SMTP id l50so28187743wrc.3 for <25355@debbugs.gnu.org>; Sun, 07 May 2017 11:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OeNXL4oR8s6nUEjsoHKhh1bJCuMPuqYzOWLUDRbepTc=; b=XHO2iJAo4DXXJP58tHqTiNZMbXzP9j8zLETvXOtRzlh5hDej82eZooXmi9frv/IpIi ZxUOW/4IJcxPqUojDQQCKRiM2BmFVGdtKg7mimBzR5uiTYTl6TMuynR5Vv2iWQjCMkSw +b+j7PX/L8DmL5GqK2gR8X1WKsIRh3reQ/ewL16oN/Pru4G6lVf92hZiGmjt2FJxfY57 Zqw7y6rLJ11SGR3UsNHJ9HVc4Fdz4MrPROGYShDOPq/i9NtH/RvEDNabYUFwXWBzI3WN /MCa5gw1azBXVh8+OBVCO0JYs03DSWzXPKEsHpUUJrt41fKca/2/NVEmzZhW9Ad8VhJB uKJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OeNXL4oR8s6nUEjsoHKhh1bJCuMPuqYzOWLUDRbepTc=; b=DSvDKTvTeMUp6zHj7CYPeI5QWixosN+wenjKhAWcWiML2zz0woCau5vmZ/59qkt/UR /HwB9q/ruUkTHN+fFroYzlpGXNjrrkvhnVTjUiglP6oPSP5FnTbI717D+nlK6AT0wY30 XWqRgxEVtS3yDfUFeJb5qMimIMIMo+01yGnyjSsjmjSC+EgRarniqQEuzmN2eTI3Rfd+ eK2O3cqOHmNmdUqaJJpwThaTYDw/GAGOBgRVCKxR0TZotBXuBPCqk8W4PSl6kVS1V3Fp CZ2UlXOQ/j2TTenUuVLZRGNIroi7chWq3i0MA1smTUO/YW2FuOsC9ruu4mPvApjlPSsE 2GTw== X-Gm-Message-State: AN3rC/7YwmwFho3e9e00q7153byfGBgo+6hmAoBs/rhbWWukUyO1gJcB zO2IYQcTUia4VclEj7gybhTczwTtLg== X-Received: by 10.223.148.35 with SMTP id 32mr29621914wrq.175.1494181305723; Sun, 07 May 2017 11:21:45 -0700 (PDT) In-Reply-To: <8337cgee4h.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132353 Archived-At: --94eb2c0d21c2f53109054ef331f4 Content-Type: text/plain; charset=UTF-8 Eli Zaretskii schrieb am So., 7. Mai 2017 um 20:06 Uhr: > > From: Philipp Stephani > > Date: Sun, 07 May 2017 17:44:27 +0000 > > > > FYI, I've now implemented this based on libmba ( > http://www.ioplex.com/~miallen/libmba/). Unless there are > > concerns importing part of that library into the Emacs source tree, I'll > send a patch. > > I'm not sure I understand what you mean by "importing part of that > library". Are you going to ask the author to sign legal papers > assigning copyright to the FSF? > I guess we can just use the library as-is? It's MIT-licensed. > > P.S. Doesn't GNU Diff have code to do this? Sure, but it's not a library. libmba was the only library that I've found so far with a usable interface (i.e. that doesn't assume that the input sequences are byte arrays). > Even dispnew.c has > something similar, see scrolling_window. > That doesn't appear to be reusable. --94eb2c0d21c2f53109054ef331f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= So., 7. Mai 2017 um 20:06=C2=A0Uhr:
p.stephani2@gmail.com>
> Date: Sun, 07 May 2017 17:44:27 +0000
>
> FYI, I've now implemented this based on libmba (http:= //www.ioplex.com/~miallen/libmba/). Unless there are
> concerns importing part of that library into the Emacs source tree, I&= #39;ll send a patch.

I'm not sure I understand what you mean by "importing part of that=
library".=C2=A0 Are you going to ask the author to sign legal papers assigning copyright to the FSF?

I guess= we can just use the library as-is? It's MIT-licensed.
=C2=A0=

P.S. Doesn't GNU Diff have code to do this?=C2=A0

=
Sure, but it's not a library. libmba was the only library th= at I've found so far with a usable interface (i.e. that doesn't ass= ume that the input sequences are byte arrays).
=C2=A0
Even dispnew.c has
something similar, see scrolling_window.

That doesn't appear to be reusable.=C2=A0
--94eb2c0d21c2f53109054ef331f4--