From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Select and Paste Date: Fri, 01 Dec 2006 17:02:14 -0500 Message-ID: References: <456E3547.3030606@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1165010591 14760 80.91.229.2 (1 Dec 2006 22:03:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2006 22:03:11 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 01 23:03:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqGTG-00007B-Hh for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2006 23:03:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqGTG-0001E5-8U for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2006 17:03:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GqGSX-0000g1-OL for emacs-devel@gnu.org; Fri, 01 Dec 2006 17:02:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GqGSW-0000ew-EC for emacs-devel@gnu.org; Fri, 01 Dec 2006 17:02:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqGSW-0000ej-9D for emacs-devel@gnu.org; Fri, 01 Dec 2006 17:02:16 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GqGSV-0006dy-PK for emacs-devel@gnu.org; Fri, 01 Dec 2006 17:02:15 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1GqGSU-0002iS-C7; Fri, 01 Dec 2006 17:02:14 -0500 Original-To: Eli Zaretskii In-reply-to: (message from Eli Zaretskii on Fri, 01 Dec 2006 13:54:55 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63206 Archived-At: > That seems like a bug, but it doesn't happen when I try it, > and the code checks buffer-read-only. Can you debug why it > fails for you? The fact that Paste and Select and Paste behave differently is not a bug: Paste could be enabled because Emacs sees text in the X selection (or the Windows clipboard). In that case, if the Emacs kill-ring is empty, Select and Paste will be disabled. Both of these have conditions of the form (and ... (not buffer-read-only)), so I don't see how either of them could be enabled in a read-only buffer regardless of other circumstances. The same is true of Cut. Can anyone debug this? Does anyone else see it fail this way?