From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: write-file could carry permissions Date: 13 May 2003 00:39:27 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87ptmpm75y.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1052800705 30646 80.91.224.249 (13 May 2003 04:38:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 May 2003 04:38:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 13 06:38:23 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FRYV-0007y7-00 for ; Tue, 13 May 2003 06:38:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19FRfE-0007OW-00 for ; Tue, 13 May 2003 06:45:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FRZu-0003Lt-00 for emacs-devel@quimby.gnus.org; Tue, 13 May 2003 00:39:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19FRZb-0003DQ-00 for emacs-devel@gnu.org; Tue, 13 May 2003 00:39:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19FRZZ-00039k-00 for emacs-devel@gnu.org; Tue, 13 May 2003 00:39:30 -0400 Original-Received: from colo.agora-net.com ([207.245.84.69]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FRZX-00037o-00; Tue, 13 May 2003 00:39:28 -0400 Original-Received: from ttn by colo.agora-net.com with local (Exim 3.34 #1) id 19FRZX-00061F-00; Tue, 13 May 2003 00:39:27 -0400 Original-To: rms@gnu.org In-Reply-To: Richard Stallman's message of "Mon, 12 May 2003 21:47:08 -0400" Original-Lines: 16 X-Mailer: Gnus v5.7/Emacs 20.7 Original-cc: Dan Jacobson X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13821 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13821 Richard Stallman writes: maybe Emacs should always set the executable bit when you edit a file in Shell Script mode. Is there any reason that would be bad? if you write a file in a directory where some cron-driven script walker sees it, it is better if that file is not executable unless you explicitly make it so. (principle of least surprise according to the sysadmin.) on the other hand, there's no problem w/ emacs providing a convenient way to effect this decision (e.g., a write-file hook subject to y-or-n-p). thi