From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 108ce84 2/2: xref--next-error-function: Move xref's window point Date: Fri, 2 Mar 2018 16:10:23 +0200 Message-ID: References: <20180228020456.19376.79157@vcs0.savannah.gnu.org> <20180228020457.59950207B1@vcs0.savannah.gnu.org> <1528a8cd-493c-4219-6eb3-693a28aca5a5@yandex.ru> <83sh9lyvyj.fsf@gnu.org> <62862fac-2397-8662-dcf8-a54a64a78745@yandex.ru> <83fu5iwq9a.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519999728 31376 195.159.176.226 (2 Mar 2018 14:08:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2018 14:08:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 02 15:08:44 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erlMX-0007Op-He for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2018 15:08:41 +0100 Original-Received: from localhost ([::1]:35232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erlOa-0005Vi-1a for ged-emacs-devel@m.gmane.org; Fri, 02 Mar 2018 09:10:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erlOM-0005Tj-32 for emacs-devel@gnu.org; Fri, 02 Mar 2018 09:10:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erlOH-0001Qh-3c for emacs-devel@gnu.org; Fri, 02 Mar 2018 09:10:34 -0500 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:51462) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erlOG-0001QP-SJ; Fri, 02 Mar 2018 09:10:29 -0500 Original-Received: by mail-wm0-x22f.google.com with SMTP id h21so3405264wmd.1; Fri, 02 Mar 2018 06:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zb3TbQEuJ2JbOZaGYxh+oDWuvqYKps6c819xkPBGeYA=; b=fgiwkD0WhPrvW4JTB2RQBwMR7D2fHpe4mLQ2bioZMatDV3/hTYmCcUuQB9MyJmy8Dd d9op0Bjyn1UrYhMRx8dQ0DFljAv1E5LwzenMDH/6bwaAKl4pou9WYDsAnWqoyL1os7P/ 2l7cI8pR76qFauyxlxVSqoWZe/7jnzNWIbFxmLAr6QwWC0TRlgLdYEwH3RiPAmSCYJDJ bcccFB/GowMbNPFWqe/5h4ZieX0k2FZ+5ZYZXJeaFxWWW5pIy0z0vNcHXW7Wf3T+xpnr Bs85CAYk7zBVwmL5v8exo4pPzp4LsvS3h5E2o9r2UtRPRPAw+c+xramAQf3jfqYZp/bX lTGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zb3TbQEuJ2JbOZaGYxh+oDWuvqYKps6c819xkPBGeYA=; b=JHcPArtnzT7B8HLGQlSEz5cf8M4ge72Xtw2bR3JDys09rQrU8xkarFVfcFJQZfPBGO glPqJEPH6O2LF+bouKNiRs3CXp9H2bUGUklSoLKl8RzWNkoUk1JQmTDBlakOEG34Jt+n 7RnWq19eGmkv6wztZRSdFDKq4wia9zt8oZdj+k1adb1fD045cVjJ4rKivvZ6e1/aO+IR 4vHddIdhSOG1uJG7bUgDek69j1dJUZd+nzSj4a0EdHqFog5bEf7M2UzNRLkLchoJ3bfO 0kkxP4DjzkscuGoDQUNc8HEwrQuivBySbNfIbdradRAJNRMjkfqW8s/sIDkiFRJuHqI/ wdJQ== X-Gm-Message-State: AElRT7F7zy5GN8dOcFd4V2HKsgEfCyd2gdvxnGG0PBRchSXW5+JK27Yp 2YZaJ0C6aje0Tw21CrjYvJP+CBmm X-Google-Smtp-Source: AG47ELuNmnttfJuGPnQ8vzHoDknkIrY3hU2voK+2+KEVSAbOzVRLQff381wE5PXL75wC2+RxCLbd3g== X-Received: by 10.28.164.196 with SMTP id n187mr1541165wme.141.1519999827404; Fri, 02 Mar 2018 06:10:27 -0800 (PST) Original-Received: from [192.168.0.83] ([212.50.99.193]) by smtp.googlemail.com with ESMTPSA id b136sm1421421wme.34.2018.03.02.06.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Mar 2018 06:10:26 -0800 (PST) In-Reply-To: <83fu5iwq9a.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223221 Archived-At: On 3/2/18 3:39 PM, Eli Zaretskii wrote: >> Try: >> >> 1. cd .../emacs/source/dir >> 2. emacs -Q >> 3. M-x project-find-regexp RET It is not necessary to RET >> (The searches for "It is not necessary to", which only occurs in .el files). >> 4. M-x next-error, do that a few times. Make sure *xref* is still >> visible (otherwise, you need to tweak the split-threshold variables). >> 5. Select the window showing the xref buffer, then go back to where you >> were (by typing 'C-x o' a couple of times). >> 6. M-x next-error will return to the beginning. Or, if the window point >> of the xref window is not at the first line, start over from there. > > Is this due to switch-to-buffer-preserve-window-point being t by > default now? I want to say yes because that fits my understanding of the problem. But (setq switch-to-buffer-preserve-window-point nil) doesn't change neither the scenario above, nor its behavior in my work configuration. >> The reason I figured it's urgent, is step 5 is not necessary with my >> work configuration (not 'emacs -Q'). It's hard for me to tell now which >> package/setting/timer has this effect, but it seems reasonable to >> believe that some other users will see this too. Essentially, the code >> in emacs-26 currently relies on "undefined behavior", in C terms. > > I'm not sure I see where does "undefined behavior" come from. "Behavior I don't understand" might be closer to the truth. :-)