[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto-Prompt for Password and Raise Privilegies when needed
From: |
Stefan Monnier |
Subject: |
Re: Auto-Prompt for Password and Raise Privilegies when needed |
Date: |
Wed, 05 May 2010 00:14:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> with the main problem being that `first-edit-read-only-file-hook'
> doesn't exist, and there don't seem to be any analogs.
There's first-change-hook, which is somewhat close.
Of course, this only works if the buffer is writable (i.e. if the buffer
is read-only, attempts to modify the buffer will signal an error before
getting a chance to run this hook).
Stefan