unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* cua: quiet warning messages
@ 2003-06-16 17:04 Michael Mauger
  2003-06-16 18:47 ` Luc Teirlinck
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Mauger @ 2003-06-16 17:04 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-07-04  0:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-16 17:04 cua: quiet warning messages Michael Mauger
2003-06-16 18:47 ` Luc Teirlinck
2003-06-16 19:12   ` Stefan Monnier
2003-06-16 19:41     ` Luc Teirlinck
2003-06-22  3:01     ` Richard Stallman
2003-06-23 17:00       ` Stefan Monnier
2003-07-01 15:17         ` Richard Stallman
2003-07-04  0:47           ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).