From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62192 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.xemacs.beta Subject: Re: set-file-modes (XEmacs on w32) Date: Thu, 09 Mar 2006 21:50:23 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141937609 32708 80.91.229.2 (9 Mar 2006 20:53:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 20:53:29 +0000 (UTC) Cc: Fabrice Popineau Original-X-From: ding-owner+m10720@lists.math.uh.edu Thu Mar 09 21:53:22 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHS8P-0002Ff-75 for ding-account@gmane.org; Thu, 09 Mar 2006 21:53:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FHS8J-00084W-00; Thu, 09 Mar 2006 14:53:15 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FHS5o-00084Q-00 for ding@lists.math.uh.edu; Thu, 09 Mar 2006 14:50:40 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FHS5i-0007pq-IW for ding@lists.math.uh.edu; Thu, 09 Mar 2006 14:50:39 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FHS5h-0003k1-00 for ; Thu, 09 Mar 2006 21:50:33 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k29KoOoD028738; Thu, 9 Mar 2006 21:50:24 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 2330611421; Thu, 9 Mar 2006 21:50:23 +0100 (CET) Original-To: xemacs-beta@xemacs.org, ding@gnus.org Mail-Followup-To: xemacs-beta@xemacs.org, ding@gnus.org, Fabrice Popineau X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X In-Reply-To: (Reiner Steib's message of "Mon, 06 Mar 2006 16:45:52 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-EATSERVER-Metrics: gemini 1166; Body=3 Fuz1=3 Fuz2=3 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62192 gmane.emacs.xemacs.beta:22273 Archived-At: [ Not trimming the quotes because I added xemacs-beta. See http://thread.gmane.org/gmane.emacs.gnus.general/62158 or http://thread.gmane.org/gmane.emacs.gnus.general/62140 for more context. ] On Mon, Mar 06 2006, Reiner Steib wrote: > On Sun, Mar 05 2006, Fabrice Popineau wrote: >> * Reiner Steib writes: >> >> Fabrice> - (set-file-modes filename nnmail-default-file-modes))) + >> Fabrice> (gnus-set-file-modes filename nnmail-default-file-modes))) >> Fabrice> I think it should be applied anyway. mail-source.el and >> Fabrice> mm-decode.el also use set-file-modes. >> >> Reiner> I didn't investigate the callers, but maybe it *should* >> Reiner> give an error if the modes cannot be set appropriately. >> Reiner> (Shouldn't the respective (X)Emacs function care for those >> Reiner> file system / operation system details?) >> >> The problem is that up to now, there were places where >> #'gnus-set-file-modes was used and others where #'set-file-modes was >> used. My point is that the same function should be used everywhere. > > My point is that it might be better if Gnus (at least in the default > setup) should signal an error if it can't assure that the files or > directories have appropriate permissions. Given that NTFS has the > possibility to ensure that, I think it would be a mistake to set > `gnus-ignore-set-file-modes-errors' to t by default on windows in > general. On Windows 9x/ME and DOS -- but even there I'd think that > (X)Emacs implementation of `set-file-modes' should deal with this > and not Gnus. I tried with Emacs 22 (system-type = windows-nt) on an NTFS filesystem and with Emacs 22 on GNU/Linux on a vfat USB disk: (require 'mail-source) (set-file-modes "/path/to/file" mail-source-default-file-modes) No error. Same with XEmacs 21.5.21 (+CVS-20050720) on GNU/Linux with a file on the same vfat USB disk. >> Reiner> *time passes* ... After reading the discussion >> Reiner> , I >> Reiner> think we should change `gnus-set-file-modes' as follows... >> >> Seems ok to me. Your flag gnus-ignore-set-file-modes-errors should be t >> on win32 native (don't know about cygwin). > > I looked at some non-Gnus occurrences of set-file-modes in XEmacs > (21.4.17/lib/xemacs/xemacs-packages/lisp/*/*.el). (I didn't look at > tramp and efs because those deal with remote files.) > > Only vm/vm-folder.el does something like `ignore-errors': > > vm/vm-folder.el:2675: (vm-error-free-call 'set-file-modes index-file (vm-octal 600)) > > All other packages just call `set-file-modes' directly. Could you try > if savehist-mode fails for you too? The version from XEmacs contains: > > (set-file-modes savehist-file savehist-modes) > > Maybe you could ask on xemacs-beta if it is intended that > `set-file-modes' fails in your setup or if it is a bug. Is is intended that `set-file-modes' throws an error in XEmacs in Fabrice's setup? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/