unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22578: 24.5; dired-do-chmod on . or .. directories
@ 2016-02-07  6:20 Kevin Ryde
  2016-02-07 18:25 ` Eli Zaretskii
  2021-08-15 12:58 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Ryde @ 2016-02-07  6:20 UTC (permalink / raw)
  To: 22578

It'd be good if dired "M" `dired-do-chmod' could act on the "." and ".."
directories in the dired buffer.

As far as I can tell there'd be no reason they shouldn't.  I struck this
wanting to add write permission to a directory which had been left
read-only (something out of an unzip or untar).

(Presently dired-do-chmod also queries for the mode before announcing it
won't act on . or .., whereas of course usually in other places in emacs
such failing pre-conditions are checked before user input.)


In GNU Emacs 24.5.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2016-01-23 on x86-csail-01, modified by Debian
Configured using:
 `configure --build i586-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --build i586-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars
 --without-gconf --without-gsettings 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#22578: 24.5; dired-do-chmod on . or .. directories
  2016-02-07  6:20 bug#22578: 24.5; dired-do-chmod on . or .. directories Kevin Ryde
@ 2016-02-07 18:25 ` Eli Zaretskii
  2016-02-10 10:57   ` Kevin Ryde
  2021-08-15 12:58 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2016-02-07 18:25 UTC (permalink / raw)
  To: Kevin Ryde; +Cc: 22578

> From: Kevin Ryde <user42_kevin@yahoo.com.au>
> Date: Sun, 07 Feb 2016 17:20:27 +1100
> 
> It'd be good if dired "M" `dired-do-chmod' could act on the "." and ".."
> directories in the dired buffer.
> 
> As far as I can tell there'd be no reason they shouldn't.

For some reasons, see the old discussion that starts here:

  http://lists.gnu.org/archive/html/emacs-pretest-bug/2003-06/msg00067.html





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#22578: 24.5; dired-do-chmod on . or .. directories
  2016-02-07 18:25 ` Eli Zaretskii
@ 2016-02-10 10:57   ` Kevin Ryde
  2016-02-10 17:30     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Ryde @ 2016-02-10 10:57 UTC (permalink / raw)
  To: 22578

Eli Zaretskii <eliz@gnu.org> writes:
>
>   http://lists.gnu.org/archive/html/emacs-pretest-bug/2003-06/msg00067.html

That slightly goes on and on ... :-).  I have no opinion of the S
symlink discussed there, but an M chmod seems clearer, doesn't move
anything, etc ...

On the R rename also noted there, I think I have an open bug of it
acting successfully on "." (good, in my view) but then failing to
refresh current buffer (bad).





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#22578: 24.5; dired-do-chmod on . or .. directories
  2016-02-10 10:57   ` Kevin Ryde
@ 2016-02-10 17:30     ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2016-02-10 17:30 UTC (permalink / raw)
  To: Kevin Ryde; +Cc: 22578

> From: Kevin Ryde <user42_kevin@yahoo.com.au>
> Date: Wed, 10 Feb 2016 21:57:54 +1100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> >
> >   http://lists.gnu.org/archive/html/emacs-pretest-bug/2003-06/msg00067.html
> 
> That slightly goes on and on ... :-).

You are supposed to stop reading where it wanders too far off ;-)

> I have no opinion of the S symlink discussed there, but an M chmod
> seems clearer, doesn't move anything, etc ...
> 
> On the R rename also noted there, I think I have an open bug of it
> acting successfully on "." (good, in my view) but then failing to
> refresh current buffer (bad).

The challenge is to suggest a solution that side-steps all those
gotchas mentioned in that discussion.

Thanks.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#22578: 24.5; dired-do-chmod on . or .. directories
  2016-02-07  6:20 bug#22578: 24.5; dired-do-chmod on . or .. directories Kevin Ryde
  2016-02-07 18:25 ` Eli Zaretskii
@ 2021-08-15 12:58 ` Lars Ingebrigtsen
  2021-08-16  9:34   ` Kevin Ryde via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-15 12:58 UTC (permalink / raw)
  To: Kevin Ryde; +Cc: 22578

Kevin Ryde <user42_kevin@yahoo.com.au> writes:

> It'd be good if dired "M" `dired-do-chmod' could act on the "." and ".."
> directories in the dired buffer.

(I'm going through old bug reports that unfortunately weren't
resolved at the time.)

I tried doing `M' on "." and ".." in a directory, and it seems to work
fine for me (in Emacs 26.1 and 28), so is this a problem that has gone
away?  (I had a brief look at the change history, but didn't see
anything that actually claimed to change the behaviour here.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#22578: 24.5; dired-do-chmod on . or .. directories
  2021-08-15 12:58 ` Lars Ingebrigtsen
@ 2021-08-16  9:34   ` Kevin Ryde via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-16 12:07     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Ryde via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-16  9:34 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 22578

Lars Ingebrigtsen <larsi@gnus.org> writes:
>
> I tried doing `M' on "." and ".." in a directory, and it seems to work
> fine for me (in Emacs 26.1 and 28), so is this a problem that has gone
> away?

Ah I'm far far behind the pace at the moment.  What I hadn't noticed at
the time was that the mode change is in fact made on disk, but get also
an error message (and no update of the line).  So if the error message
is gone then that's good.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#22578: 24.5; dired-do-chmod on . or .. directories
  2021-08-16  9:34   ` Kevin Ryde via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-16 12:07     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-16 12:07 UTC (permalink / raw)
  To: Kevin Ryde; +Cc: 22578

Kevin Ryde <user42_kevin@yahoo.com.au> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>
>> I tried doing `M' on "." and ".." in a directory, and it seems to work
>> fine for me (in Emacs 26.1 and 28), so is this a problem that has gone
>> away?
>
> Ah I'm far far behind the pace at the moment.  What I hadn't noticed at
> the time was that the mode change is in fact made on disk, but get also
> an error message (and no update of the line).  So if the error message
> is gone then that's good.

OK; I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-16 12:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-07  6:20 bug#22578: 24.5; dired-do-chmod on . or .. directories Kevin Ryde
2016-02-07 18:25 ` Eli Zaretskii
2016-02-10 10:57   ` Kevin Ryde
2016-02-10 17:30     ` Eli Zaretskii
2021-08-15 12:58 ` Lars Ingebrigtsen
2021-08-16  9:34   ` Kevin Ryde via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-16 12:07     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).