From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: rename buffer but overwrite already existing one Date: Mon, 23 Mar 2020 20:41:12 +0100 Message-ID: <87sghy506f.fsf@igel.home> References: <874kuf9cbg.fsf@mat.ucm.es> <83ftdyc234.fsf@gnu.org> <87y2rq98po.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44153"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 23 20:41:51 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jGSxK-000BP7-Dd for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Mar 2020 20:41:50 +0100 Original-Received: from localhost ([::1]:38924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGSxJ-0006ge-EC for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Mar 2020 15:41:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47731) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGSwn-0006Hc-Uf for emacs-devel@gnu.org; Mon, 23 Mar 2020 15:41:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGSwm-0001qa-Lt for emacs-devel@gnu.org; Mon, 23 Mar 2020 15:41:17 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:35598) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jGSwm-0001p8-Fg for emacs-devel@gnu.org; Mon, 23 Mar 2020 15:41:16 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48mPrT3n01z1qrfF for ; Mon, 23 Mar 2020 20:41:13 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48mPrT3dMJz1qyDg for ; Mon, 23 Mar 2020 20:41:13 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id k58D4fTRs629 for ; Mon, 23 Mar 2020 20:41:12 +0100 (CET) X-Auth-Info: uAB8yDzfZ4BB91xKSsL7BlFDSRiBtFR11DPM4LTckZmKMhCyA6CZczrsq5Vpltku Original-Received: from igel.home (ppp-46-244-182-111.dynamic.mnet-online.de [46.244.182.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Mon, 23 Mar 2020 20:41:12 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 36C0B2C2964; Mon, 23 Mar 2020 20:41:12 +0100 (CET) X-Yow: YUGGA-HUGGA-BUGGA-TUGGA!! HEY-HEY!! A TRAIN STATION!! No, a POST OFFICE!! An OCEAN LINER!! No, I think it's a CAFETERIA!!! In-Reply-To: <87y2rq98po.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 23 Mar 2020 20:23:15 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245734 Archived-At: On M=C3=A4r 23 2020, Uwe Brauer wrote: >>>> "EZ" =3D=3D Eli Zaretskii writes: > > >> From: Uwe Brauer > >> Date: Mon, 23 Mar 2020 19:05:23 +0100 > >>=20 > >> Couldn't rename-buffer, optionally, overwrite the content of a bu= ffer. > > > Yes, but it's called copy-to-buffer, not rename-buffer. > > Thanks for pointing this out to me, but I have to mark the whole buffer > first, which is a but inconvenient, I say. > > Couldn't there an argument added so that with the argument the whole > buffer is copied? It's easy to define your own function that calls copy-to-buffer with (point-min), (point-max). Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 "And now for something completely different."