GNU bug report logs - #34947
26.1; cua-mode: wrong type argument when activating rectangle

Previous Next

Package: emacs;

Reported by: Braun Gábor <braungb88 <at> gmail.com>

Date: Fri, 22 Mar 2019 15:13:02 UTC

Severity: minor

Tags: fixed, patch

Found in version 26.1

Fixed in version 26.3

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> gmail.com>
To: Braun Gábor <braungb88 <at> gmail.com>
Cc: 34947 <at> debbugs.gnu.org
Subject: bug#34947: 26.1; cua-mode: wrong type argument when activating rectangle
Date: Mon, 15 Apr 2019 21:10:58 -0400
severity 34947 minor
tags 34947 + patch
quit

Braun Gábor <braungb88 <at> gmail.com> 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.





This bug report was last modified 6 years and 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.