all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 18915@debbugs.gnu.org, Ed Avis <eda@waniasset.com>
Subject: bug#18915: 24.3; Feature: Prompt to make executable on write-file
Date: Fri, 31 Oct 2014 16:34:53 -0400	[thread overview]
Message-ID: <jwvr3xoughw.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <g8tx2k9ks3.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 31 Oct 2014 14:06:04 -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





  parent reply	other threads:[~2014-10-31 20:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-31 18:01 bug#18915: 24.3; Feature: Prompt to make executable on write-file Ed Avis
2014-10-31 18:06 ` Glenn Morris
2014-10-31 18:12   ` Ed Avis
2014-10-31 20:34   ` Stefan Monnier [this message]
2014-10-31 20:54     ` Ed Avis
2014-10-31 21:16 ` Stefan Monnier
2021-12-02 12:21   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvr3xoughw.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18915@debbugs.gnu.org \
    --cc=eda@waniasset.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.