From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Select and Paste Date: Sat, 02 Dec 2006 20:53:10 +0100 Message-ID: <4571D9A6.8010604@gmx.at> References: <456E3547.3030606@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165089301 10911 80.91.229.2 (2 Dec 2006 19:55:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 19:55:01 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 02 20:54:59 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 1Gqawk-0008JG-Uo for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2006 20:54:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gqawk-0007Ip-M8 for ged-emacs-devel@m.gmane.org; Sat, 02 Dec 2006 14:54:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GqawX-0007Ij-4r for emacs-devel@gnu.org; Sat, 02 Dec 2006 14:54:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GqawV-0007H2-LD for emacs-devel@gnu.org; Sat, 02 Dec 2006 14:54:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqawV-0007Gk-HP for emacs-devel@gnu.org; Sat, 02 Dec 2006 14:54:35 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1GqawU-0004Vh-6m for emacs-devel@gnu.org; Sat, 02 Dec 2006 14:54:34 -0500 Original-Received: (qmail invoked by alias); 02 Dec 2006 19:54:31 -0000 Original-Received: from N774P017.adsl.highway.telekom.at (EHLO [62.47.40.177]) [62.47.40.177] by mail.gmx.net (mp044) with SMTP; 02 Dec 2006 20:54:31 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: rms@gnu.org In-Reply-To: X-Y-GMX-Trusted: 0 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:63233 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. Maybe because the key definitions come from `menu-bar-enable-clipboard'.