From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21699: 24.5; Bug in backup-buffer-copy and/or set-file-extended-attributes etc [set-file-extended-attributes] Date: Mon, 19 Oct 2015 09:50:06 +0300 Message-ID: <83zizfgxnl.fsf@gnu.org> References: <831tcricrz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445237810 5700 80.91.229.3 (19 Oct 2015 06:56:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 06:56:50 +0000 (UTC) Cc: 21699@debbugs.gnu.org To: eli@barzilay.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 08:56:39 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zo4N4-0007iG-Dh for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 08:56:38 +0200 Original-Received: from localhost ([::1]:36824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo4N3-0001rk-OX for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 02:56:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo4Hw-0000gS-E1 for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 02:51:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zo4He-0002Wi-NM for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 02:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo4He-0002Wd-KE for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zo4He-0004wU-6Z for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 02:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Oct 2015 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21699 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21699-submit@debbugs.gnu.org id=B21699.144523740818939 (code B ref 21699); Mon, 19 Oct 2015 06:51:02 +0000 Original-Received: (at 21699) by debbugs.gnu.org; 19 Oct 2015 06:50:08 +0000 Original-Received: from localhost ([127.0.0.1]:55641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zo4Gm-0004vP-85 for submit@debbugs.gnu.org; Mon, 19 Oct 2015 02:50:08 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:50543) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zo4Gj-0004vG-AD for 21699@debbugs.gnu.org; Mon, 19 Oct 2015 02:50:06 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NWG00G00G1MDG00@mtaout25.012.net.il> for 21699@debbugs.gnu.org; Mon, 19 Oct 2015 09:47:43 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWG009JSG7I9L70@mtaout25.012.net.il>; Mon, 19 Oct 2015 09:47:43 +0300 (IDT) In-reply-to: <831tcricrz.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107733 Archived-At: > Date: Mon, 19 Oct 2015 09:38:08 +0300 > From: Eli Zaretskii > Cc: 21699@debbugs.gnu.org > > So after fixing set-file-extended-attributes as you suggest, does the > problem still happen for you? Actually, your suggested variant also returns nil for me. I need something like this instead: (defun set-file-extended-attributes (filename attributes) "Set extended attributes of file FILENAME to ATTRIBUTES. ATTRIBUTES must be an alist of file attributes as returned by `file-extended-attributes'." (let (result) (dolist (elt attributes) (let ((attr (car elt)) (val (cdr elt))) (cond ((eq attr 'acl) (setq result (or result (set-file-acl filename val)))) ((eq attr 'selinux-context) (setq result (or result (set-file-selinux-context filename val))))))) result)) With this change, evaluating (set-file-extended-attributes "~/.emacs" (file-extended-attributes "~/.emacs") returns t here.