From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25951: 26.0.50; Error when ediffing files that are visited using quoted file names Date: Fri, 21 Apr 2017 18:50:19 -0400 Message-ID: <877f2dqst0.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492814954 27662 195.159.176.226 (21 Apr 2017 22:49:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2017 22:49:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25951@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 22 00:49:07 2017 Return-path: Envelope-to: geb-bug-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 1d1hMQ-00070m-Mf for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Apr 2017 00:49:06 +0200 Original-Received: from localhost ([::1]:33463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1hMW-0006Ah-F2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Apr 2017 18:49:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1hMR-00064C-4W for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2017 18:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1hMM-0003hg-5s for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2017 18:49:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1hMM-0003hY-13 for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2017 18:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d1hML-0003Uh-Nb for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2017 18:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Apr 2017 22:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25951 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25951-submit@debbugs.gnu.org id=B25951.149281493713420 (code B ref 25951); Fri, 21 Apr 2017 22:49:01 +0000 Original-Received: (at 25951) by debbugs.gnu.org; 21 Apr 2017 22:48:57 +0000 Original-Received: from localhost ([127.0.0.1]:33053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1hMG-0003UN-Pr for submit@debbugs.gnu.org; Fri, 21 Apr 2017 18:48:56 -0400 Original-Received: from mail-io0-f170.google.com ([209.85.223.170]:33789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1hMG-0003UC-21 for 25951@debbugs.gnu.org; Fri, 21 Apr 2017 18:48:56 -0400 Original-Received: by mail-io0-f170.google.com with SMTP id k87so137693991ioi.0 for <25951@debbugs.gnu.org>; Fri, 21 Apr 2017 15:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oHmCqEInhjqjcfR0iD2JF2dQGw80OwP//P8Ng6/Aes0=; b=sRodQSSarZc203xZsQDfVFfAi8uKMWAqr49DXDLvv+PgizLLpckdYkLh1UU4A+EERN oUE/hpAUhXu5GAseQX0tQYlVTLTiC2RH2o9RDJ//qvYUYLYgB6AsL63lv2VykDLua9y7 V6xrG6CIu96A3QbE8daExTYR90Nxpsa4ozpihQCqH1JsZS+XHv/TXBdHTUKXCfHx7KZV Z20mhiWrgO+0Dgh3HEOLs1M/HM4P97YcDauwnMA7smoyNSHQ5BsX9kwQFnVkas4SJYKY PgSQCNaHY90NRSMDt7O9Dsg/AAYwcn/VVLWiIZ+tVa0RNk9qZIL14TXd2sZYdiC68FV5 R3mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=oHmCqEInhjqjcfR0iD2JF2dQGw80OwP//P8Ng6/Aes0=; b=NKQAI9h2ZBHoAIdCfqj4NJ7U+l5TRcxhX3tDdueenav9/9Lmv4nj+tDviCzpf+3bhs dNgA/x9Fz5lbENxAO7t/hCtDQ8HF5QdcdmJmpMdpKugrapzZSJ8G8Jpp8s38SySqr/kS HcRj9olwJEnzILgEJmF6scPMHaL/acYHB1coPCag/WZr7ETKySe/82zoEVx1GshZ+Wn1 1eT7dAZivIVCyf08vcZYL7apoTaI1txWOf6QblJfnMAxxvxXpLRY5fyPvewIrjWE0JNn Dfgzfiy2exi8hr6BPeJ6alNES+sJJ2SPzK2cnQce2r38u+BMopdBu5IRkKi8xyNOjB2J 5F/Q== X-Gm-Message-State: AN3rC/6u70vSlxddjvKUqCEHnQ34Z5sTwLqgtg7EZ4wlG5XcVFbU4xKU 2i5JYkGmZ7AJdQ== X-Received: by 10.107.23.6 with SMTP id 6mr19047576iox.14.1492814930448; Fri, 21 Apr 2017 15:48:50 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id e8sm1696324itd.3.2017.04.21.15.48.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Apr 2017 15:48:49 -0700 (PDT) In-Reply-To: (Philipp Stephani's message of "Fri, 21 Apr 2017 22:14:25 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131848 Archived-At: Philipp Stephani writes: > + (let ((buffer (current-buffer))) > + ;; `unquote-then-quote' is only used for the > + ;; `verify-visited-file-modtime' action, which takes a buffer > + ;; as only optional argument. > + (with-current-buffer (or (car arguments) buffer) > + (let ((buffer-file-name (substring buffer-file-name 2))) > + ;; Make sure to hide the temporary buffer change from the > + ;; underlying operation. > + (with-current-buffer buffer > + (apply operation arguments)))))) I think this could be simplified by using the buffer-file-name function: ;; `unquote-then-quote' is only used for the ;; `verify-visited-file-modtime' action, which takes a buffer ;; as only optional argument. (let ((buffer-file-name (substring (buffer-file-name (car arguments)) 2))) (apply operation arguments))