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:45:07 +0000 Message-ID: References: <8337cgee4h.fsf@gnu.org> <83zieocy3c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1144323e1ca846054ef38664 X-Trace: blaine.gmane.org 1494182779 3887 195.159.176.226 (7 May 2017 18:46:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 May 2017 18:46:19 +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:46:11 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 1d7RC5-0000nm-TH for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 May 2017 20:46:10 +0200 Original-Received: from localhost ([::1]:56442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7RCB-00089v-3i for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 May 2017 14:46:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7RC1-00089p-NK for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7RBy-0004t3-Li for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7RBy-0004sw-Hn for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7RBy-0004nJ-AW for bug-gnu-emacs@gnu.org; Sun, 07 May 2017 14:46: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:46:02 +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.149418272518378 (code B ref 25355); Sun, 07 May 2017 18:46:02 +0000 Original-Received: (at 25355) by debbugs.gnu.org; 7 May 2017 18:45:25 +0000 Original-Received: from localhost ([127.0.0.1]:60664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7RBN-0004mM-90 for submit@debbugs.gnu.org; Sun, 07 May 2017 14:45:25 -0400 Original-Received: from mail-wm0-f52.google.com ([74.125.82.52]:35593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7RBL-0004m6-B3 for 25355@debbugs.gnu.org; Sun, 07 May 2017 14:45:23 -0400 Original-Received: by mail-wm0-f52.google.com with SMTP id b84so32841139wmh.0 for <25355@debbugs.gnu.org>; Sun, 07 May 2017 11:45:23 -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=Ad8sexzqOZgAG4Ix2xO3+aJo7/mIt6hmAg4GR/sVbcg=; b=jfWiFvdtZAhmR1ttM6iy0JkYyApUQ+blOUF6Xa0RzGa2mC+vNLeuftLR8FfE61Efg3 Gd6+tOAtfDL45VoiCI/9chCconQmx5A7USd5HWIGQHy+oXoPIfMOfHt0EHSG56SwrKyW yF2NRFYyzuv8DQFfAQ1ydDCsJcMktms3guBlQyxI/N8Ydq8uzIM/UTpPL9SE4SE6jwlF gZQsKZwr5jD9RPv6k0wc19dJsTFHLA9S++j/kL9M+9oWg18UJkrrv+Zep5gb7jIKMntq DZsnpPek4jeLg2+G6E6oZDZfMrzOf7ev/MKQEA7XqiB1+mQ25Xa0KYRsLXDJewH0GzG/ S/6w== 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=Ad8sexzqOZgAG4Ix2xO3+aJo7/mIt6hmAg4GR/sVbcg=; b=V2lv0embrBbA07b9YB+vTVHR4PV1d433KwuISOwsSN2mStphT32tdYm+2TOxUwSycQ 4jpnbfzJD0318QuMS/dv8vkS+qS4iFo4msHDH4dWWpc2+2259lobh2LigRjPQQcH+V8A VUKNbZzU1l9u4cVDS3dSWz8cJpNOFHOvYiiksOt/eA0Nr+ZDLaAiCjdNN1wXC3t8zNIh kaEp/TpwoVZCTM1844mJNjMSaR82ubC2c5HE53sN8JvTJsFd5VKIe52TZV+I8OptCZaZ 7+OlX73j4Az/B/fCVnr9FoS6j7UtpFIhbd1KkV/irSC1RqhZr9AI7IVy3NZ7DxbALdwy CB2A== X-Gm-Message-State: AODbwcAxNR+LQNlgSLkZBCan32cFE00fCgfl1Hz71pNFfaD/avenrLAq fkr2gTsZKKZRMhtZ7ZdKBdj+UNPVyIyv X-Received: by 10.28.87.70 with SMTP id l67mr10852917wmb.46.1494182717590; Sun, 07 May 2017 11:45:17 -0700 (PDT) In-Reply-To: <83zieocy3c.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:132356 Archived-At: --001a1144323e1ca846054ef38664 Content-Type: text/plain; charset=UTF-8 Eli Zaretskii schrieb am So., 7. Mai 2017 um 20:38 Uhr: > > From: Philipp Stephani > > Date: Sun, 07 May 2017 18:21:35 +0000 > > Cc: 25355@debbugs.gnu.org > > > > I guess we can just use the library as-is? It's MIT-licensed. > > What do you mean by "use"? Treat it as an optional library, like we > do with image support and GnuTLS? I thought you wanted this feature > to be present in every Emacs, not only Emacs linked against that > library. > I just want to link it statically by adding the required source files to the source tree, like we do for e.g. oldXmenu. > > > P.S. Doesn't GNU Diff have code to do this? > > > > Sure, but it's not a library. > > Why do you need a library, if you want the code to become part of > Emacs? > I want something that can be used right now without reimplementing the diff algorithm from scratch. > > The advantage of Diff is that I think the situation with copyright > assignment will be much easier there ;-) > If this requires copyright assignment, then I'll stop immediately and reimplement this as a dynamic module outside of Emacs. Asking for copyright assignment is way too much work for this. --001a1144323e1ca846054ef38664 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:38=C2=A0Uhr:
p.stephani2@gmail.com>
> Date: Sun, 07 May 2017 18:21:35 +0000
> Cc: 25355@d= ebbugs.gnu.org
>
> I guess we can just use the library as-is? It's MIT-licensed.

What do you mean by "use"?=C2=A0 Treat it as an optional library,= like we
do with image support and GnuTLS?=C2=A0 I thought you wanted this feature to be present in every Emacs, not only Emacs linked against that
library.

I just want to link it statica= lly by adding the required source files to the source tree, like we do for = e.g. oldXmenu.
=C2=A0

>=C2=A0 P.S. Doesn't GNU Diff have code to do this?
>
> Sure, but it's not a library.

Why do you need a library, if you want the code to become part of
Emacs?

I want something that can be use= d right now without reimplementing the diff algorithm from scratch.
=C2=A0

The advantage of Diff is that I think the situation with copyright
assignment will be much easier there ;-)

If this requires copyright assignment, then I'll stop immediately and= reimplement this as a dynamic module outside of Emacs. Asking for copyrigh= t assignment is way too much work for this.=C2=A0
--001a1144323e1ca846054ef38664--