GNU bug report logs - #51459
29.0.50; org-return and org-return-and-maybe-indent

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Thu, 28 Oct 2021 10:18:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 51459 <at> debbugs.gnu.org (full text, mbox):

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51459 <at> debbugs.gnu.org
Subject: C-u RET fails with "Wrong type argument" (was: bug#51459: 29.0.50;
 org-return and org-return-and-maybe-indent)
Date: Thu, 28 Oct 2021 16:53:28 +0200
Kévin Le Gouguec <kevin.legouguec <at> gmail.com> writes:

>> When calling C-u RET, get "org--newline: Wrong type argument:
>> number-or-marker-p, (4)"
>
> That does look like a bug, however.

And it's not tied to Org, AFAICT.  C-u RET borks in fundamental-mode as
well, since ARG is (1) interactively obtained as a raw prefix argument
(2) used in a numeric comparison:

(defun newline (&optional arg interactive)
  […]
  (interactive "*P\np")
  (barf-if-buffer-read-only)
  (when (and arg
             (< arg 0))

IIUC this comparison comes from 2021-09-30 "Make `newline' check the
argument earlier" (d1aacceae9); Lars, should there be a
prefix-numeric-value or something thrown in there somewhere?




This bug report was last modified 3 years and 265 days ago.

Previous Next


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