From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: cua: quiet warning messages Date: Mon, 16 Jun 2003 10:04:21 -0700 (PDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030616170421.37652.qmail@web80512.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055783460 14409 80.91.224.249 (16 Jun 2003 17:11:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2003 17:11:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 16 19:10:58 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19RxUk-0003hB-00 for ; Mon, 16 Jun 2003 19:10:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19RxsF-0006Sk-00 for ; Mon, 16 Jun 2003 19:34:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19RxVH-00008O-G2 for emacs-devel@quimby.gnus.org; Mon, 16 Jun 2003 13:10:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19RxRs-0006yc-Tr for emacs-devel@gnu.org; Mon, 16 Jun 2003 13:07:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19RxPW-0005vy-Ou for emacs-devel@gnu.org; Mon, 16 Jun 2003 13:04:51 -0400 Original-Received: from web80512.mail.yahoo.com ([66.218.79.82]) by monty-python.gnu.org with smtp (Exim 4.20) id 19RxP5-0005jy-PZ for emacs-devel@gnu.org; Mon, 16 Jun 2003 13:04:23 -0400 Original-Received: from [12.25.19.242] by web80512.mail.yahoo.com via HTTP; Mon, 16 Jun 2003 10:04:21 PDT Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15130 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15130 I've noticed that when CUA starts up under 21.3.50 that it issues warning messages when delete-selection-mode and pc-selection-mode are disabled. Actually the error is issued by the modes themselves. The warnings are: Toggling delete-selection-mode off; better pass an explicit argument. Toggling pc-selection-mode off; better pass an explicit argument. This patch corrects this by passing the explicit argument. Index: emacs/lisp/emulation/cua-base.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/emulation/cua-base.el,v retrieving revision 1.24 diff -b -u -r1.24 cua-base.el --- emacs/lisp/emulation/cua-base.el 18 Apr 2003 22:49:20 -0000 1.24 +++ emacs/lisp/emulation/cua-base.el 14 Jun 2003 23:20:19 -0000 @@ -1204,9 +1204,9 @@ (and (boundp 'delete-selection-mode) delete-selection-mode) (and (boundp 'pc-selection-mode) pc-selection-mode))) (if (and (boundp 'delete-selection-mode) delete-selection-mode) - (delete-selection-mode)) + (delete-selection-mode -1)) (if (and (boundp 'pc-selection-mode) pc-selection-mode) - (pc-selection-mode)) + (pc-selection-mode -1)) (setq transient-mark-mode (and cua-mode (if cua-highlight-region-shift-only (not cua--explicit-region-start) __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com