From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Mario_Castel=c3=a1n_Castro?= Newsgroups: gmane.emacs.help Subject: Re: How to visit a file and kill the current buffer? Date: Sun, 10 Sep 2017 12:48:43 -0500 Message-ID: <8a2100c6-4859-5723-8ef7-a4a7e2607f7e@yandex.com> References: <82eece41-ee93-636c-1917-39462ce86106@yandex.com> <20170910172408.GC522@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rMTPuaeG0JhrSnx2uCxDpWDVaJ7w7nbgA" X-Trace: blaine.gmane.org 1505065780 7141 195.159.176.226 (10 Sep 2017 17:49:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 17:49:40 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 19:49:32 2017 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 1dr6ML-0001IZ-69 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 19:49:29 +0200 Original-Received: from localhost ([::1]:53772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr6MS-0003v2-Fz for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 13:49:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr6Lr-0003uh-Qi for help-gnu-emacs@gnu.org; Sun, 10 Sep 2017 13:49:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dr6Lo-0005Dt-OR for help-gnu-emacs@gnu.org; Sun, 10 Sep 2017 13:48:59 -0400 Original-Received: from forward100j.mail.yandex.net ([5.45.198.240]:39404) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dr6Lo-0005DM-D2 for help-gnu-emacs@gnu.org; Sun, 10 Sep 2017 13:48:56 -0400 Original-Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward100j.mail.yandex.net (Yandex) with ESMTP id EA0835D8358F for ; Sun, 10 Sep 2017 20:48:53 +0300 (MSK) Original-Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id BlhuCwAuMn-mr0atAin; Sun, 10 Sep 2017 20:48:53 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1505065733; bh=zO9vJw93vyVrnObZIKpO7sXikfpmblmqi3k/8PxSAyc=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=vRYiV8E8KRcmvqm3LoV+jWMRpEtgsWyxGAz/xJV8Y0FLr9E3UeXXPPX8wmHT/oxDl EnGL3w/eTQ8ubnIziYGYUzHuc+lU5PxXeNVQRA6EqzGyfdmOVNn8P6UOi5cNFYTQWZ OYz81HXXV50ztWF8OHPsirzMAMTDouB41tI1Z0pI= Original-Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VBxQaS6GJ7-moWO1xwS; Sun, 10 Sep 2017 20:48:51 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1505065731; bh=zO9vJw93vyVrnObZIKpO7sXikfpmblmqi3k/8PxSAyc=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=Nv+1mOc34rwO+M7SVQ1IiQrysbc7LlLQjIOxezFHaI9Lv+qPB/Lm0t6bhqdcQq34n pAL/x1K7ynqTky7kOviAQtIFD90q4oapVnx+N5z1ARqDeq02uPNkDjfzBT3ysNH2qs HlFWwqcootqZgCYAIX7OY5o+DWBkoKLPwsFO81CA= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.com In-Reply-To: <20170910172408.GC522@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.45.198.240 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:114228 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rMTPuaeG0JhrSnx2uCxDpWDVaJ7w7nbgA From: =?UTF-8?Q?Mario_Castel=c3=a1n_Castro?= To: help-gnu-emacs@gnu.org Message-ID: <8a2100c6-4859-5723-8ef7-a4a7e2607f7e@yandex.com> Subject: Re: How to visit a file and kill the current buffer? References: <82eece41-ee93-636c-1917-39462ce86106@yandex.com> <20170910172408.GC522@tuxteam.de> In-Reply-To: <20170910172408.GC522@tuxteam.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/09/17 12:24, tomas@tuxteam.de wrote: > I think you are looking for replace-buffer-contents, bound to C-x v I can neither find that function by name (=E2=80=9CC-h f=E2=80=9D) nor by= invoking it directly with =E2=80=9CM-x=E2=80=9D. Is it a recent introduction? I am using GNU Emacs 24.5.1 as shipped in Debian 9. --=20 Do not eat animals; respect them as you respect people. https://duckduckgo.com/?q=3Dhow+to+(become+OR+eat)+vegan --rMTPuaeG0JhrSnx2uCxDpWDVaJ7w7nbgA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARMIAB0WIQS+wkyTBs7vJfjGA262380TuSZA2QUCWbV6+wAKCRC2380TuSZA 2VjzAP9lS/O8iYvXdORhQSOrEkgzcSfIDOSYgBxb+UGR8UOrXQD8Ddw+jvuTZug9 luclf9/b37FSsXBETmCFMM0RIDz3H14= =5FuK -----END PGP SIGNATURE----- --rMTPuaeG0JhrSnx2uCxDpWDVaJ7w7nbgA--