From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#11156: 24.0.95; require-final-newline and read-only files Date: Sat, 14 Apr 2012 20:56:57 +0200 Message-ID: <4F89C879.6070209@gmx.at> References: <20120402215210.3718F201C8@saturn.ch.ristopher.com> <20120414134925.D1D9B20217@saturn.ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334429865 10460 80.91.229.3 (14 Apr 2012 18:57:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2012 18:57:45 +0000 (UTC) To: 11156@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 20:57:44 2012 Return-path: Envelope-to: geb-bug-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 1SJ8AJ-0005eZ-5a for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2012 20:57:43 +0200 Original-Received: from localhost ([::1]:53005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ8AI-0002Ux-Lu for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2012 14:57:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ8AF-0002Uf-KC for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:57:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJ8AD-0004nK-GS for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:57:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ8AD-0004n4-DI for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:57:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SJ8Ba-0004iu-9i for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Apr 2012 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133442992718133 (code B ref -1); Sat, 14 Apr 2012 18:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Apr 2012 18:58:47 +0000 Original-Received: from localhost ([127.0.0.1]:58966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJ8BL-0004iQ-Eo for submit@debbugs.gnu.org; Sat, 14 Apr 2012 14:58:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38463) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJ8BI-0004iI-Fj for submit@debbugs.gnu.org; Sat, 14 Apr 2012 14:58:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJ89t-0004j3-Mo for submit@debbugs.gnu.org; Sat, 14 Apr 2012 14:57:18 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:48691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ89t-0004iz-JR for submit@debbugs.gnu.org; Sat, 14 Apr 2012 14:57:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJ89r-0002UW-Uq for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:57:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJ89q-0004ik-44 for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:57:15 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:36161) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SJ89p-0004ie-Pd for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2012 14:57:14 -0400 Original-Received: (qmail invoked by alias); 14 Apr 2012 18:57:11 -0000 Original-Received: from 62-47-32-159.adsl.highway.telekom.at (EHLO [62.47.32.159]) [62.47.32.159] by mail.gmx.net (mp002) with SMTP; 14 Apr 2012 20:57:11 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+duNUCUhOdfMLG2lL2M8glkLr01ZMn1TgSkA2iCj ThxR6K179XlIKa In-Reply-To: <20120414134925.D1D9B20217@saturn.ch.ristopher.com> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:59073 Archived-At: >> cd /tmp >> echo -n rms > rms >> chmod u=r rms >> emacs -q >> eval: (setq require-final-newline 'visit) >> C-x C-f /tmp/rms RET >> >> There is a new buffer but no window displays it. The >> *Messages*-buffer contains `find-file-noselect-1: Buffer is read-only: >> #' > > It is annoying that one needs to manually switch to the buffer after > finding a read-only file. But, more important, find-file-hook is not > run. This breaks lots of packages and makes this issue a severe one for > me. `after-find-file' shouldn't try adding a newline if `buffer-read-only' is non-nil. And the values 'visit and 'visit-save should be documented in the Elisp manual. martin