From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#34947: 26.1; cua-mode: wrong type argument when activating rectangle Date: Mon, 15 Apr 2019 21:10:58 -0400 Message-ID: <87bm16zrdp.fsf@gmail.com> References: <11259231.O9o76ZdvQC@gabor> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152020"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 34947@debbugs.gnu.org To: Braun =?UTF-8?Q?G=C3=A1bor?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 16 03:12:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGCdw-000dRg-4W for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2019 03:12:12 +0200 Original-Received: from localhost ([127.0.0.1]:57589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGCdu-0003MU-Vg for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Apr 2019 21:12:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGCdo-0003MF-7e for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 21:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGCdn-0005LE-7Z for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 21:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGCdm-0005L4-Tu for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 21:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hGCdm-0006cd-L0 for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2019 21:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Apr 2019 01:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34947 X-GNU-PR-Package: emacs Original-Received: via spool by 34947-submit@debbugs.gnu.org id=B34947.155537706925384 (code B ref 34947); Tue, 16 Apr 2019 01:12:02 +0000 Original-Received: (at 34947) by debbugs.gnu.org; 16 Apr 2019 01:11:09 +0000 Original-Received: from localhost ([127.0.0.1]:35950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGCcv-0006bH-72 for submit@debbugs.gnu.org; Mon, 15 Apr 2019 21:11:09 -0400 Original-Received: from mail-qt1-f180.google.com ([209.85.160.180]:42894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGCcs-0006ah-B1; Mon, 15 Apr 2019 21:11:06 -0400 Original-Received: by mail-qt1-f180.google.com with SMTP id p20so21485628qtc.9; Mon, 15 Apr 2019 18:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=mIT8GRcBJtgPPzQ6SmbJ4Mq781Fj0IE9v/Yo6kwZ9lw=; b=ekzJhdDlUgKUtC50GUK5DpJJtQW9On5Qxhn5wLXcMRjvbNswLEBzK7Y/DpcEaAldbU vroDmkR1OD6WMrn56PBUvSHBE51PepCWMl2ymPpVYmmkXtvS7ZKbCVSaNOxNkvndEFbH RePD45P7YwV+T+6CsMD3ixGIaqg1JV6epVM+qlxw3MrnD8BmoiZwEmdyxFjYdwbY1Ohi 26dwsGHAs5CtMMzep8BNzX9esWqimnYRISMkV4+C69ubx1DzN6NL2YaHF5eJfikP8vZF 71GQxhd5W1/gfS70u/ht41xtvXnx5eOZlqZsPWnlqZqcxNjbZkvDMBsAQGnHqHZJYCkU KwvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=mIT8GRcBJtgPPzQ6SmbJ4Mq781Fj0IE9v/Yo6kwZ9lw=; b=MEYJ9itJUNZiSiDvSkVuOtvvfKPKHX0RbiahuXMrhPKoGOnPUNqIthwyh0FU++EXjr KxBH01IU0ZJ9VCdBW+iYLyKJar/dy9bAp4Det5LjEm74fcX5cqUfhTRsFSGDuqyn4IXn Bqi3pSXXBv3p28/5TCorqs9v/BIERQ2tQ+rOstjPzooukvBYjyGmE2uX7My1+pa6Jb68 ixrrPyBHe2FfDxVp97u6hJfj2El+zqK+AfuTPx1bi5Gk3gkPnZZ24Qh8hi14ly8WXZHG xjebxogknUejx70kg89YmBvPGjQfufFUnI7RjL4BmQSmd0PXMukfnTMA6dUQ3slkfwu3 5eXw== X-Gm-Message-State: APjAAAVaPUzvvQJEH8cySsFPSQxQ/FPCT3fPYu5PxFlVJWtp39xaq47F xUVBWP0fgkAgBFZvK6wGR/h594D0 X-Google-Smtp-Source: APXvYqxMdPxd+X9LWAv08nDLhG/wZ4ROkR9ckkR+j90mf6NyH/cgo6DfVe29Gt8qvV/YJ8NXBP5AIg== X-Received: by 2002:ac8:294c:: with SMTP id z12mr64933010qtz.79.1555377060776; Mon, 15 Apr 2019 18:11:00 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id h13sm16951340qkj.96.2019.04.15.18.10.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Apr 2019 18:10:59 -0700 (PDT) In-Reply-To: <11259231.O9o76ZdvQC@gabor> ("Braun \=\?utf-8\?Q\?G\=C3\=A1bor\=22's\?\= message of "Fri, 22 Mar 2019 16:11:44 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:157691 Archived-At: severity 34947 minor tags 34947 + patch quit Braun G=C3=A1bor writes: > Suggested patch: > > Autoload the command mentioned in the error message. > Library cua-base.el binds cua-toggle-rectangle-mark to a key > in the :set function in (defcustom cua-rectangle-mark-key ...), > so it should ensure that the command is defined. > > --- lisp/emulation/cua-base.el 2018-12-15 09:08:18 +0100 > +++ lisp/emulation/cua-base.el 2019-03-09 09:08:18 +0100 > @@ -592,6 +592,7 @@ > > (autoload 'cua-set-rectangle-mark "cua-rect" > "Start rectangle at mouse click position." t nil) > +(autoload 'cua-toggle-rectangle-mark "cua-rect" nil t) > > ;; Stub definitions until it is loaded > (defvar cua--rectangle) Looks safe and sensible, I'll push to emacs-26 in a couple of days if there are no objections.