From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Saving (and finding) markers Date: Thu, 18 Oct 2018 23:11:13 +0300 Message-ID: <837eifqala.fsf@gnu.org> References: <87r2gpic0b.fsf@portable.galex-713.eu> <835zy0sgbr.fsf@gnu.org> <87lg6w72mv.fsf@portable.galex-713.eu> <83tvlkq8rz.fsf@gnu.org> <87efcnziq7.fsf@portable.galex-713.eu> <83sh13qts5.fsf@gnu.org> <877eifruuy.fsf_-_@portable.galex-713.eu> <83a7nbqf6n.fsf@gnu.org> <87sh13oxn5.fsf@portable.galex-713.eu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1539896786 9913 195.159.176.226 (18 Oct 2018 21:06:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2018 21:06:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 23:06:21 2018 Return-path: Envelope-to: geh-help-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 1gDFUr-0002Uu-0B for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2018 23:06:21 +0200 Original-Received: from localhost ([::1]:44700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDFWx-00044B-Dd for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2018 17:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDEdw-0005Qd-O1 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:11:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDEdr-0005NO-U2 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:11:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDEdr-0005NJ-PX for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:11:35 -0400 Original-Received: from [176.228.60.248] (port=2356 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gDEdr-0005yf-A5 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:11:35 -0400 In-reply-to: <87sh13oxn5.fsf@portable.galex-713.eu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118334 Archived-At: > From: "Garreau\, Alexandre" > Cc: help-gnu-emacs@gnu.org > Date: Thu, 18 Oct 2018 21:36:14 +0200 > > > I pointed you to replace-buffer-contents function, because AFAIU in > > your situation it will modify the text while keeping as many markers > > (including point) intact as possible. Did you try using it? > > I might then use a separate buffer so to store the original content, > without doing the computation (C-c C-c) on it, and restore it later in > original buffer? > > Looking to online manual it seems to be what I want, except it’s > undefined on my GNU Emacs 25.1.1 Indeed, it appeared in Emacs 26.