GNU bug report logs - #18915
24.3; Feature: Prompt to make executable on write-file

Previous Next

Package: emacs;

Reported by: Ed Avis <eda <at> waniasset.com>

Date: Fri, 31 Oct 2014 18:02:02 UTC

Severity: wishlist

Found in version 24.3

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 18915 <at> debbugs.gnu.org, Ed Avis <eda <at> waniasset.com>
Subject: bug#18915: 24.3; Feature: Prompt to make executable on write-file
Date: Fri, 31 Oct 2014 16:34:53 -0400
> (add-hook 'after-save-hook
>           'executable-make-buffer-file-executable-if-script-p)
>
> already handles that particular case, so personally I don't see the need
> for a new, more general feature for this.

Also, FWIW, I use such a hook in my .emacs and have found it
occasionally harmful, e.g. when editing the emacs/test/indent/scheme.scm
file, which then gets it `execute' bit set, even though it's not meant
to be executed.
Tho I guess it'd be OK to mark those files as executable, but I can't
get myself to do it, so I regularly end up "chmod -x"ing those files
after editing them.


        Stefan




This bug report was last modified 3 years and 168 days ago.

Previous Next


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