From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: Editing change groups Date: Fri, 9 Nov 2018 06:58:29 -0500 Message-ID: References: <87sh0an0wf.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1541764635 21841 195.159.176.226 (9 Nov 2018 11:57:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 11:57:15 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 12:57:11 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 1gL5PS-0005XF-15 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 12:57:10 +0100 Original-Received: from localhost ([::1]:33421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL5RY-0002kH-3i for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2018 06:59:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL5R6-0002iz-Pr for help-gnu-emacs@gnu.org; Fri, 09 Nov 2018 06:58:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL5R6-0006IZ-09 for help-gnu-emacs@gnu.org; Fri, 09 Nov 2018 06:58:52 -0500 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:36434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gL5R5-00065T-ON for help-gnu-emacs@gnu.org; Fri, 09 Nov 2018 06:58:51 -0500 Original-Received: by mail-oi1-x229.google.com with SMTP id r127-v6so1244528oie.3 for ; Fri, 09 Nov 2018 03:58:45 -0800 (PST) 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=idIYfI6onI5yBlE4WuaULyFIwYEmBJIMEx9EyihVAR8=; b=Og+0F/KJiyKGHDZodWd+dtKevHM3dknqMen0Qua/nfAmQm/jzDjFq7tsi8jxCsTQb2 4wsUv1VcPvAy0wMVbGEuquqtxCaWtU/O1NE8r7v52UIW6zG8LmyWi28JCFKfcuLCqL3C ++ueYYJYY3mKac98+A89MTF8m3dcOiOAC7EXdd/4jaxcuSkfPBWJKJVUeTW8OA/rMSlS isB0cAZ07tLX9wePrMRz6OhI6NucoHSOHILGgRGrFWMs4Co+8J+rVeXQEr0yYyuiWOhq t3gbCZIppyAKDeA33b+eV5/kqB2xCRjgwspiVbuUQiIXhM9WGMlI7Kv5Z0QimvTMNZIf dEow== 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=idIYfI6onI5yBlE4WuaULyFIwYEmBJIMEx9EyihVAR8=; b=Lo1mnAH0uCMO/uh+HrLQBuzlOh2EZ/gyB4vnP5YXlK1IxvAOHcn/RwaVGmOmuKqsQU f18nPyeG+r7zLFKIWWf1RW1UpDxTRLk8PuooA0Euf/tnOHE3PgqnQdfbaCErcWm1bb6o i85wjCUifNRo4TNqkLSxuAQo3cIUYb4U/2yG3zRiR0ZvGOlTKadw9IYMt4Op247zuOqa yeRLUdHf5esTz4cCs3zb5NFMXA2FqAbkQIXbyztgBv4o6Olp6zSX5JwQBf1Axe3AAImi r45FqPrrDIokUViCd69RMUVVNiWmS68nNkOfMZwficccgKO3dkRys66K//OhvvLTQzZu RLcA== X-Gm-Message-State: AGRZ1gLwpIj7w/Q480PxhoKoB1ZyQmiTKbqyAISgq2DMVqU9evoi24G8 gPe+GpAVrLiUVJNJxM/Q6voKPnCUKPukWPc0vgk= X-Google-Smtp-Source: AJdET5ejIrouO6dWLbQFlonUn2NmGQk2neYn4/LLEz+isOOjPorHjtJC3mEfEblaWONeFdmhfbG/wgOJ8IggEX/AAPs= X-Received: by 2002:aca:4c10:: with SMTP id z16-v6mr4532682oia.123.1541764724527; Fri, 09 Nov 2018 03:58:44 -0800 (PST) In-Reply-To: <87sh0an0wf.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::229 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:118611 Archived-At: On Fri, 9 Nov 2018 at 02:53, Michael Heerdegen wrote: > I have the following requirement for a user interface: if the user hits > a key, something in the buffer is replaced with something else. Doing > this potentially involves several editing operations. If the user hits > the same key again, the old contents are restored. Possible alternative approach with prior art in string-rectangle: fake the change with overlays for preview, then it's easy to remove.