GNU bug report logs - #33870
27.0.50; xref-goto-xref not configurable

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 25 Dec 2018 20:53:01 UTC

Severity: minor

Found in version 27.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 33870 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>,
 joaotavora <at> gmail.com, dgutov <at> yandex.ru
Subject: RE: bug#33870: 27.0.50; xref-goto-xref not configurable
Date: Wed, 30 Jan 2019 13:39:57 -0800 (PST)
> > Example:
> >
> > Whoever designed the Lisp representation of a
> > noncontiguous region trapped us the same way.
> > By using a dotted pair of scalar values, that
> > design pretty much precludes adding other info
> > besides the start and end limits to a region
> > segment.
> 
> You can override region-extract-function with your own
> implementation that can support any shape you want.

1. It's not about the region shape - at all.

2. The point is more general.  Code that invokes
the function that is the value of the variable
does not, in general, know what function that is.

It can only expect, based on the default value of
the function, that for input `bounds' it gets a
cons (START . END).

IOW, any function used as the variable value
really needs to return bounds of the same form,
if it expects to be used in more than an odd,
narrow context.  In general, such a function
will not know or care what context it's used in.

As a result, developers will provide functions
that model the args and return values of the
default function.

The default function was designed with a poor
choice for the value returned by input `bounds'.




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

Previous Next


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