GNU bug report logs -
#16990
24.3.50; Return a useful value for motion functions
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 11 Mar 2014 20:05:02 UTC
Severity: wishlist
Tags: wontfix
Found in version 24.3.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 16990 in the body.
You can then email your comments to 16990 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16990
; Package
emacs
.
(Tue, 11 Mar 2014 20:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 11 Mar 2014 20:05:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Enhancement request: Return a useful value for motion functions, when
possible.
The set of candidate functions for enhancement are motion functions.
Yes, each needs to be checked in detail, and handled appropriately.
One size does not fit all. A return value choice should be based on
what is generally most useful in the context of using the function.
This is the promised followup from the discussion for bug #15117. See
that thread for more information (relevant functions, possible return
values, etc.)
In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2014-03-04 on ODIEONE Bzr
revision: 116662 kbrown <at> cornell.edu-20140304190249-6s13s5bwn3un3hfe
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using: `configure --prefix=/c/Devel/emacs/binary
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3' 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include' LDFLAGS=-Lc:/Devel/emacs/lib'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16990
; Package
emacs
.
(Fri, 29 Apr 2016 18:01:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16990 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> Enhancement request: Return a useful value for motion functions, when
> possible.
>
> The set of candidate functions for enhancement are motion functions.
> Yes, each needs to be checked in detail, and handled appropriately.
> One size does not fit all. A return value choice should be based on
> what is generally most useful in the context of using the function.
>
> This is the promised followup from the discussion for bug #15117. See
> that thread for more information (relevant functions, possible return
> values, etc.)
I seem to recall that this was about you wanting side-effect-only
functions to return values? The rest of us were against it, I think.
Closing.
--
(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
.
(Fri, 29 Apr 2016 18:01:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
16990 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 29 Apr 2016 18:01:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16990
; Package
emacs
.
(Fri, 29 Apr 2016 18:56:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 16990 <at> debbugs.gnu.org (full text, mbox):
> > Enhancement request: Return a useful value for motion functions,
> > when possible.
> >
> > The set of candidate functions for enhancement are motion functions.
> > Yes, each needs to be checked in detail, and handled appropriately.
> > One size does not fit all. A return value choice should be based on
> > what is generally most useful in the context of using the function.
> >
> > This is the promised followup from the discussion for bug #15117. See
> > that thread for more information (relevant functions, possible return
> > values, etc.)
>
> I seem to recall that this was about you wanting side-effect-only
> functions to return values? The rest of us were against it, I think.
> Closing.
You seem to recall wrong. There was no "rest of us were against
it" - at all. And no, it was not as superficial and general as
my "wanting side-effect-only functions to return [useful] values".
Please read the Subject line. This is about motion functions -
at least some of them, and to be examined on a case-by-case basis.
Here's Eli, saying the same thing (in the referenced bug thread)
I say in my 2nd sentence of this thread: one size does not fit all,
and suggesting reasonable (better) values for two such functions:
Why point? E.g., forward-to-indentation could returns the
column where it ended up, forward-same-syntax could return
the syntax class, forward-visible-line could return the
number of screen lines traversed, etc.
Once again, the potentially useful value might well be
different for each function, and needs to be considered
separately for each. There's no "one fits all" here.
He clearly was thinking about the question, not just
applying a knee-jerk reaction that any suggestion of
having a side-effect function return a useful value is
silly. He was carefully thinking about what the best
value might be for each of the functions he considered.
Yes, nil could be a reasonable return value for some such
functions. But sometimes a better value is available. This
bug is about finding such values and making the functions
return them.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 28 May 2016 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.