From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ed Avis Newsgroups: gmane.emacs.bugs Subject: bug#18915: 24.3; Feature: Prompt to make executable on write-file Date: Fri, 31 Oct 2014 18:01:19 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C743081012B@WCL-EXCH02.wcl.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414789042 19186 80.91.229.3 (31 Oct 2014 20:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 20:57:22 +0000 (UTC) To: 18915@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 21:57:16 2014 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 1XkJFz-0007k3-MZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2014 21:57:15 +0100 Original-Received: from localhost ([::1]:43388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkJ5I-0002tW-Nd for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2014 16:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGWY-0005PT-TI for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:02:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkGWR-0004Nw-N0 for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:02:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGWR-0004Nm-KV for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XkGWR-0003ZV-3j for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ed Avis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Oct 2014 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "'bug-gnu-emacs@gnu.org'" Original-Received: via spool by submit@debbugs.gnu.org id=B.141477851013708 (code B ref -1); Fri, 31 Oct 2014 18:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2014 18:01:50 +0000 Original-Received: from localhost ([127.0.0.1]:44077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkGWD-0003Z0-4a for submit@debbugs.gnu.org; Fri, 31 Oct 2014 14:01:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57996) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkGW9-0003Yk-HE for submit@debbugs.gnu.org; Fri, 31 Oct 2014 14:01:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkGVy-0003zc-IF for submit@debbugs.gnu.org; Fri, 31 Oct 2014 14:01:40 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGVy-0003zY-Fa for submit@debbugs.gnu.org; Fri, 31 Oct 2014 14:01:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGVs-0003wG-SZ for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:01:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkGVn-0003xO-7C for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:01:28 -0400 Original-Received: from mail1.bemta5.messagelabs.com ([195.245.231.142]:10852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGVm-0003x9-VS for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 14:01:23 -0400 Original-Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id F7/F0-26652-17EC3545; Fri, 31 Oct 2014 18:01:21 +0000 X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-10.tower-206.messagelabs.com!1414778480!7690636!1 X-Originating-IP: [80.169.169.167] X-StarScan-Received: X-StarScan-Version: 6.12.3; banners=waniasset.com,-,- X-VirusChecked: Checked Original-Received: (qmail 10528 invoked from network); 31 Oct 2014 18:01:20 -0000 Original-Received: from unknown (HELO WCL-EXCHCAS02.wcl.local) (80.169.169.167) by server-10.tower-206.messagelabs.com with AES128-SHA encrypted SMTP; 31 Oct 2014 18:01:20 -0000 Original-Received: from WCL-EXCH02.wcl.local ([169.254.1.16]) by WCL-EXCHCAS02.wcl.local ([149.85.127.102]) with mapi id 14.03.0123.003; Fri, 31 Oct 2014 18:01:20 +0000 Thread-Topic: 24.3; Feature: Prompt to make executable on write-file Thread-Index: Ac/1NIXn0ixV3ghfTUu0NsZDfVOgZw== Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.143] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 140.186.70.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:95330 This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': On Unix, Create a file with execute permission (chmod a+x file) and open it with C-x C-f file RET. Now save that as a different file, C-x C-w otherfile RET. Current behaviour: a file called otherfile is written but it is not executable, even though the file that you originally visited was. It would be useful if Emacs on write-file would first write the new file, and then (only if that involved creating the new file, and only if the buffer was previously visiting an executable file) prompt for whether to make the newly written file executable. I suggest that most of the time, the user will probably want to make the new file executable (if you edit a script and save a copy, you'll probably want to run the new script). However, making things executable by default is a bit dangerous, so better to prompt. 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'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-09-30 on buildvm-10.phx2.fedoraproject.org Configured using: `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3Dx86_64-redhat-linux-gnu' '--program-prefix=3D' '--disable-dependency-tracking' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--includedir=3D/usr/include' '--libdir=3D/usr/lib64' '--libexecdir=3D/usr/libexec' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=3Dgtk3' '--with-gpm=3Dno' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_alias=3Dx86_64-redhat-linux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4 -grecord-gcc-switches -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro '' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Help Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a C-x C-w t e s t C-a C-k / v a r TAB q w TAB DEL DEL w TAB c g TAB t e s t _ c a DEL DEL DEL / c a p TAB i t a l _ a l l o c a t i o n RET ESC x s h e l l RET ESC > w c DEL DEL e c h o SPC ; DEL ' c a p i t a l _ a l l o c a t i o n ? f u n d _ g r o u p _ i d =3D 0 ' SPC | SPC . / m i s TAB t e s t _ p a TAB RET C-x 2 C-x o C-x b c a p TAB RET C-x C-f / v a r TAB C-g C-x k RET C-x C-f / v a r TAB w TAB C-g ESC ! C-g c j m DEL DEL h m o d SPC a + x SPC / v a r TAB w TAB c g TAB t e s t / c a p TAB RET C-h k C-x C-w c a p i t a l _ a l l o c a t i o n ? f u n d _ g r o u p _ i d =3D 0 C-g C-g ESC x e m a c s - b u TAB g RET DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL r e p o r t - e m TAB RET Recent messages: Mark set Mark saved where search started [3 times] Saving file /var/www/cgi-bin/test/capital_allocation... Wrote /var/www/cgi-bin/test/capital_allocation Mark set Quit [3 times] Type "q" to delete help window. Quit [2 times] delete-backward-char: Text is read-only [2 times] Load-path shadows: None found. Features: (shadow sort emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils etags mail-extr dired vc-cvs vc-rcs make-mode pcmpl-rpm tabify man sh-script smie executable conf-mode imenu nroff-mode python rx cus-edit wid-edit cus-start cus-load perl-mode ffap url-parse auth-source eieio gnus-util mm-util mail-prsvr password-cache url-vars dabbrev edmacro kmacro mule-util log-edit diff-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok misearch multi-isearch add-log log-view easy-mmode pcvs-util vc vc-dispatcher vc-svn sql thingatpt help-mode pcmpl-unix time-date server csharp-mode warnings advice help-fns advice-preload byte-opt bytecomp byte-compile cconv cc-langs cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs zoom-frm frame-cmds frame-fns cl-macs gv avoid cl cl-lib compile shell pcomplete comint ring ansi-color tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=20 Ed Avis ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________