GNU bug report logs - #32743
27.0.50; down-list RFC

Previous Next

Package: emacs;

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

Date: Sun, 16 Sep 2018 07:19:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 27.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 32743 <at> debbugs.gnu.org
Subject: bug#32743: 27.0.50; down-list RFC
Date: Sat, 13 Jul 2019 04:18:02 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> ‘down-list’ currently returns nil if successful but Scan error:
> "Containing expression ends prematurely" if no further list exist downwards.
>
> Suggest to return position reached if successful and nil if no further
> list exist.

Hm...  I'm not sure that makes sense -- this is down-list:

  (let ((inc (if (> arg 0) 1 -1)))
    (while (/= arg 0)
      (goto-char (or (scan-lists (point) inc -1) (buffer-end arg)))
      (setq arg (- arg inc)))))

It very much looks like a command just meant for interactive use, and if
you want to do something programmatically in this area, you should
probably just use scan-lists directly.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

Previous Next


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