From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: delete buffer content from the point Date: Wed, 14 Jul 2021 10:45:55 +0200 Message-ID: References: <87czrm1ki5.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 14 10:47:04 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3aXn-0000dv-Tn for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 10:47:03 +0200 Original-Received: from localhost ([::1]:47744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3aXm-0004AF-Sw for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 04:47:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3aXK-00046c-Iz for help-gnu-emacs@gnu.org; Wed, 14 Jul 2021 04:46:34 -0400 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:34379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3aXJ-0003bl-2j for help-gnu-emacs@gnu.org; Wed, 14 Jul 2021 04:46:34 -0400 Original-Received: by mail-ot1-x329.google.com with SMTP id w8-20020a0568304108b02904b3da3d49e5so1763461ott.1 for ; Wed, 14 Jul 2021 01:46:32 -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=u0sDrYPIxMKxWKfvNt25rjrqtS4rQLtF7Z4lImIG5T8=; b=hWncCgSjbA9jl46rEhqw5fGLKUlfaKFvShLlY28As/sRfzjqbcwBS7NpsGojfl6ofw QoBl9XPmBGNjZZ06iQNnjVmlK96ii36xfdF30vjPB7POsdIwtxeMQKuSnRo2K7T1cyta A8uDMXgg2xKxBJ0NvpGV7iCKGX5hnZoFrdvjejYxo9OpDB3J485d1//b1+vWQ1m1bi1q 8w1yS7e/UC4FMcxofWGspU5WslBUmfqzbCyE3Kzy79LZ4ELlcSUcRgogF5DPM2k1die3 GV/BJuDWdLh1lSmO3ITsAyCEQNuNz74sj2rBAFnmp7aH7b+gu836dtpCSqnHcMgK0J2w PXIA== 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=u0sDrYPIxMKxWKfvNt25rjrqtS4rQLtF7Z4lImIG5T8=; b=sYMVb0dbWR3GHDvo4AlJtxLNddV4uMCq9CxekD2pd4cQCGSXGebPSSo8bOOLnb8iTm FhGNM5mWGsHMR22foHV1vvV+06hLQFACK5Z8nzwl53P9kAz4gDLBqnxczBsWuv9fOh3Z CNQaCjonC5Umo2X93/5IBfmlw3L/eLP9bDXyBDepQqVMxbd0fMEJHXzCpCdkZMWuJp9n 9aG/LBOH3FnP200suwvnwHZlegxqvMqp3JSdLLGSrFJ6LLReZE4LTVpAfXj0Tb38Oc/Z QQnDq1WBJyjHeS5aDlr0AftBb4KyxHS6D7AtnWwL6k+RPn44+bhJOSsFe9zOplJXs73D BViQ== X-Gm-Message-State: AOAM532qtcUqbep0+gWHbl+RI84agrqSLCoUN2vwZaTTSnuDOcqQp3jd pDh6SltKgcPKVD6G84Wf8avv6QYkvu2sa+1IZ20= X-Google-Smtp-Source: ABdhPJwxSuhFWXP7zuLGOXTsEsNdIi1RT+d1wwnnoRCzfFAUyAn0Il0SPU4wjC3oHsUs3g/WfEMKCgmHhSflHwnc37k= X-Received: by 2002:a05:6830:916:: with SMTP id v22mr7317593ott.201.1626252392065; Wed, 14 Jul 2021 01:46:32 -0700 (PDT) In-Reply-To: <87czrm1ki5.fsf@fastmail.fm> Received-SPF: pass client-ip=2607:f8b0:4864:20::329; envelope-from=fluca1978@gmail.com; helo=mail-ot1-x329.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131687 Archived-At: On Tue, Jul 13, 2021 at 2:11 PM Joost Kremers wrote: > But for the use-case that you describe, it may be more practical to use > `auto-insert-mode` or yasnippet. I do use yasnippet, but sometimes I don't have access to it (e.g., a machine I log in only once and has vanilla emacs). That's why I was looking for a more simple way that can help me in those occasions. Thanlk you all for pointing me to delete-region. Luca