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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32743 in the body.
You can then email your comments to 32743 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32743; Package emacs. (Sun, 16 Sep 2018 07:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 16 Sep 2018 07:19:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; down-list RFC
Date: Sun, 16 Sep 2018 09:17:08 +0200
Hi all,

‘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.

BTW with current or-clause, second expression will be never be
executed due to error thrown as mentioned:

(goto-char (or (scan-lists (point) inc -1) (buffer-end arg)))

Also reaching buffer-end doesn't make sense IMO in this case, point
should not change then while returning nil.

Thanks,
Andreas
gladly running GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ 
Version 3.14.5) of 2018-09-15




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32743; Package emacs. (Sat, 13 Jul 2019 02:19:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 32743 <at> debbugs.gnu.org
Subject: Re: 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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 13 Jul 2019 02:19:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 32743 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 13 Jul 2019 02:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Aug 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 233 days ago.

Previous Next


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