From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#74090: 31.0.50; Problems with dabbrev-expand Date: Wed, 30 Oct 2024 09:32:17 +0200 Organization: LINKOV.NET Message-ID: <86y1262ghq.fsf@mail.linkov.net> References: <878qu6j0tx.fsf@gmx.net> <8634ke4vv5.fsf@mail.linkov.net> <874j4uivnx.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15759"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 74090@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 30 08:37:23 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t63Gb-0003wb-8U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Oct 2024 08:37:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t63GK-0008Ix-Ca; Wed, 30 Oct 2024 03:37:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t63GI-0008Ie-MW for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 03:37:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t63GI-0003H6-EL for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 03:37:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=QiEFn+cAqf0WZr+8Ua2RZQD6ldjG/PG3y/3JaRelwbA=; b=hREgnWEu/qALRo22Id4kU0a4hyFIu6nInhDmKFCVJSIWMrQtk2tn76b4FWNhs23o707zuqk3NO72xt5mi7Ae6r/ly3Qla0dDZim8I1bAc26JAMGzbacKY8K5MfBYQEkzpQL/jN+L0E13gXACzOLUmxIFx1W9mjPEx5oqSI6EmZF9UO+/tVVVmWYVp+uZVG8oJrxGWcjbs2I9FxmYIHkA+D1lo4MKGsGLVMv6F8db5pzKoW1eR0yS0RXvWx29PV2NQzQUGkbNH+X+/qBr7OKh+bqKIHyyACYLWkrEwdCUJ9XCKJeDX3RTMh/etHZVO/RreHAxTOcGhwlpwmNNW9HSPg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t63GI-0006dr-8c for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2024 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2024 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74090 X-GNU-PR-Package: emacs Original-Received: via spool by 74090-submit@debbugs.gnu.org id=B74090.173027376325488 (code B ref 74090); Wed, 30 Oct 2024 07:37:02 +0000 Original-Received: (at 74090) by debbugs.gnu.org; 30 Oct 2024 07:36:03 +0000 Original-Received: from localhost ([127.0.0.1]:33719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t63FK-0006cr-4X for submit@debbugs.gnu.org; Wed, 30 Oct 2024 03:36:02 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:47935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t63FD-0006cL-W6 for 74090@debbugs.gnu.org; Wed, 30 Oct 2024 03:35:56 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 96C71FF803; Wed, 30 Oct 2024 07:35:49 +0000 (UTC) In-Reply-To: <874j4uivnx.fsf@gmx.net> (Stephen Berman's message of "Tue, 29 Oct 2024 19:57:54 +0100") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294548 Archived-At: >>> The attached patch fixes these problems, according to my tests. >> >> Maybe your patch also fixes bug#36516 >> where we failed to find a solution. >> Or maybe these are separate cases. > > I was unaware of that bug, thanks for the pointer. But unfortunately, > my patch does not fix it. My changes only affect cases where the buffer > in which dabbrev-expand is called is different from the buffer where it > finds the expected expansion (at least I only tried to fix such cases > and not alter the behavior of the same buffer cases). I'll try taking a > closer look at this case, but judging by the discussion in that bug > thread, it doesn't look related, or easy to fix. But as was noted in > that thread, at least you can get the expected expected by repeatedly > typing `M-/', while in the cases I tried (hopefully successfully) to > fix, without my patch either you cannot get the expected expansion or > you get an error, so bug#36516 seems less serious. Indeed, bug#36516 reports just a logical inconsistency, whereas your patch fixes a plain bug. I've looked at your patch, and everything looks right, and the comprehensive test coverage will ensure no breakages, thanks.