From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: why read only buffer? Date: Fri, 6 Jul 2012 13:58:49 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1341608347 31531 80.91.229.3 (6 Jul 2012 20:59:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2012 20:59:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 06 22:59:06 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SnFcD-0004LJ-MF for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2012 22:59:01 +0200 Original-Received: from localhost ([::1]:50423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnFcC-0006Bv-IH for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2012 16:59:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnFc7-0006Bq-19 for help-gnu-emacs@gnu.org; Fri, 06 Jul 2012 16:58:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnFc5-0005Yk-3C for help-gnu-emacs@gnu.org; Fri, 06 Jul 2012 16:58:54 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:57003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnFc4-0005V3-Nb for help-gnu-emacs@gnu.org; Fri, 06 Jul 2012 16:58:52 -0400 Original-Received: by lbjn8 with SMTP id n8so8077999lbj.0 for ; Fri, 06 Jul 2012 13:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=wzpxScIXLZ9pRLbJ/6DmeALWX9UB/F3uK+lqWtbtD6w=; b=ACZ6OaLd2w/huws4K9lgGQidR+UV4z5LMzgiR6s7zmAoLFyYPttGmZjggrIPaEsaFw v8m8txKP/lpVUSPEtZ82WddkkkD199AX1Ht8so+gsGY96njy9rBOZGyV67tI8WZrqs3E 4GiE4LPNcZazWPFHfxWxCvRrISe69S0yeb+e8r7rcfio3H8WUWu3rzZrEGTplXIcva5n n8dyXXIbkIvo99IBLQif6gkp1ky27v6axj0ykaxnzvGDfthLEG3vdCxUuxrMM1GVPzdn Qm/1m5oWRuL1pPjfZgRUE5TwEsIY5eC6znjRTuKfl6ALbjfpIs9/RIxz6xG8pfuchVkW 1GOA== Original-Received: by 10.112.42.41 with SMTP id k9mr14494242lbl.90.1341608329614; Fri, 06 Jul 2012 13:58:49 -0700 (PDT) Original-Received: by 10.112.5.102 with HTTP; Fri, 6 Jul 2012 13:58:49 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: nT0EbpqE3PSK3G_qWQZFgCw6i7A X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85704 Archived-At: On Fri, Jul 6, 2012 at 12:44 PM, Alp Aker wrote: > On Fri, Jul 6, 2012 at 3:04 PM, notbob wrote: >> As you can see, it's a backup file. So? I can edit the regular file, >> but not the backup (~) file. Identical permissions. WTF!? > > Use the command 'toggle-read-only' (default binding C-x C-q) if you > want to edit a backup file. That's deliberately there to stop you from accidentally modifying a backup file when you meant to be working with the regular file. If you searched through the source you'd find this in files.el: ----- ;; Make people do a little extra work (C-x C-q) ;; before altering a backup file. (when (backup-file-name-p buffer-file-name) (setq buffer-read-only t)) ----- -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.