From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Mundell Newsgroups: gmane.emacs.devel Subject: Re: dired-do-touch Date: 30 Mar 2004 17:18:26 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87isgm1f71.fsf@sno.mundell.ukfsn.org> References: <8765czqqyj.fsf@sno.mundell.ukfsn.org> <8765ctkmdo.fsf@mail.jurta.org> <87k7165zee.fsf@mail.jurta.org> <9681-Sat27Mar2004141724+0300-eliz@gnu.org> <87vfkq1lss.fsf@mail.jurta.org> <87ekre6zft.fsf@sno.mundell.ukfsn.org> <87oeqitbga.fsf@mail.jurta.org> <87isgo4ub2.fsf@sno.mundell.ukfsn.org> <874qs7wjlk.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080663864 26868 80.91.224.253 (30 Mar 2004 16:24:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2004 16:24:24 +0000 (UTC) Cc: Eli Zaretskii , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 30 18:24:13 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B8M29-0003xx-00 for ; Tue, 30 Mar 2004 18:24:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B8M28-0003N1-00 for ; Tue, 30 Mar 2004 18:24:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8LyB-0006O4-VK for emacs-devel@quimby.gnus.org; Tue, 30 Mar 2004 11:20:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8Lxd-0006Lx-CN for emacs-devel@gnu.org; Tue, 30 Mar 2004 11:19:33 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8Lx6-00066l-R1 for emacs-devel@gnu.org; Tue, 30 Mar 2004 11:19:31 -0500 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8Lwb-0005vP-CS; Tue, 30 Mar 2004 11:18:29 -0500 Original-Received: from localhost (lucy.ukfsn.org [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id E4DFBE6DCE; Tue, 30 Mar 2004 17:17:18 +0100 (BST) Original-Received: from mail.ukfsn.org ([127.0.0.1]) by localhost (lucy.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32400-19; Tue, 30 Mar 2004 17:17:18 +0100 (BST) Original-Received: from sno.mundell.ukfsn.org (dsl213-218-238-16.as15444.net [213.218.238.16]) by mail.ukfsn.org (Postfix) with ESMTP id 931DAE6DC6; Tue, 30 Mar 2004 17:17:18 +0100 (BST) Original-Received: from sno.mundell.ukfsn.org ([10.0.0.3]) by sno.mundell.ukfsn.org with esmtp (Exim 3.36 #1 (Debian)) id 1B8LwZ-0000Ut-00; Tue, 30 Mar 2004 17:18:27 +0100 Original-To: Juri Linkov Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21094 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21094 Juri Linkov writes: > Eli Zaretskii writes: > >> There's the set-file-modes primitive for changing modes. Are there > >> equivalent primitives for changing owner and group? > > > > I don't think so. FWIW, I think we should add them. > > I completely agree that we should add primitives for changing > owner and group and use them in dired. With some modification the coreutils change_file_owner and change_dir_owner functions (in src/chown-core.c) could be the core of such a primitive. Is this a good idea, perhaps with an interface as below? DEFUN ("set-file-owners", Fset_file_owners, Sset_file_owners, 2, 3, 0, doc: /* Set OWNER and/or or GROUP of file FILENAME. If OWNER or GROUP is nil then skip setting that attribute. Return t on success, else nil. */) (filename, owner, group) Lisp_Object filename, owner, group; { ...