GNU bug report logs - #4527
Emacs removes Extended Attributes when saving

Previous Next

Package: emacs;

Reported by: David Euresti <evelio <at> gmail.com>

Date: Tue, 22 Sep 2009 20:50:06 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4527 in the body.
You can then email your comments to 4527 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4527; Package emacs. (Tue, 22 Sep 2009 20:50:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Euresti <evelio <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 22 Sep 2009 20:50:07 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Euresti <evelio <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs removes Extended Attributes when saving
Date: Tue, 22 Sep 2009 13:44:21 -0700
When I edit a file that contains xattrs the xattrs are removed when I
save the file inside of emacs.

Example:
$ touch a.txt
$ xattr a.txt user.foo bar
$ xattr -l a.txt
user.foo: bar
$ emacs a.txt
add a line C-x C-s
$ xattr -l a.txt

You can get the xattr tool from
http://pypi.python.org/packages/source/x/xattr/xattr-0.4.tar.gz

Thanks,
David

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/22.2/etc/DEBUG for instructions.


In GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-09-05 on yellow, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure  '--build=x86_64-linux-gnu'
'--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var'
'--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim'
'--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars'
'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'
'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g
-Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  which-function-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<backspace> <backspace> <backspace> <backspace> / b
i n <tab> <tab> <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> C-g <help-echo> <help-echo>
C-x 3 <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <down> <up> <left> <help-echo> <help-echo>
<help-echo> <help-echo> C-x C-f ~ / p r o <tab> b e
<tab> U <tab> t <backspace> <backspace> u t <tab> <tab>
<backspace> <backspace> <tab> <tab> b e a <tab> <tab>
<tab> / <tab> u t <tab> <backspace> <backspace> U t
<tab> <tab> <tab> E <tab> x <tab> t <tab> <backspace>
<backspace> t e n d <tab> <return> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <prior> <prior> <prior>
<prior> <down> <down> <down> <next> <next> <next> <next>
<prior> <prior> <prior> <prior> M-x r e p o <tab> r
t <tab> <return>

Recent messages:
Making completion list...
Loading help-mode...done
Making completion list... [4 times]
call-interactively: Beginning of buffer [2 times]
call-interactively: End of buffer [2 times]
call-interactively: Beginning of buffer
Making completion list...
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4527; Package emacs. (Wed, 23 Sep 2009 22:45:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 23 Sep 2009 22:45:05 GMT) Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: David Euresti <evelio <at> gmail.com>
Cc: 4527 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#4527: Emacs removes Extended Attributes when saving
Date: Wed, 23 Sep 2009 18:39:56 -0400
> When I edit a file that contains xattrs the xattrs are removed when I
> save the file inside of emacs.

You have to set backup-by-copying, otherwise the saved file is a new
file (with a new inode).  Of course, this also affects whether or not
hardlinks get broken when saving a file, which may be what you want or
may be what you don't want.


        Stefan




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4527; Package emacs. (Wed, 23 Sep 2009 22:45:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 23 Sep 2009 22:45:07 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to David Euresti <evelio <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sat, 03 Oct 2009 00:25:12 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 31 Oct 2009 14:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.