From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: rename file in dired based on current [T2C round 3] Date: Wed, 28 Oct 2020 12:34:03 +0700 Message-ID: References: <874kmf3t1e.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6747"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 28 06:41:28 2020 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 1kXeDA-0001eT-50 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 06:41:28 +0100 Original-Received: from localhost ([::1]:37106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXeD9-0007Ki-5l for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 01:41:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXe6D-0001dV-Pq for help-gnu-emacs@gnu.org; Wed, 28 Oct 2020 01:34:17 -0400 Original-Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:34857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXe6B-0001kn-Ma for help-gnu-emacs@gnu.org; Wed, 28 Oct 2020 01:34:17 -0400 Original-Received: by mail-vs1-xe2a.google.com with SMTP id n18so2196944vsl.2 for ; Tue, 27 Oct 2020 22:34:15 -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 :content-transfer-encoding; bh=LzKqXYyinJRJl5vC2wxcbkc9i1Pxn8H9HGkxbXoj+Lw=; b=XgVAzdw8ddPtV/rylZjml/uPn1+9YXwBJ+ByCjkhh9XAy0HEsrej72FKhV+p0/QRCG lRVLStRB0INZEsZJdx4arVgDtxjJKVtTBS1av0EOIzUuCnIqrNXT1xOEVznz+nfAMSts 3WR7QKUmT2cn3AiKmjq98rZgce04U/gL1Z6SDRo1YPPsJDqhgcBMwuy5e4kdaAmGiN4U N2BXmGYHX7cv/UzMMkA0SUPzSNlEEzPygGwzSZ9yrjw7vMq9Hm0g3Ml6D9snGcpw4LhS fOEQrken4wAtIBsX9/pRJzJjLj6yjkMZz5pF23JWFv6gfwkQAqp52PMKFY0TrG3mS3Ax ecVQ== 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:content-transfer-encoding; bh=LzKqXYyinJRJl5vC2wxcbkc9i1Pxn8H9HGkxbXoj+Lw=; b=BJxqnm6lL4DToBLIJwuyGedHozaYK61kX1ym8fvebPsGUkgaJbwtOxZWsL2vJIfBCY z1m8tnQpj5HeK+sW3k+AA8AmgKsuJZSrZCyyXvRUTYyh48LgevO7HBPKtYyR9fvjFM1S oABSOg5gAx7EGNwa0DNdUSJ+CP8LI3CVty2empw0mVSFCEKtfeE2d0tmTKR2a8P1r9IB ONLPQRb3VyvVy4/YiwE8n8GFh+daMsbC5idKpYhsLPEdTQdDM3r5a71uA3XR5dJkgUU9 U+gnkv3XPucBbk/5E9FhAQo205pU/aO4lS2UbC8lsEKGHB7+LYK6dSD51yZTGgvRpFOh wNgQ== X-Gm-Message-State: AOAM533bInKKwlBxTAz1JEVX2hSfd99rookju+D/CEcr79xaZM4JR9fJ V3VDgfcVCqllv89JzrRJtSbZedJnPmzd8jQfyKw= X-Google-Smtp-Source: ABdhPJyg1eBZ+g62XAySjRQLQnR1PDE1sg9klm9BKh5VQcAyMx52dbkifJVZMMHCFEnmEDvLXOON38CYD0SgDlQW14w= X-Received: by 2002:a67:6c86:: with SMTP id h128mr3941427vsc.42.1603863254653; Tue, 27 Oct 2020 22:34:14 -0700 (PDT) In-Reply-To: <874kmf3t1e.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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:124774 Archived-At: On Wed, 28 Oct 2020 at 10:53, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > How do you rename a file in dired, and get the previous/current as > a suggestion? In addition to the R M-n solution presented by other contestants, I=E2=80= =99d like to point out =E2=80=98dired-toggle-read-only=E2=80=99, bound by defaul= t to C-x C-q, which lets you rename files by editing their names directly in the dired buffer, then pressing C-c C-c to commit.