From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33870: 27.0.50; xref-goto-xref not configurable Date: Tue, 29 Jan 2019 13:46:29 -0800 (PST) Message-ID: <27bdf3e7-565c-411c-8767-0ad4437f8e9c@default> References: <87a7ktqqx7.fsf@mail.linkov.net> <874laluz3g.fsf@mail.linkov.net> <5C3315E6.9010709@gmx.at> <87wongazxq.fsf@mail.linkov.net> <5C346C49.6060003@gmx.at> <8736q2ka0h.fsf@mail.linkov.net> <5C35C718.6000706@gmx.at> <874lahwgau.fsf@mail.linkov.net> <5C371C22.2030304@gmx.at> <874lag8d2g.fsf@mail.linkov.net> <5C3860D9.2090809@gmx.at> <87tvide172.fsf@mail.linkov.net> <5C3AF815.3020100@gmx.at> <87won89rb8.fsf@mail.linkov.net> <5C3C40E9.6030905@gmx.at> <87sgxlu3qe.fsf@mail.linkov.net> <5C498043.5040008@gmx.at> <87womqp08r.fsf@mail.linkov.net> <5C4F4C42.1090305@gmx.at> <87r2cw35s7.fsf@mail.linkov.net> <5C5013BE.6090107@gmx.at> <877eenjhl6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="254765"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 33870@debbugs.gnu.org, joaotavora@gmail.com, dgutov@yandex.ru To: Juri Linkov , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 22:47:26 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gobE4-00142F-Vp for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2019 22:47:25 +0100 Original-Received: from localhost ([127.0.0.1]:56061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gobDs-0000BY-3o for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2019 16:47:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gobDl-0000BR-Av for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gobDj-0001YN-0A for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:47:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gobDh-0001Y5-Rs for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gobDh-0008A7-Nt for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2019 16:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jan 2019 21:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33870 X-GNU-PR-Package: emacs Original-Received: via spool by 33870-submit@debbugs.gnu.org id=B33870.154879840731355 (code B ref 33870); Tue, 29 Jan 2019 21:47:01 +0000 Original-Received: (at 33870) by debbugs.gnu.org; 29 Jan 2019 21:46:47 +0000 Original-Received: from localhost ([127.0.0.1]:50904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gobDT-00089f-C5 for submit@debbugs.gnu.org; Tue, 29 Jan 2019 16:46:47 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:51990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gobDR-00089Q-V6 for 33870@debbugs.gnu.org; Tue, 29 Jan 2019 16:46:46 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0TLiE5r074529; Tue, 29 Jan 2019 21:46:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=XN22+p0a4hgPVCujEPZwTGlSkmweUtt6vYhn1ewEEzo=; b=Squmu8MW93biGCQ8F+LCcOFXIrpKGoV46RWyxlWA4PsflIdAU1IHtqLMTYSv8YLxoWd4 U1KtrHyiLjg1OmaL6UPG30hqd2kZR07wzSw1mICXH6bqOKpmBYI/FkxAXEytHsV26+xl 4BbMKiTMZd3gL+t/k6ea17k2wclKN+Uj1TzHuwASsaARwNd0LbO1hpoh6VallCe2R77L +Ut7ZUt/pgQ7RJKBvyclhoC0sSYX7EcPGyqlpXIR/0HJBXj5dnr2NWt9iCf4XUA0EFcc WFH1hbetL5b4C+EQL8J/ve1CX5p+LSonh3pAPbbLvZCo2PunbqI0iKWR1kwnHn97XifC mQ== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2q8d2e7bev-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jan 2019 21:46:39 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0TLkX8C020498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jan 2019 21:46:34 GMT Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0TLkWZ1018692; Tue, 29 Jan 2019 21:46:32 GMT In-Reply-To: <877eenjhl6.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4795.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9151 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=972 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901290156 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154874 Archived-At: > > So using (direction . (DIR . WIN)) would be OK? >=20 > And what to do when the future will require adding a third arg? > This is why better to avoid dotted pairs, and use a list like > (direction DIR WIN) (Caveat: I haven't been following this thread.) But YES to what Juri wrote there. This is a (minor) pet peeve of mine. I like dotted pairs for some things, but this is a standard gotcha. Sometimes doing this might represent premature optimization. Sometimes it might come from focusing too closely on the initial use case (e.g. the only use case, to start with). But it happens - to all of us, no doubt. (You could later hack the definition to also allow something else in place of (DIR . WIN), but that kind of thing becomes ugly, especially if abused more than once.) 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. The zones of `zones.el' are similar to the segments of a noncontiguous region, but instead of just (BEGIN . END) a zone has the form (LIMIT1 LIMIT2 . EXTRA). I provided from the outset for the possibility of including EXTRA stuff, even though at that time I had no special use in mind for it. Later I was very thankful I had included it.