From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Auto-Prompt for Password and Raise Privilegies when needed Date: Wed, 05 May 2010 00:14:22 -0400 Message-ID: References: <146fc610-6a5e-4607-b61d-248c926f1d67@b7g2000yqk.googlegroups.com> <87bpcwsncr.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273076126 13053 80.91.229.12 (5 May 2010 16:15:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 16:15:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 18:15:25 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9hFt-0001zA-3M for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 18:15:25 +0200 Original-Received: from localhost ([127.0.0.1]:33891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9h8s-00034b-Vm for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 12:08:10 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe11.iad.POSTED!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:AaP3KijUPG5QdC0xJ64YfmKgSRQ= Original-Lines: 11 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Wed, 05 May 2010 04:14:22 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:177937 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73461 Archived-At: > 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