GNU bug report logs - #77744
31.0.50; Inconsistent error signal in up-list-default-function and treesit-up-list

Previous Next

Package: emacs;

Reported by: Roman Rudakov <rrudakov <at> fastmail.com>

Date: Fri, 11 Apr 2025 14:28:02 UTC

Severity: normal

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Roman Rudakov <rrudakov <at> fastmail.com>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 77744 <at> debbugs.gnu.org
Subject: bug#77744: 31.0.50; Inconsistent error signal in up-list-default-function and treesit-up-list
Date: Fri, 11 Apr 2025 19:25:17 +0300
> In Tree-sitter-based major modes, when up-list (or backward-up-list) is
> used, the operation is delegated to the treesit-up-list function. In
> traditional major modes, this is typically handled by
> up-list-default-function if a custom up-list-function is not defined. When
> the top level is reached, up-list-default-function signals scan-error, but
> treesit-up-list signals user-error.

This is because 'up-list-default-function' signals both:

  (if no-syntax-crossing
      ;; Assume called interactively; don't signal an error.
      (user-error "At top level")
    (signal (car err) (cdr err)))




This bug report was last modified 99 days ago.

Previous Next


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