From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#10419: 23.3; byte-compile-file: Buffer is read-only: # Date: Sun, 08 Jan 2012 15:51:21 +0100 Message-ID: <8739bq1c46.fsf@web.de> References: <871urjgq6g.fsf@web.de> <87vcom1t8l.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326034266 26560 80.91.229.12 (8 Jan 2012 14:51:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2012 14:51:06 +0000 (UTC) Cc: 10419@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 15:51:01 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rju5K-00084X-Gj for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 15:50:58 +0100 Original-Received: from localhost ([::1]:58652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rju5K-0004kr-6B for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 09:50:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rju5H-0004k2-9q for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 09:50:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rju5F-0003j9-VV for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 09:50:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rju5F-0003j5-R9 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 09:50:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rju5N-0007Sl-OJ for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 09:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2012 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10419 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10419-submit@debbugs.gnu.org id=B10419.132603422128638 (code B ref 10419); Sun, 08 Jan 2012 14:51:01 +0000 Original-Received: (at 10419) by debbugs.gnu.org; 8 Jan 2012 14:50:21 +0000 Original-Received: from localhost ([127.0.0.1]:49691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rju4j-0007Rr-0r for submit@debbugs.gnu.org; Sun, 08 Jan 2012 09:50:21 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:39692) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rju4g-0007Rb-5G for 10419@debbugs.gnu.org; Sun, 08 Jan 2012 09:50:19 -0500 Original-Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate01.web.de (Postfix) with ESMTP id A83F61A878F75 for <10419@debbugs.gnu.org>; Sun, 8 Jan 2012 15:50:03 +0100 (CET) Original-Received: from snow ([82.113.106.8]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0LoYFm-1SLizI2HYg-00gpBa; Sun, 08 Jan 2012 15:50:03 +0100 In-Reply-To: (Andreas Schwab's message of "Sun, 08 Jan 2012 10:46:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-Provags-ID: V02:K0:Bxit6GKvLUQFvEKuALgWfqUQnKGobHICZIqAVR/c5bF ljwzewt9AHxb6tWTTbhmdzcaC4aKp9hDeswZizv1dtS3FttE6W f9IZatZDdpHV215B7X+kBhnxoX5auaBv5olUaw7bkVGhbmMxK5 x0AmxgBGmqliNDKIJ1zhEdDpEjwtKqSUIy4VwTc6x40apAWLpH LwPGF/Kp+skL6XD+Q9CcFw/1NTojBpqxdpdOgsimuU= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:55541 Archived-At: Andreas Schwab writes: > >> I don't know why you don't just make the file read-only on disk. > > > > Of course I could do that. But then I may forget to make it read-only > > again after editing the file. > > Emacs allows you to edit read-only files, making it writable temporarily > when saving (after confirmation). Oh yes, right, I forgot. I guess I chose my solution to get rid of the (yes-or-no-p (format "File %s is write-protected; try to save anyway? " (file-name-nondirectory buffer-file-name))) query every time when saving. With my solution, I have to toggle the read-only flag only once and avoid the annoying `yes-or-no-p'. Thanks, Michael.