From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Michalis V." Newsgroups: gmane.emacs.bugs Subject: bug#11912: 24.1; 'M' in Dired on a symlink does not refresh the display Date: Tue, 24 Aug 2021 13:23:37 +0300 Message-ID: <87tujf9m52.fsf@cnu407c2zx.nsn-intra.net> References: <83txxeb6q8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8463"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 11912@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 24 12:24:11 2021 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 1mITbH-0001uw-3j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 12:24:11 +0200 Original-Received: from localhost ([::1]:41348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mITbG-0007At-2U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Aug 2021 06:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mITb8-00077y-T0 for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 06:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mITb8-0002Je-Lr for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 06:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mITb8-0002Ff-GI for bug-gnu-emacs@gnu.org; Tue, 24 Aug 2021 06:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Michalis V." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Aug 2021 10:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11912 X-GNU-PR-Package: emacs Original-Received: via spool by 11912-submit@debbugs.gnu.org id=B11912.16298006388645 (code B ref 11912); Tue, 24 Aug 2021 10:24:02 +0000 Original-Received: (at 11912) by debbugs.gnu.org; 24 Aug 2021 10:23:58 +0000 Original-Received: from localhost ([127.0.0.1]:43321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mITb4-0002FN-Jo for submit@debbugs.gnu.org; Tue, 24 Aug 2021 06:23:58 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:39764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mITaz-0002F5-Qs for 11912@debbugs.gnu.org; Tue, 24 Aug 2021 06:23:57 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id z4so14870163wrr.6 for <11912@debbugs.gnu.org>; Tue, 24 Aug 2021 03:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1ylbzNgAD/ZQ7ixhpP8KptsutdUPxQr57MuukPcIV30=; b=swe0Z4ZfVNAIk+dikN6a2sP+HTL5aFOC1NFbFK/OA7kq4qGVD+1HxMIhyjI3SC8PXn ewWX1SuwS07fAXMzOzC5hrlkDQ+8aU1zEAwFtsAOw5H/GxZz6znN6TpxYcZ8ywwzppu+ uVBZJCESW1aEE7SC9b/LCvOY73ccLlW3i02tJOaAxS2yHzGDSNoRPHV9M+OkbliIEbE2 Sdn4oU6h58VseoTgtoRjP3w0cDC4Co0O+Iq/U6f0pPU4vkU70Vsm9M3hL/chGPJ4+6ye LdzEnjbiutJEy1MrdMgjAD/MLPbC87OIPTepmedi4pb45qnZNlCaoCiX9T8hBiJCVpPl 8L4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1ylbzNgAD/ZQ7ixhpP8KptsutdUPxQr57MuukPcIV30=; b=IldO8IU5usbZ39fEWu8q824keSlO2ulTKiETNUSK+F0dbnC/VlUr49JlwWpDu2ukjN bMqqjWKfPr/msBcGdv5JPrglThLshZ5svEZCWfFGS2ed0JYiM5I+K3wBH5ZCIXx6f4Vi JG/lJYI80D4WsmPMmLjar6aMSLER+cnKWylzkzLFUT+BagfIBItIg+1D36ZeQ7xq4Wh3 YGQMDoR42GkImmUycDg2cA5pv8ywYMNNcn6bRxf9i6JH7COf9hO9bxLrMcqQasE4XFlT pyOg4bG0G1PgTQWETTo2+ckOmASOVCfUi3nuBcSK13lx8M1g2H9PQuFsFTzGBsl2zB50 MAAw== X-Gm-Message-State: AOAM530vfCzI4L0CYMT9WtDXf3hRpwbx0TqhlE6Z9wAm9mjNmHPPa7Or 2xoYeF6RXRlJjqdkQXwqAszzPvZA/RwLbA== X-Google-Smtp-Source: ABdhPJx3ddKN2lG3siZ1/qi9VA3eLpFbQTKwgMViwwhOd5STXohJzRXd6mqFcMBrI1gpxIJ3TW+4eA== X-Received: by 2002:a05:6000:234:: with SMTP id l20mr15925118wrz.359.1629800626691; Tue, 24 Aug 2021 03:23:46 -0700 (PDT) Original-Received: from cnu407c2zx.nsn-intra.net (109-178-131-54.pat.ren.cosmote.net. [109.178.131.54]) by smtp.gmail.com with ESMTPSA id q11sm1873627wmc.41.2021.08.24.03.23.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Aug 2021 03:23:46 -0700 (PDT) X-Google-Original-From: "Michalis V." In-Reply-To: <83txxeb6q8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 Jul 2012 19:30:39 +0300") 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:212532 Archived-At: Eli Zaretskii writes: > On a system that supports symlinks, do this: > > emacs -Q > C-x d RET > > Go to any file and type > > S foobar RET > > This creates a symlink named 'foobar' to the file on whose line you > were when you typed S. Now go to the line of 'foobar' and type this: > > M 0444 RET > > Emacs says "Redisplaying...done", but the mode bits of the target of > the symlink do not reflect the change. Type 'g', and they will. > >>>From a cursory look at the code (dired-do-redisplay), it sounds like > Dired assumes that the file to be refreshed is necessarily on the > current line (or marked). This is false for symlinks and the 'M' > command (and probably a few others, like 'O'), because the file that > changes is the target of the symlink. > > I think this bug was in Emacs since about forever; I tried as far back > as Emacs 22.1, and the problem was still there. hi, I can reproduce this in 27.1 but in 28.0.50 i get the following message: Doing chmod: Operation not supported, /tmp/foobar chmod on the symlinked file itself works ("Redisplaying..." too) perhaps this functionality was disabled/removed for symlinks on purpose? or is it a new bug? Michalis