From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#25905: 25.1; Can't find regexp and replace in SVG files Date: Sat, 12 Dec 2020 20:56:55 +0100 Message-ID: <87a6ui94s8.fsf@gnus.org> References: <1488327656.1648.1.camel@delair-tech.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11359"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 25905@debbugs.gnu.org To: Matthias Meulien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 12 21:01:29 2020 Return-path: Envelope-to: geb-bug-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 1koB57-0002rk-QG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 21:01:29 +0100 Original-Received: from localhost ([::1]:50998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koB56-0007QO-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 15:01:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koB1m-0005Bh-IG for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 14:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1koB1m-0004iF-BC for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 14:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1koB1m-00077i-Ah for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Dec 2020 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25905 X-GNU-PR-Package: emacs Original-Received: via spool by 25905-submit@debbugs.gnu.org id=B25905.160780302827320 (code B ref 25905); Sat, 12 Dec 2020 19:58:02 +0000 Original-Received: (at 25905) by debbugs.gnu.org; 12 Dec 2020 19:57:08 +0000 Original-Received: from localhost ([127.0.0.1]:46711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koB0t-00076a-R3 for submit@debbugs.gnu.org; Sat, 12 Dec 2020 14:57:08 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:50604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koB0r-00075a-Pe for 25905@debbugs.gnu.org; Sat, 12 Dec 2020 14:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CYsEKdguVOMy+6aAA+H21R0KDfUDaPUipiWaHxiC8Bc=; b=spp1VSpb72deUzCH5sFdBnMk/M p80tp8Dnspy1udwZEn0oPH6P+O3pLhPIqTfxFgOm2XNIwPmTitpSC4PW9/t4XIHIV4K+5lLhwIL5v 5Zb2HBKR5sMnV8aWKScP6OHdOTCj6bQO0pR0q8oyUBhYxNqomorOA7R/6gBVR9YeWZ90=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koB0i-00024O-8V; Sat, 12 Dec 2020 20:56:59 +0100 X-Now-Playing: Oneohtrix Point Never's _Magic Oneohtrix Point Never_: "Lost But Never Alone" In-Reply-To: <1488327656.1648.1.camel@delair-tech.com> (Matthias Meulien's message of "Wed, 01 Mar 2017 01:20:56 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195887 Archived-At: Matthias Meulien writes: > Open a dired buffer visiting a directory with SVG images. Mark some SVG > files then try to `dired-do-find-regexp-and-replace' in those files. > > It fails due to `image-file-mode' turning all visited buffers as > read-only... (I'm going through old bug reports that unfortunately got no response at the time.) It'll also display the svg files as images (although with the real text in the buffer "shadowed" by the image). I guess this is a problem with all files that Emacs displays in ... highly interpreted form, like images and tar files and the like. The thing that makes SVG files special here is that you could see somebody actually want to do a find-and-replace on them, while you don't really see that in a, say, zip file. Often. But I wonder whether this problem should nevertheless have a general solution. That is, should this command have a variation that works on literal files instead? Perhaps a prefix of `C-u' to make the query replace use find-file-literally? Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no